30 #include "RNA_prototypes.h"
98 if (r_ob_ptr !=
NULL) {
107 #define ERROR_LIBDATA_MESSAGE TIP_("External library data")
129 "OBJECT_OT_shaderfx_copy");
136 "OBJECT_OT_shaderfx_move_to_index",
151 "OBJECT_OT_shaderfx_move_to_index",
194 uiItemR(sub,
ptr,
"show_in_editmode", 0,
"", ICON_NONE);
196 uiItemR(row,
ptr,
"show_viewport", 0,
"", ICON_NONE);
197 uiItemR(row,
ptr,
"show_render", 0,
"", ICON_NONE);
204 uiItemO(row,
"", ICON_X,
"OBJECT_OT_shaderfx_remove");
233 panel_type->
draw = draw;
263 panel_type->
draw = draw;
269 panel_type->
parent = parent;
General operations, lookup, etc. for blender objects.
@ PANEL_TYPE_DEFAULT_CLOSED
@ PANEL_TYPE_HEADER_EXPAND
void BKE_shaderfxType_panel_id(ShaderFxType type, char *r_idname)
const ShaderFxTypeInfo * BKE_shaderfx_get_info(ShaderFxType type)
@ eShaderFxTypeFlag_SupportsEditmode
struct LinkData * BLI_genericNodeN(void *data)
void BLI_addtail(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
int BLI_listbase_count(const struct ListBase *listbase) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t maxncpy) ATTR_NONNULL()
size_t BLI_snprintf(char *__restrict dst, size_t maxncpy, const char *__restrict format,...) ATTR_NONNULL(1
#define CTX_IFACE_(context, msgid)
#define BLT_I18NCONTEXT_OPERATOR_DEFAULT
#define BLT_I18NCONTEXT_DEFAULT_BPYRNA
#define ID_IS_LINKED(_id)
Object is a sort of wrapper for general info.
struct Object * ED_object_active_context(const struct bContext *C)
static void set_shaderfx_expand_flag(const bContext *UNUSED(C), Panel *panel, short expand_flag)
PanelType * shaderfx_panel_register(ARegionType *region_type, ShaderFxType type, PanelDrawFn draw)
static void shaderfx_panel_header(const bContext *UNUSED(C), Panel *panel)
static short get_shaderfx_expand_flag(const bContext *UNUSED(C), Panel *panel)
static bool shaderfx_ui_poll(const bContext *C, PanelType *UNUSED(pt))
static void shaderfx_reorder(bContext *C, Panel *panel, int new_index)
PanelType * shaderfx_subpanel_register(ARegionType *region_type, const char *name, const char *label, PanelDrawFn draw_header, PanelDrawFn draw, PanelType *parent)
void shaderfx_panel_end(uiLayout *layout, PointerRNA *ptr)
static void gpencil_shaderfx_ops_extra_draw(bContext *C, uiLayout *layout, void *fx_v)
PointerRNA * shaderfx_panel_get_property_pointers(Panel *panel, PointerRNA *r_ob_ptr)
#define ERROR_LIBDATA_MESSAGE
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
Read Guarded memory(de)allocation.
void uiLayoutSetActive(uiLayout *layout, bool active)
uiBlock * uiLayoutGetBlock(uiLayout *layout)
void uiLayoutSetEnabled(uiLayout *layout, bool enabled)
void UI_panel_context_pointer_set(struct Panel *panel, const char *name, struct PointerRNA *ptr)
uiLayout * uiLayoutColumn(uiLayout *layout, bool align)
void uiItemL(uiLayout *layout, const char *name, int icon)
void uiLayoutSetRedAlert(uiLayout *layout, bool redalert)
struct PointerRNA * UI_panel_custom_data_get(const struct Panel *panel)
void uiItemS(uiLayout *layout)
uiLayout * uiLayoutRow(uiLayout *layout, bool align)
void uiLayoutSetUnitsX(uiLayout *layout, float unit)
void uiItemR(uiLayout *layout, struct PointerRNA *ptr, const char *propname, int flag, const char *name, int icon)
void uiLayoutSetEmboss(uiLayout *layout, eUIEmbossType emboss)
void uiItemO(uiLayout *layout, const char *name, int icon, const char *opname)
void uiLayoutSetContextPointer(uiLayout *layout, const char *name, struct PointerRNA *ptr)
void uiItemFullO(uiLayout *layout, const char *opname, const char *name, int icon, struct IDProperty *properties, wmOperatorCallContext context, int flag, struct PointerRNA *r_opptr)
void uiItemMenuF(uiLayout *layout, const char *name, int icon, uiMenuCreateFunc func, void *arg)
void UI_block_flag_enable(uiBlock *block, int flag)
void uiLayoutSetOperatorContext(uiLayout *layout, wmOperatorCallContext opcontext)
void UI_block_lock_set(uiBlock *block, bool val, const char *lockstr)
void(* PanelDrawFn)(const bContext *, struct Panel *)
void *(* MEM_callocN)(size_t len, const char *str)
bool RNA_struct_is_a(const StructRNA *type, const StructRNA *srna)
void RNA_pointer_create(ID *id, StructRNA *type, void *data, PointerRNA *r_ptr)
void RNA_string_set(PointerRNA *ptr, const char *name, const char *value)
void RNA_int_set(PointerRNA *ptr, const char *name, int value)
int RNA_struct_ui_icon(const StructRNA *type)
short(* get_list_data_expand_flag)(const struct bContext *C, struct Panel *pa)
void(* draw)(const struct bContext *C, struct Panel *panel)
bool(* poll)(const struct bContext *C, struct PanelType *pt)
void(* draw_header)(const struct bContext *C, struct Panel *panel)
char idname[BKE_ST_MAXNAME]
void(* set_list_data_expand_flag)(const struct bContext *C, struct Panel *pa, short expand_flag)
char context[BKE_ST_MAXNAME]
void(* reorder)(struct bContext *C, struct Panel *pa, int new_index)
char translation_context[BKE_ST_MAXNAME]
struct PanelType * parent
char label[BKE_ST_MAXNAME]
char parent_id[BKE_ST_MAXNAME]
struct ShaderFxData * prev
struct ShaderFxData * next
bool(* isDisabled)(struct ShaderFxData *fx, int userRenderParams)
int WM_operator_name_call_ptr(bContext *C, wmOperatorType *ot, wmOperatorCallContext context, PointerRNA *properties, const wmEvent *event)
wmOperatorType * WM_operatortype_find(const char *idname, bool quiet)
void WM_operator_properties_create_ptr(PointerRNA *ptr, wmOperatorType *ot)
void WM_operator_properties_free(PointerRNA *ptr)