Blender V4.3
PanelType Struct Reference

#include <BKE_screen.hh>

Public Attributes

PanelTypenext
 
PanelTypeprev
 
char idname [BKE_ST_MAXNAME]
 
char label [BKE_ST_MAXNAME]
 
const char * description
 
char translation_context [BKE_ST_MAXNAME]
 
char context [BKE_ST_MAXNAME]
 
char category [BKE_ST_MAXNAME]
 
char owner_id [128]
 
char parent_id [BKE_ST_MAXNAME]
 
char active_property [BKE_ST_MAXNAME]
 
char pin_to_last_property [BKE_ST_MAXNAME]
 
short space_type
 
short region_type
 
int ui_units_x
 
blender::float2 offset_units_xy
 
int order
 
int flag
 
bool(* poll )(const bContext *C, PanelType *pt)
 
void(* draw_header )(const bContext *C, Panel *panel)
 
void(* draw_header_preset )(const bContext *C, Panel *panel)
 
void(* draw )(const bContext *C, Panel *panel)
 
void(* listener )(const wmRegionListenerParams *params)
 
void(* reorder )(bContext *C, Panel *pa, int new_index)
 
short(* get_list_data_expand_flag )(const bContext *C, Panel *pa)
 
void(* set_list_data_expand_flag )(const bContext *C, Panel *pa, short expand_flag)
 
PanelTypeparent
 
ListBase children
 
ExtensionRNA rna_ext
 

Detailed Description

Definition at line 286 of file BKE_screen.hh.

Member Data Documentation

◆ active_property

char PanelType::active_property[BKE_ST_MAXNAME]

Boolean property identifier of the panel custom data. Used to draw a highlighted border.

Definition at line 298 of file BKE_screen.hh.

Referenced by modifier_panel_register(), modifier_subpanel_register(), panel_custom_data_active_get(), and panel_custom_data_active_set().

◆ category

◆ children

◆ context

◆ description

◆ draw

◆ draw_header

◆ draw_header_preset

void(* PanelType::draw_header_preset) (const bContext *C, Panel *panel)

Definition at line 316 of file BKE_screen.hh.

Referenced by ed_panel_draw(), and panel_property_search().

◆ flag

◆ get_list_data_expand_flag

short(* PanelType::get_list_data_expand_flag) (const bContext *C, Panel *pa)

Get the panel and sub-panel's expansion state from the expansion flag in the corresponding data item. Called on draw updates.

Note
Sub-panels are indexed in depth first order, the visual order you would see if all panels were expanded.

Definition at line 335 of file BKE_screen.hh.

Referenced by fmodifier_panel_register(), modifier_panel_register(), panel_set_expansion_from_list_data(), blender::ed::spreadsheet::register_row_filter_panels(), shaderfx_panel_register(), and uiTemplateConstraints().

◆ idname

◆ label

◆ listener

void(* PanelType::listener) (const wmRegionListenerParams *params)

Listener to redraw the region this is contained in on changes. Only used for panels displayed in popover regions.

Definition at line 323 of file BKE_screen.hh.

Referenced by blender::ed::asset::shelf::catalog_selector_panel_register(), blender::ed::asset::shelf::popover_panel_register(), and ui_paneltype_draw_impl().

◆ next

PanelType* PanelType::next

Definition at line 287 of file BKE_screen.hh.

◆ offset_units_xy

blender::float2 PanelType::offset_units_xy

For popovers, position the popover at the given offset (multiplied by UI_UNIT_X/UI_UNIT_Y) relative to the top left corner, if it's not attached to a button.

Definition at line 306 of file BKE_screen.hh.

Referenced by blender::ed::asset::shelf::popover_panel_register(), and ui_block_func_POPOVER().

◆ order

int PanelType::order

Definition at line 307 of file BKE_screen.hh.

Referenced by image_buttons_register(), and sequencer_buttons_register().

◆ owner_id

char PanelType::owner_id[128]

Definition at line 295 of file BKE_screen.hh.

Referenced by panel_add_check().

◆ parent

◆ parent_id

◆ pin_to_last_property

char PanelType::pin_to_last_property[BKE_ST_MAXNAME]

◆ poll

◆ prev

PanelType * PanelType::prev

Definition at line 287 of file BKE_screen.hh.

◆ region_type

short PanelType::region_type

Definition at line 301 of file BKE_screen.hh.

Referenced by hud_panels_register(), and ui_but_event_operator_string_from_panel().

◆ reorder

void(* PanelType::reorder) (bContext *C, Panel *pa, int new_index)

◆ rna_ext

ExtensionRNA PanelType::rna_ext

Definition at line 349 of file BKE_screen.hh.

◆ set_list_data_expand_flag

void(* PanelType::set_list_data_expand_flag) (const bContext *C, Panel *pa, short expand_flag)

Set the expansion bit-field from the closed / open state of this panel and its sub-panels. Called when the expansion state of the panel changes with user input.

Note
Sub-panels are indexed in depth first order, the visual order you would see if all panels were expanded.

Definition at line 342 of file BKE_screen.hh.

Referenced by fmodifier_panel_register(), modifier_panel_register(), blender::ed::spreadsheet::register_row_filter_panels(), shaderfx_panel_register(), and uiTemplateConstraints().

◆ space_type

short PanelType::space_type

Definition at line 300 of file BKE_screen.hh.

Referenced by hud_panels_register(), and ui_but_event_operator_string_from_panel().

◆ translation_context

◆ ui_units_x

int PanelType::ui_units_x

Definition at line 303 of file BKE_screen.hh.

Referenced by ui_popover_panel_create(), and UI_popover_panel_invoke().


The documentation for this struct was generated from the following file: