Blender
V3.3
|
#include "FX_shader_types.h"
Go to the source code of this file.
Typedefs | |
typedef void(* | PanelDrawFn) (const bContext *, Panel *) |
Functions | |
void | shaderfx_panel_end (struct uiLayout *layout, PointerRNA *ptr) |
struct PointerRNA * | shaderfx_panel_get_property_pointers (struct Panel *panel, struct PointerRNA *r_ob_ptr) |
PanelType * | shaderfx_panel_register (ARegionType *region_type, ShaderFxType type, PanelDrawFn draw) |
struct PanelType * | shaderfx_subpanel_register (struct ARegionType *region_type, const char *name, const char *label, PanelDrawFn draw_header, PanelDrawFn draw, struct PanelType *parent) |
Definition at line 19 of file FX_ui_common.h.
void shaderfx_panel_end | ( | struct uiLayout * | layout, |
PointerRNA * | ptr | ||
) |
Draw shaderfx error message.
Definition at line 84 of file FX_ui_common.c.
References PointerRNA::data, ShaderFxData::error, ptr, TIP_, uiItemL(), and uiLayoutRow().
Referenced by panel_draw().
struct PointerRNA* shaderfx_panel_get_property_pointers | ( | struct Panel * | panel, |
struct PointerRNA * | r_ob_ptr | ||
) |
Gets RNA pointers for the active object and the panel's shaderfx data.
Definition at line 93 of file FX_ui_common.c.
References BLI_assert, NULL, PointerRNA::owner_id, ptr, RNA_pointer_create(), RNA_struct_is_a(), PointerRNA::type, UI_panel_context_pointer_set(), and UI_panel_custom_data_get().
Referenced by blur_panel_draw(), panel_draw(), shaderfx_panel_header(), wave_header_draw(), and wave_panel_draw().
PanelType* shaderfx_panel_register | ( | ARegionType * | region_type, |
ShaderFxType | type, | ||
PanelDrawFn | draw | ||
) |
Create a panel in the context's region
Definition at line 223 of file FX_ui_common.c.
References BKE_shaderfxType_panel_id(), BKE_ST_MAXNAME, BLI_addtail(), BLI_strncpy(), BLT_I18NCONTEXT_DEFAULT_BPYRNA, PanelType::context, PanelType::draw, PanelType::draw_header, PanelType::flag, PanelType::get_list_data_expand_flag, get_shaderfx_expand_flag(), PanelType::idname, PanelType::label, MEM_callocN, PANEL_TYPE_HEADER_EXPAND, PANEL_TYPE_INSTANCED, ARegionType::paneltypes, PanelType::poll, PanelType::reorder, PanelType::set_list_data_expand_flag, set_shaderfx_expand_flag(), shaderfx_panel_header(), shaderfx_reorder(), shaderfx_ui_poll(), PanelType::translation_context, and type.
Referenced by panelRegister().
struct PanelType* shaderfx_subpanel_register | ( | struct ARegionType * | region_type, |
const char * | name, | ||
const char * | label, | ||
PanelDrawFn | draw_header, | ||
PanelDrawFn | draw, | ||
struct PanelType * | parent | ||
) |
Add a child panel to the parent.
Definition at line 248 of file FX_ui_common.c.
References BKE_ST_MAXNAME, BLI_addtail(), BLI_assert, BLI_genericNodeN(), BLI_snprintf(), BLI_strncpy(), BLT_I18NCONTEXT_DEFAULT_BPYRNA, PanelType::children, PanelType::context, PanelType::draw, PanelType::draw_header, PanelType::flag, PanelType::idname, PanelType::label, label, MEM_callocN, NULL, PANEL_TYPE_DEFAULT_CLOSED, ARegionType::paneltypes, PanelType::parent, PanelType::parent_id, PanelType::poll, shaderfx_ui_poll(), and PanelType::translation_context.
Referenced by panelRegister().