Blender V5.3
rna_brush.cc File Reference
#include <cstdlib>
#include "DNA_brush_types.h"
#include "DNA_gpencil_legacy_types.h"
#include "DNA_scene_types.h"
#include "DNA_texture_types.h"
#include "BLI_math_base_c.hh"
#include "BLI_string_utf8_symbols.hh"
#include "BLT_translation.hh"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "rna_internal.hh"
#include "IMB_imbuf.hh"
#include "WM_types.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define TEXTURE_CAPABILITY(prop_name_, ui_name_)
#define SCULPT_BRUSH_CAPABILITY(prop_name_, ui_name_)
#define BRUSH_CAPABILITY(prop_name_, ui_name_)
#define IMAPAINT_BRUSH_CAPABILITY(prop_name_, ui_name_)
#define VPAINT_BRUSH_CAPABILITY(prop_name_, ui_name_)
#define WPAINT_BRUSH_CAPABILITY(prop_name_, ui_name_)

Functions

static void blender::rna_def_brush_texture_slot (BlenderRNA *brna)
static void blender::rna_def_sculpt_capabilities (BlenderRNA *brna)
static void blender::rna_def_brush_capabilities (BlenderRNA *brna)
static void blender::rna_def_image_paint_capabilities (BlenderRNA *brna)
static void blender::rna_def_vertex_paint_capabilities (BlenderRNA *brna)
static void blender::rna_def_weight_paint_capabilities (BlenderRNA *brna)
static void blender::rna_def_gpencil_options (BlenderRNA *brna)
static void blender::rna_def_curves_sculpt_options (BlenderRNA *brna)
static void blender::rna_def_brush (BlenderRNA *brna)
static void blender::rna_def_operator_stroke_element (BlenderRNA *brna)
void blender::RNA_def_brush (BlenderRNA *brna)

Variables

static const EnumPropertyItem blender::prop_direction_items []
static const EnumPropertyItem blender::sculpt_stroke_method_items []
static const EnumPropertyItem blender::rna_enum_brush_texture_slot_map_all_mode_items []
const EnumPropertyItem blender::rna_enum_brush_curve_preset_items []
const EnumPropertyItem blender::rna_enum_shared_automasking_flag_items []
const EnumPropertyItem blender::rna_enum_brush_sculpt_brush_type_items []
const EnumPropertyItem blender::rna_enum_brush_vertex_brush_type_items []
const EnumPropertyItem blender::rna_enum_brush_weight_brush_type_items []
const EnumPropertyItem blender::rna_enum_brush_image_brush_type_items []
const EnumPropertyItem blender::rna_enum_brush_gpencil_types_items []
const EnumPropertyItem blender::rna_enum_brush_gpencil_vertex_types_items []
const EnumPropertyItem blender::rna_enum_brush_gpencil_sculpt_types_items []
const EnumPropertyItem blender::rna_enum_brush_gpencil_weight_types_items []
const EnumPropertyItem blender::rna_enum_brush_curves_sculpt_brush_type_items []
static EnumPropertyItem blender::rna_enum_gpencil_brush_eraser_modes_items []
static EnumPropertyItem blender::rna_enum_gpencil_fill_draw_modes_items []
static EnumPropertyItem blender::rna_enum_gpencil_fill_extend_modes_items []
static EnumPropertyItem blender::rna_enum_gpencil_fill_layers_modes_items []
static EnumPropertyItem blender::rna_enum_gpencil_fill_direction_items []
static EnumPropertyItem blender::rna_enum_gpencil_fill_solver_items []
static EnumPropertyItem blender::rna_enum_gpencil_brush_modes_items []

Macro Definition Documentation

◆ BRUSH_CAPABILITY

#define BRUSH_CAPABILITY ( prop_name_,
ui_name_ )
Value:
prop = RNA_def_property(srna, #prop_name_, PROP_BOOLEAN, PROP_NONE); \
RNA_def_property_clear_flag(prop, PROP_EDITABLE); \
RNA_def_property_boolean_funcs(prop, "rna_BrushCapabilities_" #prop_name_ "_get", nullptr); \
RNA_def_property_ui_text(prop, ui_name_, nullptr)

Referenced by blender::rna_def_brush_capabilities().

◆ IMAPAINT_BRUSH_CAPABILITY

#define IMAPAINT_BRUSH_CAPABILITY ( prop_name_,
ui_name_ )
Value:
prop = RNA_def_property(srna, #prop_name_, PROP_BOOLEAN, PROP_NONE); \
RNA_def_property_clear_flag(prop, PROP_EDITABLE); \
RNA_def_property_boolean_funcs( \
prop, "rna_BrushCapabilitiesImagePaint_" #prop_name_ "_get", nullptr); \
RNA_def_property_ui_text(prop, ui_name_, nullptr)

Referenced by blender::rna_def_image_paint_capabilities().

◆ SCULPT_BRUSH_CAPABILITY

#define SCULPT_BRUSH_CAPABILITY ( prop_name_,
ui_name_ )
Value:
prop = RNA_def_property(srna, #prop_name_, PROP_BOOLEAN, PROP_NONE); \
RNA_def_property_clear_flag(prop, PROP_EDITABLE); \
RNA_def_property_boolean_funcs( \
prop, "rna_BrushCapabilitiesSculpt_" #prop_name_ "_get", nullptr); \
RNA_def_property_ui_text(prop, ui_name_, nullptr)

Referenced by blender::rna_def_sculpt_capabilities().

◆ TEXTURE_CAPABILITY

#define TEXTURE_CAPABILITY ( prop_name_,
ui_name_ )
Value:
prop = RNA_def_property(srna, #prop_name_, PROP_BOOLEAN, PROP_NONE); \
RNA_def_property_clear_flag(prop, PROP_EDITABLE); \
RNA_def_property_boolean_funcs(prop, "rna_TextureCapabilities_" #prop_name_ "_get", nullptr); \
RNA_def_property_ui_text(prop, ui_name_, nullptr)

Referenced by blender::rna_def_brush_texture_slot().

◆ VPAINT_BRUSH_CAPABILITY

#define VPAINT_BRUSH_CAPABILITY ( prop_name_,
ui_name_ )
Value:
prop = RNA_def_property(srna, #prop_name_, PROP_BOOLEAN, PROP_NONE); \
RNA_def_property_clear_flag(prop, PROP_EDITABLE); \
RNA_def_property_boolean_funcs( \
prop, "rna_BrushCapabilitiesVertexPaint_" #prop_name_ "_get", nullptr); \
RNA_def_property_ui_text(prop, ui_name_, nullptr)

Referenced by blender::rna_def_vertex_paint_capabilities().

◆ WPAINT_BRUSH_CAPABILITY

#define WPAINT_BRUSH_CAPABILITY ( prop_name_,
ui_name_ )
Value:
prop = RNA_def_property(srna, #prop_name_, PROP_BOOLEAN, PROP_NONE); \
RNA_def_property_clear_flag(prop, PROP_EDITABLE); \
RNA_def_property_boolean_funcs( \
prop, "rna_BrushCapabilitiesWeightPaint_" #prop_name_ "_get", nullptr); \
RNA_def_property_ui_text(prop, ui_name_, nullptr)

Referenced by blender::rna_def_weight_paint_capabilities().