Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_intern.h
| Show First 20 Lines • Show All 992 Lines • ▼ Show 20 Lines | |||||
| * and set any button flagged as UI_BUT_LIST_ITEM as active/selected. | * and set any button flagged as UI_BUT_LIST_ITEM as active/selected. | ||||
| * Needed to handle correctly text colors of active (selected) list item. | * Needed to handle correctly text colors of active (selected) list item. | ||||
| */ | */ | ||||
| void ui_layout_list_set_labels_active(uiLayout *layout); | void ui_layout_list_set_labels_active(uiLayout *layout); | ||||
| /* menu callback */ | /* menu callback */ | ||||
| void ui_item_menutype_func(struct bContext *C, struct uiLayout *layout, void *arg_mt); | void ui_item_menutype_func(struct bContext *C, struct uiLayout *layout, void *arg_mt); | ||||
| void ui_item_paneltype_func(struct bContext *C, struct uiLayout *layout, void *arg_pt); | void ui_item_paneltype_func(struct bContext *C, struct uiLayout *layout, void *arg_pt); | ||||
| /* interface_button_group.c */ | /* interface_button_group.cc */ | ||||
| /** | /** | ||||
| * Every function that adds a set of buttons must create another group, | * Every function that adds a set of buttons must create another group, | ||||
| * then #ui_def_but adds buttons to the current group (the last). | * then #ui_def_but adds buttons to the current group (the last). | ||||
| */ | */ | ||||
| void ui_block_new_button_group(uiBlock *block, uiButtonGroupFlag flag); | void ui_block_new_button_group(uiBlock *block, uiButtonGroupFlag flag); | ||||
| void ui_button_group_add_but(uiBlock *block, uiBut *but); | void ui_button_group_add_but(uiBlock *block, uiBut *but); | ||||
| void ui_button_group_replace_but_ptr(uiBlock *block, const void *old_but_ptr, uiBut *new_but); | void ui_button_group_replace_but_ptr(uiBlock *block, const void *old_but_ptr, uiBut *new_but); | ||||
| ▲ Show 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * Check if the cursor is over any popups. | * Check if the cursor is over any popups. | ||||
| */ | */ | ||||
| struct ARegion *ui_screen_region_find_mouse_over_ex(struct bScreen *screen, const int xy[2]) | struct ARegion *ui_screen_region_find_mouse_over_ex(struct bScreen *screen, const int xy[2]) | ||||
| ATTR_NONNULL(1, 2); | ATTR_NONNULL(1, 2); | ||||
| struct ARegion *ui_screen_region_find_mouse_over(struct bScreen *screen, | struct ARegion *ui_screen_region_find_mouse_over(struct bScreen *screen, | ||||
| const struct wmEvent *event); | const struct wmEvent *event); | ||||
| /* interface_context_menu.c */ | /* interface_context_menu.cc */ | ||||
| bool ui_popup_context_menu_for_button(struct bContext *C, uiBut *but, const struct wmEvent *event); | bool ui_popup_context_menu_for_button(struct bContext *C, uiBut *but, const struct wmEvent *event); | ||||
| /** | /** | ||||
| * menu to show when right clicking on the panel header | * menu to show when right clicking on the panel header | ||||
| */ | */ | ||||
| void ui_popup_context_menu_for_panel(struct bContext *C, | void ui_popup_context_menu_for_panel(struct bContext *C, | ||||
| struct ARegion *region, | struct ARegion *region, | ||||
| struct Panel *panel); | struct Panel *panel); | ||||
| ▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines | |||||