Blender
V3.3
|
Go to the source code of this file.
Functions | |
Button Groups | |
void | ui_block_new_button_group (uiBlock *block, uiButtonGroupFlag flag) |
void | ui_button_group_add_but (uiBlock *block, uiBut *but) |
static void | button_group_free (uiButtonGroup *button_group) |
void | ui_block_free_button_groups (uiBlock *block) |
void | ui_button_group_replace_but_ptr (uiBlock *block, const void *old_but_ptr, uiBut *new_but) |
|
static |
Definition at line 47 of file interface_button_group.c.
References BLI_freelistN(), uiButtonGroup::buttons, and MEM_freeN.
Referenced by ui_block_free_button_groups().
Definition at line 53 of file interface_button_group.c.
References button_group_free(), uiBlock::button_groups, and LISTBASE_FOREACH_MUTABLE.
Referenced by UI_block_free().
void ui_block_new_button_group | ( | uiBlock * | block, |
uiButtonGroupFlag | flag | ||
) |
Every function that adds a set of buttons must create another group, then ui_def_but adds buttons to the current group (the last).
Definition at line 17 of file interface_button_group.c.
References BLI_addtail(), BLI_listbase_clear(), BLI_listbase_is_empty(), uiBlock::button_groups, uiButtonGroup::buttons, uiButtonGroup::flag, ListBase::last, MEM_mallocN, and UI_BUTTON_GROUP_LOCK.
Referenced by ui_button_group_add_but(), ui_item_menu(), UI_panel_header_buttons_begin(), UI_panel_header_buttons_end(), uiItemFullO_ptr_ex(), uiItemFullR(), uiItemL_(), and uiItemPointerR_prop().
Definition at line 33 of file interface_button_group.c.
References BLI_addtail(), BLI_genericNodeN(), BLI_listbase_is_empty(), uiBlock::button_groups, uiButtonGroup::buttons, ListBase::last, and ui_block_new_button_group().
Referenced by ui_layout_add_but().
Definition at line 60 of file interface_button_group.c.
References uiBlock::button_groups, and LISTBASE_FOREACH.
Referenced by ui_but_change_type(), and ui_but_update_from_old_block().