Blender V5.0
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 311 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 330 of file BKE_screen.hh.

Referenced by blender::seq::modifier_panel_register(), modifier_panel_register(), modifier_subpanel_register(), panel_custom_data_active_get(), and panel_custom_data_active_set().

◆ category

◆ children

◆ context

◆ description

const char* PanelType::description

◆ draw

◆ draw_header

◆ draw_header_preset

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

Draw header preset (optional)

Definition at line 350 of file BKE_screen.hh.

Referenced by ed_panel_draw(), and panel_property_search().

◆ flag

int PanelType::flag

Definition at line 343 of file BKE_screen.hh.

Referenced by ANIM_fmodifier_panels(), buttons_context_register(), ED_clip_buttons_register(), ed_panel_draw(), ED_region_panels_layout_ex(), ED_region_property_search(), file_execute_region_panels_register(), file_tool_props_region_panels_register(), file_tools_region_panels_register(), find_highest_panel(), fmodifier_panel_register(), fmodifier_subpanel_register(), get_panel_real_size_y(), get_panel_size_y(), graph_buttons_register(), hud_panels_register(), image_buttons_register(), blender::seq::modifier_panel_register(), modifier_panel_register(), modifier_subpanel_register(), nla_buttons_register(), panel_draw_aligned_backdrop(), panel_property_search(), panel_set_expansion_from_list_data(), panel_set_expansion_from_search_filter_recursive(), panels_collapse_all(), region_panels_set_expansion_from_list_data(), blender::ed::spreadsheet::register_row_filter_panels(), set_panels_list_data_expand_flag(), shaderfx_panel_register(), shaderfx_subpanel_register(), blender::ed::spreadsheet::spreadsheet_data_set_region_panels_register(), blender::ed::spreadsheet::spreadsheet_row_filters_layout(), UI_block_apply_search_filter(), ui_draw_aligned_panel(), ui_handle_panel_header(), ui_handler_panel_region(), UI_panel_begin(), UI_panel_can_be_pinned(), ui_panel_drag_collapse(), UI_panel_is_closed(), UI_panel_should_show_background(), UI_popup_dummy_panel_set(), uiTemplateConstraints(), uiTemplateModifiers(), uiTemplateShaderFx(), and uiTemplateStripModifiers().

◆ 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 369 of file BKE_screen.hh.

Referenced by fmodifier_panel_register(), blender::seq::modifier_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 357 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 312 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 340 of file BKE_screen.hh.

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

◆ order

◆ owner_id

char PanelType::owner_id[128]

For work-spaces to selectively show.

Definition at line 326 of file BKE_screen.hh.

Referenced by panel_add_check().

◆ parent

◆ parent_id

char PanelType::parent_id[BKE_ST_MAXNAME]

◆ pin_to_last_property

char PanelType::pin_to_last_property[BKE_ST_MAXNAME]

◆ poll

◆ prev

PanelType * PanelType::prev

Definition at line 312 of file BKE_screen.hh.

◆ region_type

short PanelType::region_type

Definition at line 333 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

RNA integration.

Definition at line 383 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 376 of file BKE_screen.hh.

Referenced by fmodifier_panel_register(), blender::seq::modifier_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 332 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

For popovers, 0 for default.

Definition at line 335 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: