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 | |||||
| extern void ui_draw_aligned_panel(const struct uiStyle *style, | extern void ui_draw_aligned_panel(const struct uiStyle *style, | ||||
| const uiBlock *block, | const uiBlock *block, | ||||
| const rcti *rect, | const rcti *rect, | ||||
| bool show_pin, | bool show_pin, | ||||
| bool show_background, | bool show_background, | ||||
| bool region_search_filter_active); | bool region_search_filter_active); | ||||
| void ui_panel_tag_search_filter_match(struct Panel *panel); | void ui_panel_tag_search_filter_match(struct Panel *panel); | ||||
| /* interface_draw.c */ | /* interface_draw.cc */ | ||||
| extern void ui_draw_dropshadow( | extern void ui_draw_dropshadow( | ||||
| const rctf *rct, float radius, float aspect, float alpha, int select); | const rctf *rct, float radius, float aspect, float alpha, int select); | ||||
| /** | /** | ||||
| * Draws in resolution of 48x4 colors. | * Draws in resolution of 48x4 colors. | ||||
| */ | */ | ||||
| void ui_draw_gradient(const rcti *rect, const float hsv[3], eButGradientType type, float alpha); | void ui_draw_gradient(const rcti *rect, const float hsv[3], eButGradientType type, float alpha); | ||||
| ▲ Show 20 Lines • Show All 250 Lines • ▼ Show 20 Lines | |||||
| */ | */ | ||||
| void uiStyleInit(void); | void uiStyleInit(void); | ||||
| /* interface_icons.c */ | /* interface_icons.c */ | ||||
| void ui_icon_ensure_deferred(const struct bContext *C, int icon_id, bool big); | void ui_icon_ensure_deferred(const struct bContext *C, int icon_id, bool big); | ||||
| int ui_id_icon_get(const struct bContext *C, struct ID *id, bool big); | int ui_id_icon_get(const struct bContext *C, struct ID *id, bool big); | ||||
| /* interface_icons_event.c */ | /* interface_icons_event.cc */ | ||||
| void icon_draw_rect_input( | void icon_draw_rect_input( | ||||
| float x, float y, int w, int h, float alpha, short event_type, short event_value); | float x, float y, int w, int h, float alpha, short event_type, short event_value); | ||||
| /* resources.c */ | /* resources.c */ | ||||
| void ui_resources_init(void); | void ui_resources_init(void); | ||||
| void ui_resources_free(void); | void ui_resources_free(void); | ||||
| Show All 21 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 | |||||