|
Blender
V2.93
|
#include "BLI_compiler_attrs.h"#include "BLI_rect.h"#include "DNA_listBase.h"#include "RNA_types.h"#include "UI_interface.h"#include "UI_resources.h"Go to the source code of this file.
Classes | |
| struct | uiBut |
| struct | uiButNumber |
| struct | uiButColor |
| struct | uiButTab |
| struct | uiButSearch |
| struct | uiButDecorator |
| struct | uiButProgressbar |
| struct | uiButHSVCube |
| struct | uiButColorBand |
| struct | uiButCurveProfile |
| struct | uiButCurveMapping |
| struct | uiButExtraOpIcon |
| struct | ColorPicker |
| struct | ColorPickerData |
| struct | PieMenuData |
| struct | uiButtonGroup |
| struct | uiBlock |
| struct | uiSafetyRct |
| struct | uiKeyNavLock |
| struct | uiPopupBlockCreate |
| struct | uiPopupBlockHandle |
| struct | uiWidgetBaseParameters |
| struct | uiRNACollectionSearch |
Typedefs | |
| typedef enum RadialDirection | RadialDirection |
| typedef struct uiButNumber | uiButNumber |
| typedef struct uiButColor | uiButColor |
| typedef struct uiButTab | uiButTab |
| typedef struct uiButSearch | uiButSearch |
| typedef struct uiButDecorator | uiButDecorator |
| typedef struct uiButProgressbar | uiButProgressbar |
| typedef struct uiButHSVCube | uiButHSVCube |
| typedef struct uiButColorBand | uiButColorBand |
| typedef struct uiButCurveProfile | uiButCurveProfile |
| typedef struct uiButCurveMapping | uiButCurveMapping |
| typedef struct uiButExtraOpIcon | uiButExtraOpIcon |
| typedef struct ColorPicker | ColorPicker |
| typedef struct ColorPickerData | ColorPickerData |
| typedef struct uiButtonGroup | uiButtonGroup |
| typedef enum uiButtonGroupFlag | uiButtonGroupFlag |
| typedef struct uiSafetyRct | uiSafetyRct |
| typedef uiBlock *(* | uiBlockHandleCreateFunc) (struct bContext *C, struct uiPopupBlockHandle *handle, void *arg1) |
| typedef struct uiWidgetBaseParameters | uiWidgetBaseParameters |
| typedef struct uiRNACollectionSearch | uiRNACollectionSearch |
Variables | |
| const char | ui_radial_dir_order [8] |
| const char | ui_radial_dir_to_numpad [8] |
| const short | ui_radial_dir_to_angle [8] |
| const float | ui_pixel_jitter [UI_PIXEL_AA_JITTER][2] |
| #define PIE_CLICK_THRESHOLD_SQ 50.0f |
Definition at line 153 of file interface_intern.h.
| #define PIE_MAX_ITEMS 8 |
Definition at line 156 of file interface_intern.h.
| #define PNL_HEADER (UI_UNIT_Y * 1.2) /* 24 default */ |
Definition at line 116 of file interface_intern.h.
| #define RNA_ENUM_VALUE -2 |
Definition at line 60 of file interface_intern.h.
| #define RNA_NO_INDEX -1 |
Definition at line 59 of file interface_intern.h.
| #define UI_BITBUT_ROW | ( | min, | |
| max | |||
| ) | (((max) >= 31 ? 0xFFFFFFFF : (1 << ((max) + 1)) - 1) - ((min) ? ((1 << (min)) - 1) : 0)) |
Definition at line 126 of file interface_intern.h.
| #define UI_BITBUT_TEST | ( | a, | |
| b | |||
| ) | (((a) & (1 << (b))) != 0) |
Definition at line 120 of file interface_intern.h.
| #define UI_BITBUT_VALUE_DISABLED | ( | a, | |
| b | |||
| ) | ((a) & ~(1 << (b))) |
Definition at line 123 of file interface_intern.h.
| #define UI_BITBUT_VALUE_ENABLED | ( | a, | |
| b | |||
| ) | ((a) | (1 << (b))) |
Definition at line 122 of file interface_intern.h.
| #define UI_BITBUT_VALUE_TOGGLED | ( | a, | |
| b | |||
| ) | ((a) ^ (1 << (b))) |
Definition at line 121 of file interface_intern.h.
| #define UI_MENU_PADDING (int)(0.2f * UI_UNIT_Y) |
Definition at line 62 of file interface_intern.h.
| #define UI_MENU_SCROLL_ARROW (12 * UI_DPI_FAC) |
Definition at line 69 of file interface_intern.h.
| #define UI_MENU_SCROLL_MOUSE (UI_MENU_SCROLL_ARROW + 2 * UI_DPI_FAC) |
Definition at line 70 of file interface_intern.h.
| #define UI_MENU_SCROLL_PAD (4 * UI_DPI_FAC) |
Definition at line 71 of file interface_intern.h.
| #define UI_MENU_SUBMENU_PADDING (6 * UI_DPI_FAC) |
Definition at line 66 of file interface_intern.h.
| #define UI_MENU_WIDTH_MIN (UI_UNIT_Y * 9) |
Definition at line 64 of file interface_intern.h.
| #define UI_PANEL_MINX 100 |
Definition at line 74 of file interface_intern.h.
| #define UI_PANEL_MINY 70 |
Definition at line 75 of file interface_intern.h.
| #define UI_PIXEL_AA_JITTER 8 |
Definition at line 1036 of file interface_intern.h.
| #define UI_POPOVER_WIDTH_UNITS 10 |
Definition at line 78 of file interface_intern.h.
| #define UI_POPUP_MARGIN (UI_DPI_FAC * 12) |
Definition at line 1031 of file interface_intern.h.
| #define UI_POPUP_MENU_TOP (int)(10 * UI_DPI_FAC) |
Definition at line 1034 of file interface_intern.h.
| #define UI_TEXT_MARGIN_X 0.4f |
Definition at line 1030 of file interface_intern.h.
| #define USE_NUMBUTS_LR_ALIGN |
Definition at line 130 of file interface_intern.h.
| #define USE_UIBUT_SPATIAL_ALIGN |
Definition at line 133 of file interface_intern.h.
| typedef struct ColorPicker ColorPicker |
| typedef struct ColorPickerData ColorPickerData |
| typedef enum RadialDirection RadialDirection |
| typedef uiBlock*(* uiBlockHandleCreateFunc) (struct bContext *C, struct uiPopupBlockHandle *handle, void *arg1) |
Definition at line 680 of file interface_intern.h.
| typedef struct uiButColor uiButColor |
Derived struct for UI_BTYPE_COLOR
| typedef struct uiButColorBand uiButColorBand |
Derived struct for UI_BTYPE_COLORBAND.
| typedef struct uiButCurveMapping uiButCurveMapping |
Derived struct for UI_BTYPE_CURVE.
| typedef struct uiButCurveProfile uiButCurveProfile |
Derived struct for UI_BTYPE_CURVEPROFILE.
| typedef struct uiButDecorator uiButDecorator |
Derived struct for UI_BTYPE_DECORATOR
| typedef struct uiButExtraOpIcon uiButExtraOpIcon |
Additional, superimposed icon for a button, invoking an operator.
| typedef struct uiButHSVCube uiButHSVCube |
Derived struct for UI_BTYPE_HSVCUBE.
| typedef struct uiButNumber uiButNumber |
Derived struct for UI_BTYPE_NUM
| typedef struct uiButProgressbar uiButProgressbar |
Derived struct for UI_BTYPE_PROGRESS_BAR.
| typedef struct uiButSearch uiButSearch |
Derived struct for UI_BTYPE_SEARCH_MENU
Derived struct for UI_BTYPE_TAB
| typedef struct uiButtonGroup uiButtonGroup |
A group of button references, used by property search to keep track of sets of buttons that should be searched together. For example, in property split layouts number buttons and their labels (and even their decorators) are separate buttons, but they must be searched and highlighted together.
| typedef enum uiButtonGroupFlag uiButtonGroupFlag |
| typedef struct uiRNACollectionSearch uiRNACollectionSearch |
For use with ui_rna_collection_search_update_fn.
| typedef struct uiSafetyRct uiSafetyRct |
| typedef struct uiWidgetBaseParameters uiWidgetBaseParameters |
| anonymous enum |
| Enumerator | |
|---|---|
| UI_SELECT | |
| UI_SCROLLED | |
| UI_ACTIVE | |
| UI_HAS_ICON | |
| UI_HIDDEN | |
| UI_SELECT_DRAW | |
| UI_SEARCH_FILTER_NO_MATCH | Property search filter is active and the button does not match. |
Definition at line 81 of file interface_intern.h.
| anonymous enum |
| Enumerator | |
|---|---|
| UI_BUT_DRAGPOIN_FREE | |
Definition at line 94 of file interface_intern.h.
| anonymous enum |
Definition at line 136 of file interface_intern.h.
| anonymous enum |
| Enumerator | |
|---|---|
| ROUNDBOX_TRIA_NONE | |
| ROUNDBOX_TRIA_ARROWS | |
| ROUNDBOX_TRIA_SCROLL | |
| ROUNDBOX_TRIA_MENU | |
| ROUNDBOX_TRIA_CHECK | |
| ROUNDBOX_TRIA_HOLD_ACTION_ARROW | |
| ROUNDBOX_TRIA_MAX | |
Definition at line 972 of file interface_intern.h.
| enum eBlockContentHints |
| Enumerator | |
|---|---|
| UI_BLOCK_CONTAINS_SUBMENU_BUT | In a menu block, if there is a single sub-menu button, we add some padding to the right to put nicely aligned triangle icons there. |
Definition at line 433 of file interface_intern.h.
| enum RadialDirection |
| Enumerator | |
|---|---|
| UI_RADIAL_NONE | |
| UI_RADIAL_N | |
| UI_RADIAL_NE | |
| UI_RADIAL_E | |
| UI_RADIAL_SE | |
| UI_RADIAL_S | |
| UI_RADIAL_SW | |
| UI_RADIAL_W | |
| UI_RADIAL_NW | |
Definition at line 99 of file interface_intern.h.
| enum uiButtonGroupFlag |
| Enumerator | |
|---|---|
| UI_BUTTON_GROUP_LOCK | While this flag is set, don't create new button groups for layout item calls. |
| UI_BUTTON_GROUP_PANEL_HEADER | The buttons in this group are inside a panel header. |
Definition at line 452 of file interface_intern.h.
Info about what the separator character separates, used to decide between different drawing styles. E.g. we never want a shortcut string to be clipped, but other hint strings can be clipped.
Definition at line 1011 of file interface_intern.h.
| struct wmKeyMap* eyedropper_colorband_modal_keymap | ( | struct wmKeyConfig * | keyconf | ) |
Definition at line 75 of file interface_eyedropper.c.
References EYE_MODAL_POINT_CANCEL, EYE_MODAL_POINT_CONFIRM, EYE_MODAL_POINT_RESET, EYE_MODAL_POINT_SAMPLE, wmKeyMap::modal_items, NULL, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by ED_keymap_ui().
| struct wmKeyMap* eyedropper_modal_keymap | ( | struct wmKeyConfig * | keyconf | ) |
Definition at line 45 of file interface_eyedropper.c.
References EYE_MODAL_CANCEL, EYE_MODAL_SAMPLE_BEGIN, EYE_MODAL_SAMPLE_CONFIRM, EYE_MODAL_SAMPLE_RESET, wmKeyMap::modal_items, NULL, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by ED_keymap_ui().
| void icon_draw_rect_input | ( | float | x, |
| float | y, | ||
| int | w, | ||
| int | h, | ||
| float | alpha, | ||
| short | event_type, | ||
| short | event_value | ||
| ) |
| struct GPUBatch* ui_batch_roundbox_shadow_get | ( | void | ) |
Definition at line 471 of file interface_widgets.c.
References Freestyle::a, Freestyle::c, g_ui_batch_cache, GPU_batch_create_ex(), GPU_BATCH_OWNS_VBO, gpu_batch_presets_register(), GPU_PRIM_TRI_STRIP, GPU_vertbuf_attr_get_raw_data(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), INNER, NO_AA, NULL, set_roundbox_vertex(), set_roundbox_vertex_data(), vflag_format(), WIDGET_CURVE_RESOLU, and WIDGET_SIZE_MAX.
Referenced by ui_draw_dropshadow().
| struct GPUBatch* ui_batch_roundbox_widget_get | ( | void | ) |
Definition at line 445 of file interface_widgets.c.
References g_ui_batch_cache, GPU_batch_create_ex(), GPU_BATCH_OWNS_INDEX, GPU_BATCH_OWNS_VBO, gpu_batch_presets_register(), GPU_indexbuf_add_tri_verts(), GPU_indexbuf_build(), GPU_indexbuf_init(), GPU_PRIM_TRIS, GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), NULL, and vflag_format().
Referenced by draw_widgetbase_batch(), UI_draw_roundbox_4fv_ex(), and UI_widgetbase_draw_cache_flush().
| void ui_block_bounds_calc | ( | uiBlock * | block | ) |
Definition at line 441 of file interface.c.
References BLI_listbase_is_empty(), BLI_rctf_init_minmax(), BLI_rctf_size_x(), BLI_rctf_union(), uiBlock::bounds, uiBlock::buttons, ListBase::first, LISTBASE_FOREACH, max_ff(), uiBlock::minbounds, uiBlock::panel, uiBlock::rect, uiBlock::safety, Panel::sizex, Panel::sizey, uiBut::str, STRPREFIX, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by ui_block_bounds_calc_centered(), ui_block_bounds_calc_centered_pie(), ui_block_bounds_calc_popup(), UI_block_end_ex(), ui_offset_panel_block(), and ui_update_flexible_spacing().
Definition at line 9574 of file interface_handlers.c.
References copy_v2_v2(), PieMenuData::flags, len, normalize_v2_v2(), PieMenuData::pie_center_init, PieMenuData::pie_center_spawned, uiBlock::pie_data, PieMenuData::pie_dir, sub_v2_v2v2(), UI_PIE_INITIAL_DIRECTION, and UI_PIE_INVALID_DIR.
Referenced by ui_pie_handler(), and ui_popup_block_refresh().
| struct ColorManagedDisplay* ui_block_cm_display_get | ( | uiBlock * | block | ) |
Definition at line 3839 of file interface.c.
References uiBlock::display_device, and IMB_colormanagement_display_get_named().
Referenced by ui_block_cm_to_display_space_v3(), and ui_draw_but_COLORBAND().
Definition at line 3844 of file interface.c.
References IMB_colormanagement_scene_linear_to_display_v3(), and ui_block_cm_display_get().
Referenced by ui_draw_but_HSVCIRCLE(), and widget_swatch().
| ColorPicker* ui_block_colorpicker_create | ( | struct uiBlock * | block | ) |
Definition at line 921 of file interface_region_color_picker.c.
References BLI_addhead(), uiBlock::color_pickers, ColorPickerData::list, and MEM_callocN.
Referenced by ui_block_colorpicker(), and uiTemplateColorPicker().
| uiBlock* ui_block_find_mouse_over | ( | const struct ARegion * | region, |
| const struct wmEvent * | event, | ||
| bool | only_clip | ||
| ) |
| uiBlock* ui_block_find_mouse_over_ex | ( | const struct ARegion * | region, |
| const int | x, | ||
| const int | y, | ||
| bool | only_clip | ||
| ) |
Referenced by UI_region_block_find_mouse_over().
| void ui_block_free_button_groups | ( | uiBlock * | block | ) |
Definition at line 71 of file interface_button_group.c.
References button_group_free(), uiBlock::button_groups, and LISTBASE_FOREACH_MUTABLE.
Referenced by UI_block_free().
| uiBlock* ui_block_func_COLOR | ( | struct bContext * | C, |
| uiPopupBlockHandle * | handle, | ||
| void * | arg_but | ||
| ) |
Definition at line 885 of file interface_region_color_picker.c.
References uiBut::block, uiBlock::block_event_func, C, copy_v3_v3(), uiBlock::direction, uiBut::editvec, uiBlock::flag, uiBlock::is_color_gamma_picker, uiPopupBlockHandle::region, uiPopupBlockHandle::retvec, UI_block_begin(), UI_block_bounds_set_normal(), ui_block_colorpicker(), UI_BLOCK_KEEP_OPEN, UI_BLOCK_LOOP, UI_BLOCK_MOVEMOUSE_QUIT, UI_BLOCK_OUT_1, UI_BLOCK_POPUP, UI_BLOCK_THEME_STYLE_POPUP, UI_block_theme_style_set(), ui_but_is_color_gamma(), ui_colorpicker_small_wheel_cb(), UI_DIR_UP, UI_EMBOSS, and UI_UNIT_X.
Referenced by ui_block_open_begin().
| bool ui_block_is_menu | ( | const uiBlock * | block | ) |
Definition at line 487 of file interface_query.c.
References uiBlock::flag, UI_BLOCK_KEEP_OPEN, and UI_BLOCK_LOOP.
Referenced by UI_block_can_add_separator(), ui_block_func_POPOVER(), ui_block_is_popup_any(), ui_but_is_drag_toggle(), UI_but_string_info_get(), ui_do_but_TOG(), ui_handle_button_event(), ui_handle_menu_button(), ui_handle_menu_event(), ui_handle_menus_recursive(), ui_menu_scroll_apply_offset_y(), ui_mouse_motion_towards_check(), ui_popup_context_menu_for_button(), ui_popup_menu_create(), uiItemS_ex(), and widget_draw_text_icon().
| bool ui_block_is_pie_menu | ( | const uiBlock * | block | ) |
Definition at line 499 of file interface_query.c.
References uiBlock::flag, and UI_BLOCK_RADIAL.
Referenced by UI_block_can_add_separator(), ui_block_is_popup_any(), ui_handle_button_event(), ui_handle_menu_button(), widget_draw_icon(), and widget_draw_text_icon().
| bool ui_block_is_popover | ( | const uiBlock * | block | ) |
Definition at line 494 of file interface_query.c.
References uiBlock::flag, and UI_BLOCK_POPOVER.
Referenced by ui_block_is_popup_any(), UI_but_has_tooltip_label(), and ui_def_but().
| bool ui_block_is_popup_any | ( | const uiBlock * | block | ) |
Definition at line 504 of file interface_query.c.
References ui_block_is_menu(), ui_block_is_pie_menu(), and ui_block_is_popover().
Referenced by ui_popup_context_menu_for_button(), and uiItemSpacer().
| 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 35 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().
| void ui_block_to_window_rctf | ( | const struct ARegion * | region, |
| uiBlock * | block, | ||
| rctf * | rct_dst, | ||
| const rctf * | rct_src | ||
| ) |
Exported to interface.c: UI_but_active_only()
Definition at line 8607 of file interface_handlers.c.
References uiBut::block, button_activate_init(), BUTTON_ACTIVATE_OVER, C, CTX_wm_window(), EVT_BUT_OPEN, KM_PRESS, ui_do_button(), and wm_event_init_from_window().
Referenced by UI_but_active_only_ex().
Simulate moving the mouse over a button (or navigating to it with arrow keys).
exported so menus can start with a highlighted button, even if the mouse isn't over it
Definition at line 8630 of file interface_handlers.c.
References button_activate_init(), BUTTON_ACTIVATE_OVER, and C.
Referenced by ui_block_func_POPUP().
Definition at line 2862 of file interface_handlers.c.
References uiBut::active, button_activate_state(), BUTTON_STATE_EXIT, C, MEM_callocN, uiHandleButtonData::str, and ui_apply_but_TEX().
Referenced by button_string_clear_exec().
| uiBut* ui_but_add_search | ( | uiBut * | but, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| PointerRNA * | searchptr, | ||
| PropertyRNA * | searchprop | ||
| ) |
Definition at line 2674 of file interface_layout.c.
References uiBut::block, uiRNACollectionSearch::butstore, uiRNACollectionSearch::butstore_block, uiBut::drawflag, uiBut::flag, uiBut::hardmax, MAX2, MEM_mallocN, NULL, PROP_ENUM, PROP_POINTER, ptr, RNA_property_is_unlink(), RNA_property_pointer_type(), RNA_property_type(), uiButSearch::rnasearchpoin, uiButSearch::rnasearchprop, uiRNACollectionSearch::search_but, search_id_collection(), uiRNACollectionSearch::search_prop, uiRNACollectionSearch::search_ptr, uiBut::str, uiRNACollectionSearch::target_prop, uiRNACollectionSearch::target_ptr, uiBut::type, UI_BTYPE_SEARCH_MENU, ui_but_change_type(), UI_BUT_DISABLED, UI_but_func_search_set(), UI_BUT_ICON_LEFT, UI_BUT_TEXT_LEFT, UI_BUT_VALUE_CLEAR, UI_butstore_create(), UI_butstore_register(), ui_rna_collection_search_arg_free_fn(), ui_rna_collection_search_update_fn(), and ui_searchbox_create_generic().
Referenced by uiItemFullR(), and uiItemPointerR_prop().
| void ui_but_add_shortcut | ( | uiBut * | but, |
| const char * | shortcut_str, | ||
| const bool | do_strip | ||
| ) |
Definition at line 1136 of file interface.c.
References BLI_snprintf(), BLI_strdup(), uiBut::drawflag, uiBut::flag, MEM_freeN, NULL, uiBut::str, uiBut::strdata, UI_BUT_HAS_SEP_CHAR, UI_BUT_HAS_SHORTCUT, ui_but_update(), UI_SEP_CHAR, and UI_SEP_CHAR_S.
Referenced by but_shortcut_name_func(), ui_menu_block_set_keymaps(), and uiItemMenuEnumO_ptr().
| int ui_but_align_opposite_to_area_align_get | ( | const struct ARegion * | region | ) |
Definition at line 313 of file interface_anim.c.
References C, ED_autokeyframe_property(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, and scene.
Referenced by ui_apply_but_autokey().
| void ui_but_anim_copy_driver | ( | struct bContext * | C | ) |
Definition at line 318 of file interface_anim.c.
References C, NULL, WM_OP_INVOKE_DEFAULT, and WM_operator_name_call().
| void ui_but_anim_decorate_cb | ( | struct bContext * | C, |
| void * | arg_but, | ||
| void * | arg_dummy | ||
| ) |
| void ui_but_anim_decorate_update_from_flag | ( | uiButDecorator * | but | ) |
Definition at line 144 of file interface_anim.c.
References uiButDecorator::but, PointerRNA::data, uiBut::flag, uiBut::icon, RNA_property_identifier(), RNA_struct_identifier(), uiButDecorator::rnapoin, uiButDecorator::rnaprop, PointerRNA::type, ui_but_anim_decorate_find_attached_button(), UI_BUT_ANIMATED, UI_BUT_ANIMATED_KEY, UI_BUT_DISABLED, UI_BUT_DRIVEN, UI_BUT_INACTIVE, and UI_BUT_OVERRIDDEN.
Referenced by UI_block_end_ex(), and UI_context_update_anim_flag().
| bool ui_but_anim_expression_create | ( | uiBut * | but, |
| const char * | str | ||
| ) |
Definition at line 245 of file interface_anim.c.
References BKE_driver_invalidate_expression(), BLI_strncpy_utf8(), uiBut::block, C, CTX_data_main(), PointerRNA::data, DEG_relations_tag_update(), FCurve::driver, DRIVER_FCURVE_KEYFRAMES, DRIVER_TYPE_PYTHON, ELEM, uiBlock::evil_C, ChannelDriver::expression, G, G_DEBUG, GS, id, ID_MA, ID_TE, MEM_freeN, ID::name, NC_ANIMATION, ND_KEYFRAME, NULL, PointerRNA::owner_id, RNA_path_from_ID_to_property(), RNA_property_array_check(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, str, ChannelDriver::type, verify_driver_fcurve(), and WM_event_add_notifier().
Referenced by ui_but_string_set().
| bool ui_but_anim_expression_get | ( | uiBut * | but, |
| char * | str, | ||
| size_t | maxlen | ||
| ) |
str can be NULL to only perform check if but has an expression at all.
Definition at line 187 of file interface_anim.c.
References BLI_strncpy(), FCurve::driver, DRIVER_TYPE_PYTHON, ChannelDriver::expression, NULL, str, ChannelDriver::type, and ui_but_get_fcurve().
Referenced by ui_but_string_get_ex(), ui_textedit_begin(), and ui_tooltip_data_from_button().
| bool ui_but_anim_expression_set | ( | uiBut * | but, |
| const char * | str | ||
| ) |
Definition at line 209 of file interface_anim.c.
References BKE_driver_invalidate_expression(), BLI_strncpy_utf8(), uiBut::block, C, CTX_data_main(), DEG_relations_tag_update(), FCurve::driver, DRIVER_FLAG_INVALID, DRIVER_TYPE_PYTHON, uiBlock::evil_C, ChannelDriver::expression, FCURVE_DISABLED, ChannelDriver::flag, FCurve::flag, NC_ANIMATION, ND_KEYFRAME, NULL, str, ChannelDriver::type, ui_but_get_fcurve(), and WM_event_add_notifier().
Referenced by ui_but_string_set().
| void ui_but_anim_flag | ( | uiBut * | but, |
| const struct AnimationEvalContext * | anim_eval_context | ||
| ) |
| void ui_but_anim_paste_driver | ( | struct bContext * | C | ) |
Definition at line 324 of file interface_anim.c.
References C, NULL, WM_OP_INVOKE_DEFAULT, and WM_operator_name_call().
| bool ui_but_can_align | ( | const uiBut * | but | ) |
Definition at line 114 of file interface_align.c.
References BLI_rctf_size_x(), BLI_rctf_size_y(), ButAlign::but, ELEM, uiBut::rect, uiBut::type, UI_BTYPE_CHECKBOX, UI_BTYPE_CHECKBOX_N, UI_BTYPE_LABEL, UI_BTYPE_SEPR, UI_BTYPE_SEPR_LINE, UI_BTYPE_SEPR_SPACER, and UI_BTYPE_TAB.
Referenced by block_align_proximity_compute(), ui_def_but(), and ui_item_align().
Reallocate the button (new address is returned) for a new button type. This should generally be avoided and instead the correct type be created right away.
Definition at line 3935 of file interface.c.
References BLI_assert, BLI_insertlinkafter(), BLI_remlink(), uiBut::block, uiBlock::buttons, uiBut::layout, MEM_recallocN_id, NULL, uiBut::poin, uiBut::prev, uiBut::str, uiBut::strdata, uiBut::type, ui_but_alloc_info(), ui_button_group_replace_but_ptr(), UI_editsource_but_replace(), UI_editsource_enable_check(), ui_layout_replace_but_ptr(), uiLayoutGetBlock(), and UNUSED_VARS_NDEBUG.
Referenced by ui_but_add_search(), ui_item_array(), and uiItemFullR().
| void ui_but_clipboard_free | ( | void | ) |
Definition at line 2779 of file interface_handlers.c.
References BKE_curvemapping_free_data(), BKE_curveprofile_free_data(), but_copypaste_curve, and but_copypaste_profile.
Referenced by UI_exit().
| bool ui_but_contains_password | ( | const uiBut * | but | ) |
Definition at line 446 of file interface_query.c.
References PROP_PASSWORD, RNA_property_subtype(), and uiBut::rnaprop.
Referenced by ui_but_copy().
| bool ui_but_contains_point_px_icon | ( | const uiBut * | but, |
| struct ARegion * | region, | ||
| const struct wmEvent * | event | ||
| ) |
Referenced by ui_do_but_BLOCK(), ui_do_but_COLOR(), and ui_do_but_EXIT().
Definition at line 212 of file interface_query.c.
References BLI_rctf_isect_pt(), and uiBut::rect.
Referenced by ui_but_contains_point_px(), ui_but_find_mouse_over_ex(), ui_do_but_textedit(), and ui_list_find_mouse_over_ex().
Definition at line 217 of file interface_query.c.
References BLI_rctf_isect(), NULL, and uiBut::rect.
Referenced by ui_but_find_rect_over().
| bool ui_but_context_poll_operator | ( | bContext * | C, |
| wmOperatorType * | ot, | ||
| const uiBut * | but | ||
| ) |
Check if the operator ot poll is successful with the context given by but (optionally).
| but | The button that might store context. Can be NULL for convenience (e.g. if there is no button to take context from, but we still want to poll the operator). |
Definition at line 1824 of file interface.c.
References C, uiBut::context, CTX_store_set(), NULL, uiBut::opcontext, ot, result, WM_OP_INVOKE_DEFAULT, and WM_operator_poll_context().
Referenced by UI_block_end_ex().
| void ui_but_convert_to_unit_alt_name | ( | uiBut * | but, |
| char * | str, | ||
| size_t | maxlen | ||
| ) |
Definition at line 2630 of file interface.c.
References BKE_unit_name_to_alt(), BLI_strdup(), uiBut::block, MEM_freeN, RNA_SUBTYPE_UNIT_VALUE, str, UnitSettings::system, ui_but_is_unit(), UI_but_unit_type_get(), and uiBlock::unit.
Referenced by ui_textedit_begin().
Definition at line 2600 of file interface.c.
References BLI_assert, uiBut::block, uiBlock::buttons, uiBut::flag, LISTBASE_FOREACH, NULL, and UI_BUT_DRAG_MULTI.
Referenced by ui_draw_but(), widget_draw_text(), and widget_draw_text_icon().
| size_t ui_but_drawstr_len_without_sep_char | ( | const uiBut * | but | ) |
Definition at line 457 of file interface_query.c.
References uiBut::drawstr, uiBut::flag, NULL, UI_BUT_HAS_SEP_CHAR, and UI_SEP_CHAR.
Referenced by ui_apply_but_undo().
| void ui_but_execute_begin | ( | struct bContext * | C, |
| struct ARegion * | region, | ||
| uiBut * | but, | ||
| void ** | active_back | ||
| ) |
| void ui_but_execute_end | ( | struct bContext * | C, |
| struct ARegion * | region, | ||
| uiBut * | but, | ||
| void * | active_back | ||
| ) |
| void ui_but_extra_operator_icons_free | ( | uiBut * | but | ) |
Definition at line 1642 of file interface.c.
References BLI_listbase_clear(), uiBut::extra_op_icons, LISTBASE_FOREACH_MUTABLE, and ui_but_extra_operator_icon_free().
Referenced by ui_but_extra_operator_icon_apply(), and ui_but_free().
| uiBut* ui_but_find_mouse_over_ex | ( | const struct ARegion * | region, |
| const int | x, | ||
| const int | y, | ||
| const bool | labeledit | ||
| ) |
Referenced by ui_but_list_row_text_activate(), ui_drag_toggle_set(), and ui_handler_region_drag_toggle().
Definition at line 736 of file interface.c.
References uiBlock::buttons, LISTBASE_FOREACH, NULL, and ui_but_equals_old().
Referenced by UI_butstore_update().
Definition at line 726 of file interface.c.
References uiBlock::buttons, LISTBASE_FOREACH, NULL, and ui_but_equals_old().
Referenced by UI_but_active_only_ex(), and ui_but_update_from_old_block().
Definition at line 315 of file interface_query.c.
References BLI_assert, BLI_rctf_isect(), BLI_rctf_rcti_copy(), LISTBASE_FOREACH, LISTBASE_FOREACH_BACKWARD, NULL, UI_BLOCK_CLIP_EVENTS, ui_but_contains_rect(), ui_but_is_interactive(), UI_RADIAL_NONE, ui_region_contains_rect_px(), ui_window_to_block_rctf(), and ARegion::uiblocks.
Referenced by UI_region_but_find_rect_over().
Finds the pressed button in an aligned row (typically an expanded enum).
| direction | Use when there may be multiple buttons pressed. |
Definition at line 549 of file interface_handlers.c.
References BLI_assert, ELEM, uiBut::flag, uiBut::next, NULL, uiBut::prev, ui_but_find_select_in_enum__cmp(), and UI_SELECT.
Referenced by ui_do_but_TOG().
Definition at line 404 of file interface_query.c.
References uiBlock::buttons, LISTBASE_FOREACH, NULL, and ui_but_is_editable().
Referenced by button_activate_init(), and ui_handle_menu_event().
| bool ui_but_has_array_value | ( | const uiBut * | but | ) |
Definition at line 121 of file interface_query.c.
References PointerRNA::data, ELEM, PROP_ACCELERATION, PROP_AXISANGLE, PROP_COLOR, PROP_COLOR_GAMMA, PROP_COORDS, PROP_DIRECTION, PROP_EULER, PROP_MATRIX, PROP_QUATERNION, PROP_TRANSLATION, PROP_VELOCITY, PROP_XYZ, PROP_XYZ_LENGTH, RNA_property_subtype(), uiBut::rnapoin, and uiBut::rnaprop.
Referenced by ui_but_copy(), and ui_but_paste().
| void ui_but_hsv_set | ( | uiBut * | but | ) |
Definition at line 187 of file interface_region_color_picker.c.
References uiBut::custom_data, ColorPicker::hsv_perceptual, ui_but_v3_set(), and ui_color_picker_hsv_to_rgb().
Referenced by ui_do_but_HSVCIRCLE().
| int ui_but_icon | ( | const uiBut * | but | ) |
Definition at line 163 of file interface_query.c.
References uiBut::drawflag, uiBut::flag, uiBut::icon, uiBut::iconadd, UI_BUT_ICON_REVERSE, and UI_HAS_ICON.
Referenced by menu_items_from_ui_create_item_from_button(), and widget_draw_text_icon().
| bool ui_but_is_bool | ( | const uiBut * | but | ) |
Definition at line 2330 of file interface.c.
References ELEM, PROP_BOOLEAN, PROP_ENUM, RNA_property_type(), uiBut::rnaprop, uiBut::type, UI_BTYPE_ICON_TOGGLE, UI_BTYPE_ICON_TOGGLE_N, UI_BTYPE_ROW, UI_BTYPE_TAB, UI_BTYPE_TOGGLE, and UI_BTYPE_TOGGLE_N.
Referenced by ui_drag_toggle_but_is_supported(), and ui_drag_toggle_but_pushed_state().
| bool ui_but_is_color_gamma | ( | uiBut * | but | ) |
Definition at line 120 of file interface_region_color_picker.c.
References uiBut::block, uiBlock::is_color_gamma_picker, PROP_COLOR_GAMMA, RNA_property_subtype(), and uiBut::rnaprop.
Referenced by ui_block_colorpicker(), ui_block_func_COLOR(), ui_colorpicker_hex_rna_cb(), ui_draw_but_HSVCIRCLE(), ui_perceptual_to_scene_linear_space(), ui_scene_linear_to_perceptual_space(), ui_update_color_picker_buts_rgb(), and widget_swatch().
Check if this button is similar enough to be grouped with another.
Definition at line 2385 of file interface.c.
References uiBut::pointype, RNA_property_subtype(), RNA_property_type(), uiBut::rnapoin, uiBut::rnaprop, uiBut::type, and PointerRNA::type.
Referenced by ui_multibut_states_tag().
| bool ui_but_is_cursor_warp | ( | const uiBut * | but | ) |
Definition at line 428 of file interface_query.c.
References ELEM, uiBut::type, UI_BTYPE_CURVE, UI_BTYPE_CURVEPROFILE, UI_BTYPE_HSVCIRCLE, UI_BTYPE_HSVCUBE, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER, UI_BTYPE_TRACK_PREVIEW, and USER_CONTINUOUS_MOUSE.
Referenced by button_activate_state(), ui_do_but_NUM(), ui_numedit_begin(), ui_numedit_but_CURVE(), ui_numedit_but_CURVEPROFILE(), ui_numedit_but_HSVCIRCLE(), ui_numedit_but_HSVCUBE(), ui_numedit_but_NUM(), and ui_numedit_but_SLI().
| bool ui_but_is_editable | ( | const uiBut * | but | ) |
Definition at line 44 of file interface_query.c.
References ELEM, uiBut::type, UI_BTYPE_LABEL, UI_BTYPE_LISTBOX, UI_BTYPE_PROGRESS_BAR, UI_BTYPE_ROUNDBOX, UI_BTYPE_SEPR, and UI_BTYPE_SEPR_LINE.
Referenced by UI_block_active_only_flagged_buttons(), ui_block_func_POPOVER(), ui_block_func_POPUP(), ui_but_first(), ui_but_last(), ui_but_next(), ui_but_prev(), and ui_handle_button_event().
| bool ui_but_is_editable_as_text | ( | const uiBut * | but | ) |
Definition at line 55 of file interface_query.c.
References ELEM, uiBut::type, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER, UI_BTYPE_SEARCH_MENU, and UI_BTYPE_TEXT.
Referenced by ui_handle_button_event(), ui_textedit_next_but(), and ui_textedit_prev_but().
| bool ui_but_is_editing | ( | const uiBut * | but | ) |
Definition at line 499 of file interface_handlers.c.
References uiBut::active, BUTTON_STATE_NUM_EDITING, BUTTON_STATE_TEXT_EDITING, data, and ELEM.
Referenced by ui_but_update_ex().
| bool ui_but_is_float | ( | const uiBut * | but | ) |
Definition at line 2317 of file interface.c.
References uiBut::poin, uiBut::pointype, PROP_FLOAT, RNA_property_type(), uiBut::rnaprop, and UI_BUT_POIN_FLOAT.
Referenced by ui_but_string_eval_number(), ui_but_string_get_ex(), ui_but_string_set(), ui_but_update_ex(), ui_do_but_NUM(), ui_do_but_SLI(), ui_numedit_begin(), ui_numedit_but_NUM(), ui_numedit_but_SLI(), and ui_textedit_begin().
| bool ui_but_is_interactive | ( | const uiBut * | but, |
| const bool | labeledit | ||
| ) |
Can we mouse over the button or is it hidden/disabled/layout.
Definition at line 78 of file interface_query.c.
References uiBut::dragpoin, ELEM, uiBut::emboss, uiBut::flag, NULL, uiBut::type, UI_BTYPE_LABEL, UI_BTYPE_LISTBOX, UI_BTYPE_LISTROW, UI_BTYPE_ROUNDBOX, UI_BTYPE_SEPR, UI_BTYPE_SEPR_LINE, UI_BTYPE_TEXT, UI_EMBOSS_NONE, UI_EMBOSS_NONE_OR_STATUS, UI_HIDDEN, and UI_SCROLLED.
Referenced by ui_but_find_mouse_over_ex(), ui_but_find_rect_over(), ui_drag_toggle_set_xy_xy(), and ui_multibut_states_tag().
| bool ui_but_is_popover_once_compat | ( | const uiBut * | but | ) |
Definition at line 115 of file interface_query.c.
References ELEM, uiBut::type, UI_BTYPE_BUT, UI_BTYPE_DECORATOR, and ui_but_is_toggle().
Referenced by ui_draw_but(), and ui_handle_button_event().
| int ui_but_is_pushed | ( | uiBut * | but | ) |
Definition at line 2191 of file interface.c.
References ui_but_is_pushed_ex(), and UI_BUT_VALUE_UNSET.
Referenced by ui_drag_toggle_but_pushed_state().
Check if the button is pushed, this is only meaningful for some button types.
Definition at line 2106 of file interface.c.
References uiBut::bit, uiBut::bitnr, uiBut::custom_data, PointerRNA::data, uiBut::drawflag, ELEM, uiBut::hardmax, uiBut::hardmin, uiBut::optype, PROP_ENUM_FLAG, PROP_POINTER, RNA_property_flag(), RNA_property_pointer_get(), RNA_property_type(), uiBut::rnapoin, uiBut::rnaprop, state, uiBut::type, UI_BITBUT_TEST, UI_BTYPE_BUT, UI_BTYPE_BUT_TOGGLE, UI_BTYPE_CHECKBOX, UI_BTYPE_CHECKBOX_N, UI_BTYPE_COLOR, UI_BTYPE_DECORATOR, UI_BTYPE_HOTKEY_EVENT, UI_BTYPE_ICON_TOGGLE, UI_BTYPE_ICON_TOGGLE_N, UI_BTYPE_KEY_EVENT, UI_BTYPE_LISTROW, UI_BTYPE_ROW, UI_BTYPE_TAB, UI_BTYPE_TOGGLE, UI_BTYPE_TOGGLE_N, UI_BUT_CHECKBOX_INVERT, and UI_GET_BUT_VALUE_INIT.
Referenced by ui_but_is_pushed(), and ui_but_update_select_flag().
| bool ui_but_is_rna_valid | ( | uiBut * | but | ) |
Definition at line 2411 of file interface.c.
References uiBut::drawstr, NULL, RNA_struct_contains_property(), uiBut::rnapoin, and uiBut::rnaprop.
Referenced by ui_button_value_default().
| bool ui_but_is_toggle | ( | const uiBut * | but | ) |
Definition at line 60 of file interface_query.c.
References ELEM, uiBut::type, UI_BTYPE_BUT_TOGGLE, UI_BTYPE_CHECKBOX, UI_BTYPE_CHECKBOX_N, UI_BTYPE_ICON_TOGGLE, UI_BTYPE_ICON_TOGGLE_N, UI_BTYPE_ROW, UI_BTYPE_TOGGLE, and UI_BTYPE_TOGGLE_N.
Referenced by ui_but_is_popover_once_compat().
| bool ui_but_is_unit | ( | const uiBut * | but | ) |
Definition at line 2353 of file interface.c.
References uiBut::block, PROP_UNIT_NONE, PROP_UNIT_ROTATION, PROP_UNIT_TIME, UnitSettings::system, ui_but_is_unit_radians_ex(), UI_but_unit_type_get(), uiBlock::unit, and USER_UNIT_NONE.
Referenced by ui_but_build_drawstr_float(), ui_but_convert_to_unit_alt_name(), ui_but_string_eval_number(), ui_but_string_get_ex(), ui_def_but_rna(), ui_numedit_apply_snapf(), and ui_textedit_begin().
Definition at line 414 of file interface_query.c.
References uiBlock::buttons, ListBase::last, NULL, uiBut::prev, and ui_but_is_editable().
Referenced by ui_handle_menu_event().
| int ui_but_menu_direction | ( | uiBut * | but | ) |
Definition at line 4149 of file interface_handlers.c.
References uiBut::active, and data.
Referenced by widget_roundbox_set().
| bool ui_but_menu_draw_as_popover | ( | const uiBut * | but | ) |
Definition at line 4376 of file interface.c.
References uiBut::menu_create_func, and ui_def_but_rna__panel_type().
Referenced by button_activate_state(), ui_block_open_begin(), and widget_roundbox_set().
| int ui_but_menu_step | ( | uiBut * | but, |
| int | direction | ||
| ) |
Definition at line 73 of file interface_region_menu_popup.c.
References uiBut::block, uiBlock::evil_C, uiBut::menu_step_func, uiBut::poin, RNA_property_enum_get(), RNA_property_enum_step(), uiBut::rnapoin, uiBut::rnaprop, uiBut::str, and ui_but_menu_step_poll().
Referenced by ui_do_but_BLOCK().
| bool ui_but_menu_step_poll | ( | const uiBut * | but | ) |
Definition at line 64 of file interface_region_menu_popup.c.
References BLI_assert, uiBut::menu_step_func, NULL, PROP_ENUM, RNA_property_type(), uiBut::rnaprop, uiBut::type, and UI_BTYPE_MENU.
Referenced by ui_but_menu_step(), and ui_but_supports_cycling().
Definition at line 393 of file interface_query.c.
References uiBut::next, NULL, and ui_but_is_editable().
Referenced by ui_handle_menu_event().
Definition at line 1580 of file interface.c.
References uiBut::flag, RNA_OVERRIDE_STATUS_OVERRIDDEN, RNA_property_override_library_status(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, and UI_BUT_OVERRIDDEN.
Referenced by UI_block_end_ex(), and UI_context_update_anim_flag().
| void ui_but_pie_dir | ( | RadialDirection | dir, |
| float | vec[2] | ||
| ) |
Definition at line 182 of file interface_query.c.
References angle(), BLI_assert, cosf, DEG2RADF, sinf, ui_radial_dir_to_angle, and UI_RADIAL_NONE.
Referenced by ui_but_isect_pie_seg(), ui_get_radialbut_vec(), and ui_pie_handler().
Definition at line 382 of file interface_query.c.
References NULL, uiBut::prev, and ui_but_is_editable().
Referenced by ui_handle_menu_event().
| void ui_but_range_set_hard | ( | uiBut * | but | ) |
Definition at line 3194 of file interface.c.
References uiBut::hardmax, uiBut::hardmin, NULL, PROP_FLOAT, PROP_INT, RNA_property_float_range(), RNA_property_int_range(), RNA_property_type(), uiBut::rnapoin, uiBut::rnaprop, and type.
Referenced by ui_handle_button_event().
| void ui_but_range_set_soft | ( | uiBut * | but | ) |
Definition at line 3219 of file interface.c.
References CLAMP, double(), e, uiBut::hardmax, uiBut::hardmin, CCL_NAMESPACE_BEGIN::isfinite(), max_ff(), min_ff(), uiBut::poin, uiBut::pointype, PROP_COLOR, PROP_FLOAT, PROP_INT, RNA_property_array_check(), RNA_property_float_get_array_range(), RNA_property_float_ui_range(), RNA_property_int_get_array_range(), RNA_property_int_ui_range(), RNA_property_subtype(), RNA_property_type(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, soft_range_round_down(), soft_range_round_up(), uiBut::softmax, uiBut::softmin, type, UI_BUT_POIN_TYPES, and ui_but_value_get().
Referenced by ui_but_update_ex(), and ui_handle_button_event().
Definition at line 672 of file interface.c.
References Freestyle::a, uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, and ui_but_rna_equals_ex().
Referenced by ui_but_equals_old().
| bool ui_but_rna_equals_ex | ( | const uiBut * | but, |
| const PointerRNA * | ptr, | ||
| const PropertyRNA * | prop, | ||
| int | index | ||
| ) |
Definition at line 677 of file interface.c.
References PointerRNA::data, ptr, uiBut::rnaindex, uiBut::rnapoin, and uiBut::rnaprop.
Referenced by ui_but_anim_decorate_find_attached_button(), and ui_but_rna_equals().
| void ui_but_rna_menu_convert_to_menu_type | ( | struct uiBut * | but, |
| const char * | menu_type | ||
| ) |
Definition at line 4396 of file interface.c.
References BLI_assert, BLI_strdup(), uiBut::func_argN, uiBut::menu_create_func, uiBut::poin, uiBut::type, UI_BTYPE_MENU, ui_def_but_rna__menu(), and ui_def_but_rna__menu_type().
Referenced by uiItemFullR_with_menu().
| void ui_but_rna_menu_convert_to_panel_type | ( | struct uiBut * | but, |
| const char * | panel_type | ||
| ) |
Definition at line 4367 of file interface.c.
References BLI_assert, BLI_strdup(), ELEM, uiBut::func_argN, uiBut::menu_create_func, uiBut::type, UI_BTYPE_COLOR, UI_BTYPE_MENU, and ui_def_but_rna__panel_type().
Referenced by uiItemFullR_with_popover().
| void ui_but_search_refresh | ( | uiButSearch * | but | ) |
Definition at line 1031 of file interface_region_search.c.
References uiBut::block, uiButSearch::but, uiBut::drawstr, uiBlock::evil_C, uiBut::hardmax, uiSearchItems::maxitem, uiSearchItems::maxstrlen, MEM_callocN, MEM_freeN, uiSearchItems::more, uiSearchItems::names, PROP_STRING, uiButSearch::results_are_suggestions, RNA_property_type(), uiBut::rnaprop, uiSearchItems::totitem, UI_but_flag_enable(), UI_BUT_REDALERT, UI_search_items_find_index(), and ui_searchbox_update_fn().
Referenced by UI_but_func_search_set().
| bool ui_but_string_eval_number | ( | struct bContext * | C, |
| const uiBut * | but, | ||
| const char * | str, | ||
| double * | value | ||
| ) |
Definition at line 2984 of file interface.c.
References C, PROP_FACTOR, PROP_NONE, PROP_PERCENTAGE, RNA_property_subtype(), uiBut::rnaprop, str, ui_but_is_float(), ui_but_is_unit(), ui_number_from_string(), ui_number_from_string_factor(), ui_number_from_string_percentage(), and ui_number_from_string_units_with_but().
Referenced by ui_but_paste_numeric_value(), and ui_but_string_set().
| void void ui_but_string_get | ( | uiBut * | but, |
| char * | str, | ||
| const size_t | maxlen | ||
| ) |
Definition at line 2847 of file interface.c.
References NULL, str, and ui_but_string_get_ex().
Referenced by ui_but_copy_text(), ui_but_update_ex(), and ui_tooltip_data_from_button().
| char* ui_but_string_get_dynamic | ( | uiBut * | but, |
| int * | r_str_size | ||
| ) |
A version of ui_but_string_get_ex for dynamic buffer sizes (where ui_but_string_get_max_length returns 0).
| r_str_size | size of the returned string (including terminator). |
Definition at line 2858 of file interface.c.
References BLI_assert, BLI_strdup(), BLI_strdupn(), uiBut::block, ELEM, uiBlock::evil_C, NULL, PROP_ENUM, PROP_POINTER, PROP_STRING, ptr, RNA_property_enum_get(), RNA_property_enum_name(), RNA_property_pointer_get(), RNA_property_string_get_alloc(), RNA_property_type(), RNA_struct_name_get_alloc(), uiBut::rnapoin, uiBut::rnaprop, str, uiBut::type, type, UI_BTYPE_SEARCH_MENU, UI_BTYPE_TEXT, and UNLIKELY.
Referenced by ui_textedit_begin().
| void ui_but_string_get_ex | ( | uiBut * | but, |
| char * | str, | ||
| const size_t | maxlen, | ||
| const int | float_precision, | ||
| const bool | use_exp_float, | ||
| bool * | r_use_exp_float | ||
| ) |
| int ui_but_string_get_max_length | ( | uiBut * | but | ) |
Definition at line 2592 of file interface.c.
References ELEM, uiBut::hardmax, uiBut::type, UI_BTYPE_SEARCH_MENU, UI_BTYPE_TEXT, and UI_MAX_DRAW_STR.
Referenced by ui_searchbox_autocomplete(), and ui_textedit_begin().
Definition at line 3038 of file interface.c.
References BLI_assert, BLI_strncpy(), BLI_strncpy_utf8(), uiBut::block, C, uiBut::custom_data, PointerRNA::data, ELEM, uiBlock::evil_C, floor(), uiBut::hardmax, uiBut::hardmin, uiButSearch::item_active, NULL, PointerRNA::owner_id, uiBut::poin, PointerRNA_NULL, PROP_ENUM, PROP_POINTER, PROP_STRING, ptr, RNA_pointer_create(), RNA_property_collection_lookup_string(), RNA_property_editable(), RNA_property_enum_set(), RNA_property_enum_value(), RNA_property_pointer_set(), RNA_property_pointer_type(), RNA_property_string_set(), RNA_property_type(), RNA_struct_name_property(), uiBut::rnapoin, uiBut::rnaprop, uiButSearch::rnasearchpoin, uiButSearch::rnasearchprop, str, uiBut::type, type, UI_BTYPE_SEARCH_MENU, UI_BTYPE_TAB, UI_BTYPE_TEXT, ui_but_anim_expression_create(), ui_but_anim_expression_set(), ui_but_is_float(), UI_but_is_utf8(), ui_but_string_eval_number(), ui_but_value_set(), and WM_report_banner_show().
Referenced by ui_apply_but_NUM(), ui_apply_but_TAB(), ui_apply_but_TEX(), ui_but_paste_numeric_value(), and ui_multibut_states_apply().
| bool ui_but_supports_cycling | ( | const uiBut * | but | ) |
Checks if the button supports cycling next/previous menu items (ctrl+mouse-wheel).
Definition at line 2423 of file interface.c.
References ELEM, uiBut::menu_step_func, NULL, uiBut::type, UI_BTYPE_COLOR, UI_BTYPE_LISTBOX, UI_BTYPE_MENU, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER, UI_BTYPE_ROW, and ui_but_menu_step_poll().
Referenced by ui_do_but_BLOCK(), and ui_handle_panel_category_cycling().
| void ui_but_text_password_hide | ( | char | password_str[UI_MAX_DRAW_STR], |
| uiBut * | but, | ||
| const bool | restore | ||
| ) |
| size_t ui_but_tip_len_only_first_line | ( | const uiBut * | but | ) |
Definition at line 468 of file interface_query.c.
References NULL, and uiBut::tip.
Referenced by ui_apply_but_undo().
| void ui_but_update | ( | uiBut * | but | ) |
Definition at line 3811 of file interface.c.
References ui_but_update_ex().
Referenced by button_activate_exit(), button_activate_state(), ui_block_bounds_calc_text(), UI_block_update_from_old(), ui_but_add_shortcut(), ui_but_update_and_icon_set(), ui_do_but_HOTKEYEVT(), ui_do_but_textedit_select(), ui_handle_button_return_submenu(), ui_item_move(), ui_item_position(), ui_layer_but_cb(), ui_numedit_apply(), ui_popup_block_position(), ui_textedit_begin(), ui_textedit_move(), ui_textedit_set_cursor_select(), ui_update_color_picker_buts_rgb(), uiDefBlockBut(), uiDefBlockButN(), uiDefBut(), uiDefButImage(), uiDefButO_ptr(), uiDefButR(), uiDefButR_prop(), uiDefHotKeyevtButS(), uiDefIconBlockBut(), uiDefIconMenuBut(), uiDefIconTextBlockBut(), uiDefIconTextMenuBut(), uiDefKeyevtButS(), uiDefMenuBut(), uiDefPulldownBut(), and uiDefSearchBut().
| void ui_but_update_edited | ( | uiBut * | but | ) |
Definition at line 3816 of file interface.c.
References ui_but_update_ex().
Referenced by ui_apply_but_BLOCK(), ui_apply_but_NUM(), ui_apply_but_ROW(), ui_apply_but_TAB(), ui_apply_but_TEX(), ui_apply_but_TOG(), ui_apply_but_VEC(), ui_do_but_textedit(), and ui_drag_toggle_set_xy_xy().
Definition at line 2230 of file interface.c.
References Freestyle::a, BLI_assert, copy_v3_v3(), uiBut::editvec, float(), min_ii(), normalize_v3(), NULL, uiBut::poin, uiBut::pointype, PROP_FLOAT, RNA_property_array_length(), RNA_property_float_get_array(), RNA_property_float_get_index(), RNA_property_type(), uiBut::rnapoin, uiBut::rnaprop, uiBut::type, UI_BTYPE_UNITVEC, UI_BUT_POIN_CHAR, UI_BUT_POIN_FLOAT, and zero_v3().
Referenced by ui_block_open_begin(), ui_but_copy_color(), ui_but_drag_init(), ui_colorpicker_small_wheel_cb(), ui_do_but_COLOR(), ui_do_but_HSVCIRCLE(), ui_do_but_HSVCUBE(), ui_draw_but_HSV_v(), ui_draw_but_HSVCIRCLE(), ui_draw_but_HSVCUBE(), ui_draw_but_UNITVEC(), ui_numedit_begin(), ui_numedit_but_HSVCIRCLE(), ui_numedit_but_HSVCUBE(), and widget_swatch().
Definition at line 2279 of file interface.c.
References Freestyle::a, BLI_assert, copy_v3_v3(), uiBut::editvec, min_ii(), uiBut::poin, uiBut::pointype, PROP_FLOAT, RNA_property_array_length(), RNA_property_float_set_array(), RNA_property_float_set_index(), RNA_property_type(), uiBut::rnapoin, uiBut::rnaprop, UI_BUT_POIN_CHAR, and UI_BUT_POIN_FLOAT.
Referenced by ui_apply_but_VEC(), ui_but_hsv_set(), ui_colorpicker_small_wheel_cb(), ui_do_but_COLOR(), ui_do_but_HSVCIRCLE(), ui_do_but_HSVCUBE(), ui_numedit_but_HSVCIRCLE(), and ui_update_color_picker_buts_rgb().
Definition at line 2431 of file interface.c.
References BLI_assert, PointerRNA::data, uiBut::editval, NULL, uiBut::poin, uiBut::pointype, PROP_BOOLEAN, PROP_ENUM, PROP_FLOAT, PROP_INT, RNA_property_array_check(), RNA_property_boolean_get(), RNA_property_boolean_get_index(), RNA_property_enum_get(), RNA_property_float_get(), RNA_property_float_get_index(), RNA_property_int_get(), RNA_property_int_get_index(), RNA_property_type(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, UI_BUT_POIN_CHAR, UI_BUT_POIN_FLOAT, UI_BUT_POIN_INT, and UI_BUT_POIN_SHORT.
Referenced by ui_apply_but_NUM(), ui_apply_but_TOG(), ui_but_drag_init(), ui_but_range_set_soft(), ui_but_string_get_ex(), UI_but_string_info_get(), ui_colorpicker_create_mode_cb(), ui_multibut_add(), ui_numedit_begin_set_values(), widget_numslider(), and widget_scroll().
Definition at line 2496 of file interface.c.
References uiBut::editval, float(), uiBut::poin, uiBut::pointype, PROP_BOOLEAN, PROP_ENUM, PROP_ENUM_FLAG, PROP_FLOAT, PROP_INT, RNA_property_array_check(), RNA_property_boolean_set(), RNA_property_boolean_set_index(), RNA_property_editable(), RNA_property_enum_get(), RNA_property_enum_set(), RNA_property_flag(), RNA_property_float_set(), RNA_property_float_set_index(), RNA_property_int_set(), RNA_property_int_set_index(), RNA_property_type(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, round_db_to_int_clamp(), round_db_to_short_clamp(), round_db_to_uchar_clamp(), UI_BUT_POIN_CHAR, UI_BUT_POIN_FLOAT, UI_BUT_POIN_INT, UI_BUT_POIN_SHORT, ui_but_update_select_flag(), and UI_BUT_VALUE_UNSET.
Referenced by ui_apply_but_BLOCK(), ui_apply_but_BUTM(), ui_apply_but_NUM(), ui_apply_but_ROW(), ui_apply_but_TAB(), ui_apply_but_TOG(), ui_but_string_set(), ui_but_update_ex(), ui_do_but_HOTKEYEVT(), ui_do_but_KEYEVT(), ui_handle_button_event(), ui_multibut_restore(), and ui_update_color_picker_buts_rgb().
Definition at line 51 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 78 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().
Definition at line 106 of file interface_region_color_picker.c.
References hsl_to_rgb_v(), hsv_to_rgb_v(), and USER_CP_CIRCLE_HSL.
Referenced by ui_but_hsv_set(), ui_colorpicker_hsv_update_cb(), ui_colorpicker_small_wheel_cb(), ui_do_but_HSVCIRCLE(), ui_draw_but_HSVCIRCLE(), and ui_numedit_but_HSVCIRCLE().
Definition at line 94 of file interface_region_color_picker.c.
References rgb_to_hsl_v(), rgb_to_hsv_v(), and USER_CP_CIRCLE_HSL.
Referenced by ui_color_picker_update_hsv().
Definition at line 80 of file interface_region_color_picker.c.
References rgb_to_hsl_compat_v(), rgb_to_hsv_compat_v(), and USER_CP_CIRCLE_HSL.
Referenced by ui_color_picker_update_hsv(), ui_colorpicker_small_wheel_cb(), ui_do_but_HSVCIRCLE(), ui_draw_but_HSVCIRCLE(), and ui_numedit_but_HSVCIRCLE().
| void ui_def_but_icon | ( | uiBut * | but, |
| const int | icon, | ||
| const int | flag | ||
| ) |
Definition at line 4153 of file interface.c.
References uiBut::block, uiBut::drawflag, uiBlock::evil_C, uiBut::flag, uiBut::icon, uiBut::str, UI_BUT_ICON_LEFT, UI_BUT_ICON_PREVIEW, and ui_icon_ensure_deferred().
Referenced by template_add_button_search_menu(), UI_but_drag_set_asset(), UI_but_drag_set_image(), ui_but_update_and_icon_set(), ui_def_but_rna(), ui_icon_view_menu_cb(), uiDefIconBlockBut(), uiDefIconMenuBut(), uiDefIconTextBlockBut(), uiDefIconTextMenuBut(), uiDefSearchBut(), uiTemplateIcon(), and uiTemplateIconView().
| void ui_def_but_icon_clear | ( | uiBut * | but | ) |
Avoid using this where possible since it's better not to ask for an icon in the first place.
Definition at line 4169 of file interface.c.
References uiBut::drawflag, uiBut::flag, uiBut::icon, UI_BUT_ICON_LEFT, and UI_HAS_ICON.
Referenced by uiItemFullR().
| void ui_draw_aligned_panel | ( | const struct uiStyle * | style, |
| const uiBlock * | block, | ||
| const rcti * | rect, | ||
| const bool | show_pin, | ||
| const bool | show_background, | ||
| const bool | region_search_filter_active | ||
| ) |
Referenced by UI_block_draw().
Definition at line 570 of file interface_widgets.c.
References BLI_rctf_size_x(), BLI_rctf_size_y(), UI_draw_anti_tria(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by panel_draw_aligned_widgets(), and widget_draw_submenu_tria().
| void ui_draw_box_opaque | ( | rcti * | rect, |
| int | roundboxalign | ||
| ) |
Uses the widget base drawing and colors from from the box widget, but ensures an opaque inner color.
Definition at line 4895 of file interface_widgets.c.
References uiWidgetType::custom, uiWidgetColors::inner, NULL, rgba_float_to_uchar(), rgba_uchar_to_float(), uiWidgetType::state, TH_BACK, UI_EMBOSS_UNDEFINED, UI_GetThemeColor4fv(), UI_WTYPE_BOX, uiWidgetType::wcol, and widget_type().
Referenced by panel_draw_aligned_backdrop().
| void ui_draw_but | ( | const struct bContext * | C, |
| struct ARegion * | region, | ||
| struct uiStyle * | style, | ||
| uiBut * | but, | ||
| rcti * | rect | ||
| ) |
Referenced by UI_block_draw().
| void ui_draw_but_COLORBAND | ( | uiBut * | but, |
| const struct uiWidgetColors * | wcol, | ||
| const rcti * | rect | ||
| ) |
| void ui_draw_but_CURVE | ( | struct ARegion * | region, |
| uiBut * | but, | ||
| const struct uiWidgetColors * | wcol, | ||
| const rcti * | rect | ||
| ) |
| void ui_draw_but_CURVEPROFILE | ( | struct ARegion * | region, |
| uiBut * | but, | ||
| const struct uiWidgetColors * | wcol, | ||
| const rcti * | rect | ||
| ) |
| void ui_draw_but_HISTOGRAM | ( | struct ARegion * | region, |
| uiBut * | but, | ||
| const struct uiWidgetColors * | wcol, | ||
| const rcti * | rect | ||
| ) |
| void ui_draw_but_IMAGE | ( | struct ARegion * | region, |
| uiBut * | but, | ||
| const struct uiWidgetColors * | wcol, | ||
| const rcti * | rect | ||
| ) |
| void ui_draw_but_TAB_outline | ( | const rcti * | rect, |
| float | rad, | ||
| uchar | highlight[3], | ||
| uchar | highlight_fade[3] | ||
| ) |
Definition at line 213 of file interface_draw.c.
References Freestyle::a, col, GPU_COMP_F32, GPU_COMP_U8, GPU_FETCH_FLOAT, GPU_FETCH_INT_TO_FLOAT_UNIT, GPU_PRIM_LINE_STRIP, GPU_SHADER_2D_SMOOTH_COLOR, GPU_vertformat_attr_add(), immAttr3ubv(), immBeginAtMost(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immVertex2f(), immVertexFormat(), mul_v2_fl(), pos, roundboxtype, UI_CNR_BOTTOM_LEFT, UI_CNR_BOTTOM_RIGHT, UI_CNR_TOP_LEFT, UI_CNR_TOP_RIGHT, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by widget_tab().
| void ui_draw_but_TRACKPREVIEW | ( | struct ARegion * | region, |
| uiBut * | but, | ||
| const struct uiWidgetColors * | wcol, | ||
| const rcti * | rect | ||
| ) |
| void ui_draw_but_UNITVEC | ( | uiBut * | but, |
| const struct uiWidgetColors * | wcol, | ||
| const rcti * | rect | ||
| ) |
| void ui_draw_but_VECTORSCOPE | ( | struct ARegion * | region, |
| uiBut * | but, | ||
| const struct uiWidgetColors * | wcol, | ||
| const rcti * | rect | ||
| ) |
| void ui_draw_but_WAVEFORM | ( | struct ARegion * | region, |
| uiBut * | but, | ||
| const struct uiWidgetColors * | wcol, | ||
| const rcti * | rect | ||
| ) |
| void ui_draw_gradient | ( | const rcti * | rect, |
| const float | hsv[3], | ||
| const eButGradientType | type, | ||
| const float | alpha | ||
| ) |
Definition at line 3024 of file interface_widgets.c.
References Freestyle::a, alpha, BLI_assert, BLI_rcti_size_x(), BLI_rcti_size_y(), col, color_step, copy_v3_v3(), float(), GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRIS, GPU_SHADER_2D_SMOOTH_COLOR, GPU_vertformat_attr_add(), hsv_to_rgb(), immAttr4f(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immVertex2f(), immVertexFormat(), pos, steps, type, UI_GRAD_H, UI_GRAD_HS, UI_GRAD_HV, UI_GRAD_S, UI_GRAD_SV, UI_GRAD_V, v, rcti::xmin, and rcti::ymin.
Referenced by ui_draw_but_CURVE(), and ui_draw_but_HSVCUBE().
Referenced by hud_region_draw(), and UI_block_draw().
| void ui_draw_menu_item | ( | const struct uiFontStyle * | fstyle, |
| rcti * | rect, | ||
| const char * | name, | ||
| int | iconid, | ||
| int | state, | ||
| uiMenuItemSeparatorType | separator_type, | ||
| int * | r_xmax | ||
| ) |
Referenced by ui_searchbox_region_draw_cb(), and ui_searchbox_region_draw_cb__operator().
| void ui_draw_pie_center | ( | uiBlock * | block | ) |
Definition at line 5062 of file interface_widgets.c.
References angle(), atan2f, col, draw_disk_shaded(), PieMenuData::flags, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_matrix_pop(), GPU_matrix_push(), GPU_matrix_translate_2f(), GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), imm_draw_circle_wire_2d(), immBindBuiltinProgram(), immUnbindProgram(), immUniformColor4ubv(), immVertexFormat(), uiWidgetColors::inner, uiWidgetColors::inner_sel, M_PI, M_PI_2, M_PI_4, NULL, uiWidgetColors::outline, PieMenuData::pie_center_spawned, uiBlock::pie_data, PieMenuData::pie_dir, pos, shadecolors4(), uiWidgetColors::shaded, uiWidgetColors::shadedown, uiWidgetColors::shadetop, uiWidgetColors::text_sel, bTheme::tui, UI_GetTheme(), UI_PIE_CLICK_STYLE, UI_PIE_DEGREES_RANGE_LARGE, UI_PIE_INVALID_DIR, UNPACK3, and ThemeUI::wcol_pie_menu.
Referenced by UI_block_draw().
| void ui_draw_popover_back | ( | struct ARegion * | region, |
| struct uiStyle * | style, | ||
| uiBlock * | block, | ||
| rcti * | rect | ||
| ) |
Referenced by UI_block_draw().
| void ui_draw_preview_item | ( | const struct uiFontStyle * | fstyle, |
| rcti * | rect, | ||
| const char * | name, | ||
| int | iconid, | ||
| int | state | ||
| ) |
Referenced by ui_searchbox_region_draw_cb().
Referenced by ui_tooltip_region_draw_cb().
| void ui_draw_widget_menu_back | ( | const rcti * | rect, |
| bool | use_shadow | ||
| ) |
Definition at line 5203 of file interface_widgets.c.
References NULL, ui_draw_widget_back_color(), and UI_WTYPE_MENU_BACK.
Referenced by ui_searchbox_region_draw_cb(), and ui_searchbox_region_draw_cb__operator().
Definition at line 5198 of file interface_widgets.c.
References ui_draw_widget_back_color(), and UI_WTYPE_MENU_BACK.
| void ui_fontscale | ( | short * | points, |
| float | aspect | ||
| ) |
Definition at line 1943 of file interface.c.
Referenced by UI_block_draw(), UI_panel_category_draw_all(), ui_searchbox_create_generic(), ui_textedit_set_cursor_pos(), and ui_tooltip_create_with_data().
| PointerRNA* ui_handle_afterfunc_add_operator | ( | wmOperatorType * | ot, |
| int | opcontext, | ||
| bool | create_props | ||
| ) |
For executing operators after the button is pressed. (some non operator buttons need to trigger operators), see: T37795.
Definition at line 719 of file interface_handlers.c.
References MEM_callocN, NULL, uiAfterFunc::opcontext, uiAfterFunc::opptr, uiAfterFunc::optype, ot, ptr, ui_afterfunc_new(), and WM_operator_properties_create_ptr().
Referenced by panel_activate_state().
| int ui_handler_panel_region | ( | struct bContext * | C, |
| const struct wmEvent * | event, | ||
| struct ARegion * | region, | ||
| const uiBut * | active_but | ||
| ) |
Referenced by ui_region_handler().
| void ui_hsvcircle_pos_from_vals | ( | const ColorPicker * | cpicker, |
| const rcti * | rect, | ||
| const float * | hsv, | ||
| float * | xpos, | ||
| float * | ypos | ||
| ) |
Definition at line 2888 of file interface_widgets.c.
References BLI_rcti_cent_x_fl(), BLI_rcti_cent_y_fl(), BLI_rcti_size_x(), BLI_rcti_size_y(), clamp_f(), cosf, float(), M_PI, M_PI_2, min_ii(), pow3f(), sinf, ColorPicker::use_color_cubic, and USER_CP_CIRCLE_HSV.
Referenced by ui_draw_but_HSVCIRCLE(), and ui_numedit_but_HSVCIRCLE().
| void ui_hsvcircle_vals_from_pos | ( | const rcti * | rect, |
| const float | mx, | ||
| const float | my, | ||
| float * | r_val_rad, | ||
| float * | r_val_dist | ||
| ) |
Definition at line 2873 of file interface_widgets.c.
References atan2f, BLI_rcti_cent_x_fl(), BLI_rcti_cent_y_fl(), BLI_rcti_size_x(), BLI_rcti_size_y(), float(), len_squared_v2(), m_delta, M_PI, min_ii(), and sqrtf.
Referenced by ui_draw_but_HSVCIRCLE(), and ui_numedit_but_HSVCIRCLE().
| void ui_hsvcube_pos_from_vals | ( | const struct uiButHSVCube * | hsv_but, |
| const rcti * | rect, | ||
| const float * | hsv, | ||
| float * | xp, | ||
| float * | yp | ||
| ) |
Referenced by ui_numedit_but_HSVCUBE().
| void ui_icon_ensure_deferred | ( | const struct bContext * | C, |
| const int | icon_id, | ||
| const bool | big | ||
| ) |
| void ui_interface_tag_script_reload_queries | ( | void | ) |
Definition at line 700 of file interface_query.c.
References g_ot_tool_set_by_id, and NULL.
Referenced by UI_interface_tag_script_reload().
Definition at line 2819 of file interface_layout.c.
References uiLayoutRoot::block, C, uiBlock::flag, uiLayout::root, UI_BLOCK_IS_FLIP, and UI_menutype_draw().
Referenced by UI_but_menutype_get(), ui_def_but_rna__menu_type(), and uiItemM_ptr().
Definition at line 2829 of file interface_layout.c.
References uiLayoutRoot::block, C, uiBlock::flag, uiLayout::root, UI_BLOCK_IS_FLIP, and UI_paneltype_draw().
Referenced by UI_but_paneltype_get(), ui_def_but_rna__panel_type(), UI_popover_panel_invoke(), and uiItemPopoverPanel_ptr().
| bool ui_jump_to_target_button_poll | ( | struct bContext * | C | ) |
Definition at line 1181 of file interface_ops.c.
References C, and jump_to_target_button().
Referenced by UI_OT_jump_to_target_button(), and ui_popup_context_menu_for_button().
Definition at line 5493 of file interface_layout.c.
References BLI_addtail(), uiButtonItem::but, uiLayout::child_items_layout, uiBut::context, uiLayout::context, uiBut::emboss, uiLayout::emboss, uiItem::flag, uiButtonItem::item, ITEM_BUTTON, uiLayout::items, uiBut::layout, MEM_callocN, uiBut::str, uiItem::type, ui_button_group_add_but(), UI_EMBOSS_UNDEFINED, UI_ITEM_FIXED_SIZE, ui_item_size(), UI_UNIT_X, uiLayoutGetBlock(), bContextStore::used, and w().
Referenced by ui_def_but().
| void ui_layout_list_set_labels_active | ( | uiLayout * | layout | ) |
Check all buttons defined in this layout, and set any button flagged as UI_BUT_LIST_ITEM as active/selected. Needed to handle correctly text colors of active (selected) list item.
Definition at line 4785 of file interface_layout.c.
References ITEM_BUTTON, uiLayout::items, LISTBASE_FOREACH, UI_but_flag_enable(), UI_BUT_LIST_ITEM, ui_layout_list_set_labels_active(), and UI_SELECT.
Referenced by ui_layout_list_set_labels_active(), and uiTemplateList().
Definition at line 5527 of file interface_layout.c.
References uiButtonItem::but, uiLayout::child_items_layout, ITEM_BUTTON, uiLayout::items, LISTBASE_FOREACH, and ui_layout_replace_but_ptr().
Referenced by ui_but_change_type(), and ui_layout_replace_but_ptr().
Referenced by ui_handle_menus_recursive(), and ui_region_handler().
Definition at line 353 of file interface_query.c.
References LISTBASE_FOREACH, LISTBASE_FOREACH_BACKWARD, NULL, UI_BTYPE_LISTBOX, ui_but_contains_pt(), ui_region_contains_point_px(), ui_window_to_block_fl(), ARegion::uiblocks, x, and y.
Referenced by ui_list_find_mouse_over().
| void UI_OT_eyedropper_color | ( | struct wmOperatorType * | ot | ) |
Definition at line 570 of file interface_eyedropper_color.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, eyedropper_cancel(), eyedropper_exec(), eyedropper_invoke(), eyedropper_modal(), eyedropper_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_ui().
| void UI_OT_eyedropper_colorramp | ( | struct wmOperatorType * | ot | ) |
Definition at line 349 of file interface_eyedropper_colorband.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, eyedropper_colorband_cancel(), eyedropper_colorband_exec(), eyedropper_colorband_invoke(), eyedropper_colorband_modal(), eyedropper_colorband_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_ui().
| void UI_OT_eyedropper_colorramp_point | ( | struct wmOperatorType * | ot | ) |
Definition at line 369 of file interface_eyedropper_colorband.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, eyedropper_colorband_cancel(), eyedropper_colorband_exec(), eyedropper_colorband_invoke(), eyedropper_colorband_point_modal(), eyedropper_colorband_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_ui().
| void UI_OT_eyedropper_depth | ( | struct wmOperatorType * | ot | ) |
Definition at line 368 of file interface_eyedropper_depth.c.
References wmOperatorType::cancel, depthdropper_cancel(), depthdropper_exec(), depthdropper_invoke(), depthdropper_modal(), depthdropper_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_ui().
| void UI_OT_eyedropper_driver | ( | struct wmOperatorType * | ot | ) |
Definition at line 215 of file interface_eyedropper_driver.c.
References wmOperatorType::cancel, wmOperatorType::description, driverdropper_cancel(), driverdropper_exec(), driverdropper_invoke(), driverdropper_modal(), driverdropper_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, wmOperatorType::poll, prop_driver_create_mapping_types, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_ui().
| void UI_OT_eyedropper_gpencil_color | ( | struct wmOperatorType * | ot | ) |
Definition at line 364 of file interface_eyedropper_gpencil_color.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, eyedropper_gpencil_cancel(), eyedropper_gpencil_exec(), eyedropper_gpencil_invoke(), eyedropper_gpencil_modal(), eyedropper_gpencil_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, NULL, OPTYPE_BLOCKING, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_ui().
| void UI_OT_eyedropper_id | ( | struct wmOperatorType * | ot | ) |
Definition at line 366 of file interface_eyedropper_datablock.c.
References wmOperatorType::cancel, datadropper_cancel(), datadropper_exec(), datadropper_invoke(), datadropper_modal(), datadropper_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_ui().
| void ui_pan_to_scroll | ( | const struct wmEvent * | event, |
| int * | type, | ||
| int * | val | ||
| ) |
| void ui_panel_tag_search_filter_match | ( | struct Panel * | panel | ) |
Definition at line 909 of file interface_panel.c.
References PANEL_SEARCH_FILTER_MATCH, and Panel::runtime_flag.
Referenced by UI_block_apply_search_filter().
Definition at line 142 of file interface_region_color_picker.c.
References IMB_colormanagement_color_picking_to_scene_linear_v3(), ui_but_is_color_gamma(), and ui_color_picker_rgb_round().
Referenced by ui_colorpicker_small_wheel_cb(), ui_draw_but_HSVCIRCLE(), ui_numedit_but_HSVCIRCLE(), and ui_numedit_but_HSVCUBE().
| void ui_pie_menu_level_create | ( | uiBlock * | block, |
| wmOperatorType * | ot, | ||
| const char * | propname, | ||
| IDProperty * | properties, | ||
| const EnumPropertyItem * | items, | ||
| int | totitem, | ||
| int | context, | ||
| int | flag | ||
| ) |
Set up data for defining a new pie menu level and add button that invokes it.
Definition at line 378 of file interface_region_menu_pie.c.
References BLI_strncpy(), context, PieMenuLevelData::context, PieMenuLevelData::flag, MEM_mallocN, NULL, PieMenuLevelData::ot, ot, uiBlock::pie_data, PIE_MAX_ITEMS, PieMenuLevelData::properties, PieMenuLevelData::propname, PieMenuData::title, PieMenuLevelData::title, PieMenuLevelData::totitem, UI_BTYPE_BUT, UI_but_funcN_set(), UI_MAX_NAME_STR, ui_pie_menu_level_invoke(), UI_UNIT_X, UI_UNIT_Y, and uiDefIconTextBut().
Referenced by uiItemsFullEnumO_items().
| uiPopupBlockHandle* ui_popover_panel_create | ( | struct bContext * | C, |
| struct ARegion * | butregion, | ||
| uiBut * | but, | ||
| uiMenuCreateFunc | menu_func, | ||
| void * | arg | ||
| ) |
Definition at line 246 of file interface_region_popover.c.
References uiPopover::but, C, uiPopupBlockHandle::can_refresh, CTX_wm_window(), wmWindow::eventstate, float(), uiPopover::is_once, KM_PRESS, LEFTMOUSE, MAX2, MEM_callocN, uiPopover::menu_arg, uiPopover::menu_func, wmWindow::modalhandlers, NULL, uiFontStyle::points, uiPopupBlockHandle::popup, ui_block_free_func_POPOVER(), ui_block_func_POPOVER(), UI_DEFAULT_TEXT_POINTS, UI_POPOVER_WIDTH_UNITS, ui_popup_block_create(), UI_popup_handlers_add(), uiPopover::ui_size_x, UI_style_get_dpi(), PanelType::ui_units_x, uiStyle::widget, uiStyle::widgetlabel, and WM_event_add_mousemove().
Referenced by ui_block_open_begin(), and UI_popover_panel_invoke().
| uiPopupBlockHandle* ui_popup_block_create | ( | struct bContext * | C, |
| struct ARegion * | butregion, | ||
| uiBut * | but, | ||
| uiBlockCreateFunc | create_func, | ||
| uiBlockHandleCreateFunc | handle_create_func, | ||
| void * | arg, | ||
| void(*)(void *arg) | arg_free | ||
| ) |
Definition at line 770 of file interface_region_popup.c.
References uiPopupBlockCreate::arg, uiPopupBlockCreate::arg_free, uiBlock::bounds_type, uiPopupBlockCreate::but, uiPopupBlockCreate::butregion, C, uiPopupBlockHandle::can_refresh, copy_v2_v2_int(), create_func(), uiPopupBlockCreate::create_func, uiPopupBlockHandle::ctx_area, uiPopupBlockHandle::ctx_region, CTX_wm_area(), CTX_wm_region(), CTX_wm_screen(), CTX_wm_window(), uiPopupBlockCreate::event_xy, wmWindow::eventstate, uiBlock::handle, uiPopupBlockCreate::handle_create_func, ARegion::handlers, MEM_callocN, NULL, uiPopupBlockHandle::popup_create_vars, uiPopupBlockHandle::region, RGN_TYPE_TEMPORARY, type, ARegion::type, UI_BLOCK_BOUNDS_POPUP_CENTER, ui_block_region_draw(), ui_block_region_popup_window_listener(), ui_block_region_refresh(), UI_but_tooltip_timer_remove(), UI_context_active_but_get(), ui_popup_block_refresh(), UI_region_handlers_add(), ui_region_temp_add(), WM_CURSOR_DEFAULT, WM_cursor_set(), and wmEvent::x.
Referenced by ui_block_open_begin(), UI_pie_menu_end(), UI_popover_end(), ui_popover_panel_create(), UI_popup_block_ex(), UI_popup_block_invoke_ex(), ui_popup_menu_create(), and UI_popup_menu_end().
| void ui_popup_block_free | ( | struct bContext * | C, |
| uiPopupBlockHandle * | handle | ||
| ) |
Definition at line 834 of file interface_region_popup.c.
References uiPopupBlockCreate::arg, uiPopupBlockCreate::arg_free, uiPopupBlockCreate::butregion, C, LISTBASE_FOREACH, MEM_freeN, uiPopupBlockHandle::menuretval, NULL, uiPopupBlockHandle::popup_create_vars, UI_BLOCK_KEEP_OPEN, UI_BLOCK_POPOVER, ui_popup_block_remove(), UI_RETURN_OK, and ARegion::uiblocks.
Referenced by ui_block_open_end(), UI_popup_block_close(), ui_popup_handler(), and ui_popup_handler_remove().
| uiBlock* ui_popup_block_refresh | ( | bContext * | C, |
| uiPopupBlockHandle * | handle, | ||
| ARegion * | butregion, | ||
| uiBut * | but | ||
| ) |
Called for creating new popups and refreshing existing ones.
Definition at line 560 of file interface_region_popup.c.
References uiPopupBlockCreate::arg, uiBlock::aspect, BLI_addhead(), BLI_assert, BLI_rctf_recenter(), BLI_rctf_size_x(), BLI_rctf_size_y(), uiBut::block, uiBlock::bounds_type, uiBlock::buttons, C, uiPopupBlockHandle::can_refresh, copy_v2_v2(), create_func(), uiPopupBlockCreate::create_func, CTX_wm_window(), uiBlock::direction, uiPopupBlockHandle::direction, ED_region_floating_init(), ED_region_tag_redraw(), ED_region_update_rect(), ELEM, uiBlock::endblock, uiPopupBlockCreate::event_xy, wmWindow::eventstate, ListBase::first, uiBlock::flag, PieMenuData::flags, uiBlock::handle, uiPopupBlockCreate::handle_create_func, LISTBASE_FOREACH, MEM_callocN, MEM_freeN, NULL, uiBlock::oldblock, PieMenuData::pie_center_init, PieMenuData::pie_center_spawned, uiBlock::pie_data, uiPopupBlockHandle::popup_create_vars, uiPopupBlockHandle::prev_block_rect, uiBlock::rect, uiPopupBlockHandle::refresh, uiPopupBlockHandle::region, ARegion::regiondata, uiBlock::saferct, uiBlock::safety, uiSafetyRct::safety, uiPopupBlockHandle::scrolloffset, UI_BLOCK_BOUNDS_POPUP_CENTER, ui_block_calc_pie_segment(), UI_block_end_ex(), UI_BLOCK_LOOP, UI_BLOCK_POPOVER, UI_BLOCK_POPUP, UI_BLOCK_RADIAL, UI_BLOCK_THEME_STYLE_POPUP, UI_block_theme_style_set(), UI_block_translate(), UI_block_update_from_old(), UI_blocklist_free_inactive(), UI_DIR_DOWN, UI_DIR_UP, UI_PIE_INITIAL_DIRECTION, ui_popup_block_clip(), ui_popup_block_position(), ui_popup_block_scrolltest(), UI_POPUP_MARGIN, UI_POPUP_MENU_TOP, UI_RADIAL_NONE, UI_SCREEN_MARGIN, ARegion::uiblocks, UNPACK2, uiBlock::winmat, ARegion::winrct, WM_window_pixels_x(), WM_window_pixels_y(), wmGetProjectionMatrix(), rcti::xmax, rctf::xmax, rcti::xmin, rctf::xmin, rcti::ymax, rctf::ymax, rcti::ymin, and rctf::ymin.
Referenced by ui_block_region_refresh(), and ui_popup_block_create().
| void ui_popup_block_scrolltest | ( | struct uiBlock * | block | ) |
Definition at line 476 of file interface_region_popup.c.
References uiBlock::buttons, ListBase::first, uiBlock::flag, ListBase::last, LISTBASE_FOREACH, uiBlock::rect, UI_BLOCK_CLIPBOTTOM, UI_BLOCK_CLIPTOP, UI_MENU_SCROLL_ARROW, UI_SCROLLED, rctf::ymax, and rctf::ymin.
Referenced by ui_menu_scroll_apply_offset_y(), and ui_popup_block_refresh().
Definition at line 497 of file interface_context_menu.c.
References ANIM_driver_can_paste(), ID::asset_data, BKE_addon_find(), uiBut::block, BLT_I18NCONTEXT_OPERATOR_DEFAULT, BUT_GET_LABEL, C, uiBut::context, CTX_data_main(), CTX_data_pointer_get_type(), CTX_IFACE_, CTX_store_get(), CTX_store_set(), CTX_wm_region(), PointerRNA::data, ED_asset_can_make_single_from_context(), ED_screen_user_menus_find(), ED_screens_footer_tools_menu_create(), ED_screens_header_tools_menu_create(), ED_screens_navigation_bar_tools_menu_create(), ELEM, EVT_TYPE_MASK_ALL, uiBut::flag, wmOperatorType::flag, id, IFACE_, is_disabled, ISKEYBOARD, label, MEM_freeN, uiButTab::menu, menu_change_shortcut(), NULL, uiBut::opcontext, uiBut::optype, ot, PointerRNA::owner_id, popup_add_shortcut_func(), popup_change_shortcut_func(), popup_user_menu_add_or_replace_func(), popup_user_menu_remove_func(), PROP_BOOLEAN, PROP_DIRPATH, PROP_ENUM, PROP_FILEPATH, PROP_FLOAT, PROP_INT, PROP_POINTER, PROP_STRING, ptr, ARegion::regiontype, remove_shortcut_func(), RGN_TYPE_FOOTER, RGN_TYPE_HEADER, RGN_TYPE_NAV_BAR, RGN_TYPE_TOOL_HEADER, RNA_boolean_set(), RNA_ID, RNA_NlaStrip, RNA_OVERRIDE_STATUS_OVERRIDABLE, RNA_property_animateable(), RNA_property_array_length(), RNA_property_is_idprop(), RNA_property_override_library_status(), RNA_property_path_from_ID_check(), RNA_property_subtype(), RNA_property_type(), RNA_string_set(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, shortcut_free_operator_property(), shortcut_get_operator_property(), TIP_, uiBut::type, type, wmKeyMapItem::type, PointerRNA::type, ui_block_is_menu(), ui_block_is_popup_any(), UI_BTYPE_BUT, UI_BTYPE_IMAGE, UI_BTYPE_LABEL, UI_BTYPE_SEARCH_MENU, UI_BTYPE_TAB, UI_BUT_ANIMATED, UI_BUT_ANIMATED_KEY, UI_BUT_DISABLED, UI_BUT_DRIVEN, UI_but_flag_enable(), UI_but_func_set(), ui_but_is_user_menu_compatible(), ui_but_menu_add_path_operators(), UI_but_online_manual_id(), UI_BUT_OVERRIDDEN, UI_but_string_info_get(), ui_but_user_menu_find(), ui_jump_to_target_button_poll(), UI_menutype_draw(), UI_popup_menu_begin(), UI_popup_menu_end_or_cancel(), UI_popup_menu_layout(), ui_rna_collection_search_update_fn(), UI_UNIT_Y, uiDefBlockBut(), uiDefIconTextBut(), uiItemBooleanO(), uiItemFullO(), uiItemFullO_ptr(), uiItemMenuF(), uiItemO(), uiItemS(), uiLayoutColumn(), uiLayoutContextCopy(), uiLayoutGetBlock(), uiLayoutGetContextStore(), uiLayoutGetWidth(), uiLayoutSetContextFromBut(), uiLayoutSetEnabled(), uiLayoutSetOperatorContext(), USER_DEVELOPER_UI, w(), WM_key_event_operator(), WM_keymap_guess_opname(), WM_menutype_find(), WM_OP_EXEC_DEFAULT, WM_OP_INVOKE_DEFAULT, and WM_operatortype_find().
Referenced by ui_do_button(), and ui_search_menu_create_context_menu().
menu to show when right clicking on the panel header
Definition at line 1250 of file interface_context_menu.c.
References BLI_snprintf(), uiBlock::buttons, C, CTX_wm_screen(), uiBut::drawflag, uiBut::flag, bScreen::id, IFACE_, ListBase::last, NULL, PanelType::parent, ptr, RNA_Panel, RNA_pointer_create(), Panel::type, UI_BUT_HAS_SEP_CHAR, UI_BUT_HAS_SHORTCUT, UI_panel_category_is_visible(), UI_popup_menu_begin(), UI_popup_menu_end(), UI_popup_menu_layout(), UI_SEP_CHAR_S, uiItemR(), and uiLayoutGetBlock().
Referenced by ui_handler_panel_region().
| uiPopupBlockHandle* ui_popup_menu_create | ( | struct bContext * | C, |
| struct ARegion * | butregion, | ||
| uiBut * | but, | ||
| uiMenuCreateFunc | menu_func, | ||
| void * | arg | ||
| ) |
Definition at line 311 of file interface_region_menu_popup.c.
References uiBut::block, uiPopupMenu::block, uiPopupMenu::but, C, uiBut::context, CTX_wm_window(), wmWindow::eventstate, uiBlock::flag, uiPopupMenu::layout, MEM_callocN, MEM_freeN, uiPopupMenu::menu_arg, uiPopupMenu::menu_func, wmWindow::modalhandlers, uiPopupMenu::mx, uiPopupMenu::my, NULL, uiPopupBlockHandle::popup, uiPopupMenu::popup, PROP_ENUM, RNA_property_type(), uiBut::rnaprop, uiPopupMenu::slideout, UI_block_begin(), ui_block_func_POPUP(), ui_block_is_menu(), UI_block_layout(), UI_BLOCK_NO_FLIP, UI_BLOCK_NUMSELECT, UI_EMBOSS_PULLDOWN, UI_LAYOUT_MENU, UI_LAYOUT_VERTICAL, UI_MENU_PADDING, ui_popup_block_create(), UI_popup_handlers_add(), UI_style_get_dpi(), uiLayoutContextCopy(), uiLayoutSetOperatorContext(), WM_event_add_mousemove(), WM_OP_INVOKE_REGION_WIN, wmEvent::x, and wmEvent::y.
Referenced by ui_block_open_begin().
Definition at line 142 of file interface_region_menu_popup.c.
References NULL, and ui_popup_menu_memory__internal().
Referenced by ui_block_func_POPUP().
Definition at line 147 of file interface_region_menu_popup.c.
References ui_popup_menu_memory__internal().
Referenced by button_activate_exit().
| void ui_popup_translate | ( | ARegion * | region, |
| const int | mdiff[2] | ||
| ) |
Translate any popup regions (so we can drag them).
Definition at line 59 of file interface_region_popup.c.
References BLI_rctf_init(), BLI_rctf_translate(), BLI_rcti_translate(), ED_region_tag_redraw(), ED_region_update_rect(), LISTBASE_FOREACH, uiPopupBlockHandle::prev_block_rect, ARegion::uiblocks, UNPACK2, and ARegion::winrct.
Referenced by ui_handle_menu_event().
| bool ui_region_contains_point_px | ( | const struct ARegion * | region, |
| int | x, | ||
| int | y | ||
| ) |
Referenced by ui_handle_button_event(), and ui_handle_menu_button().
Definition at line 587 of file interface_query.c.
References LISTBASE_FOREACH, NULL, and ARegion::uiblocks.
Referenced by button_activate_init(), drop_color_invoke(), UI_but_active_drop_color(), UI_but_active_drop_name(), UI_but_active_only_ex(), ui_but_pie_button_activate(), ui_but_pie_menu_apply(), ui_handle_button_activate(), ui_handle_menu_button(), ui_handle_menu_event(), ui_handle_menu_return_submenu(), ui_handle_menus_recursive(), ui_handler_panel_region(), ui_handler_region_menu(), ui_pie_handler(), ui_region_handler(), and UI_screen_free_active_but().
| uiBut* ui_region_find_first_but_test_flag | ( | struct ARegion * | region, |
| int | flag_include, | ||
| int | flag_exclude | ||
| ) |
Definition at line 600 of file interface_query.c.
References LISTBASE_FOREACH, NULL, and ARegion::uiblocks.
Referenced by ui_handle_menu_event().
| void ui_region_to_window | ( | const struct ARegion * | region, |
| int * | x, | ||
| int * | y | ||
| ) |
Popups will add a margin to ARegion.winrct for shadow, for interactivity (point-inside tests for eg), we want the winrct without the margin added.
Definition at line 339 of file interface.c.
References BLI_rcti_rctf_copy_floor(), BLI_rcti_translate(), ListBase::first, uiBlock::flag, uiBlock::rect, UI_BLOCK_LOOP, UI_BLOCK_RADIAL, ARegion::uiblocks, ARegion::winrct, rcti::xmin, and rcti::ymin.
Referenced by ui_region_contains_point_px(), ui_region_contains_rect_px(), and ui_screen_region_find_mouse_over_ex().
| void ui_resources_free | ( | void | ) |
| void ui_resources_init | ( | void | ) |
| void ui_rna_collection_search_update_fn | ( | const struct bContext * | C, |
| void * | arg, | ||
| const char * | str, | ||
| uiSearchItems * | items, | ||
| const bool | is_first | ||
| ) |
Definition at line 475 of file interface_utils.c.
References add_collection_search_item(), BKE_id_full_name_ui_prefix_get(), BLI_addtail(), BLI_freelistN(), BLI_STATIC_ASSERT, BLI_strdup(), BLI_string_search_add(), BLI_string_search_free(), BLI_string_search_new(), BLI_string_search_query(), C, data, CollItemSearch::data, ELEM, CollItemSearch::has_sep_char, CollItemSearch::iconid, CollItemSearch::index, CollItemSearch::is_id, LISTBASE_FOREACH, MAX_ID_FULL_NAME_UI, MEM_callocN, MEM_freeN, CollItemSearch::name, CollItemSearch::name_prefix_offset, NULL, PROP_ID_SELF_CHECK, PROP_POINTER, RNA_PROP_BEGIN, RNA_PROP_END, RNA_property_flag(), RNA_property_pointer_poll(), RNA_property_type(), RNA_struct_is_ID(), RNA_struct_name_get_alloc(), str, ui_id_icon_get(), UI_MAX_DRAW_STR, and UI_SEP_CHAR.
Referenced by jump_to_target_button(), template_search_menu(), ui_but_add_search(), and ui_popup_context_menu_for_button().
Definition at line 131 of file interface_region_color_picker.c.
References IMB_colormanagement_scene_linear_to_color_picking_v3(), ui_but_is_color_gamma(), and ui_color_picker_rgb_round().
Referenced by ui_color_picker_update_hsv(), ui_colorpicker_small_wheel_cb(), ui_draw_but_HSV_v(), ui_draw_but_HSVCIRCLE(), ui_draw_but_HSVCUBE(), ui_numedit_but_HSVCIRCLE(), and ui_numedit_but_HSVCUBE().
| struct ARegion* ui_screen_region_find_mouse_over | ( | struct bScreen * | screen, |
| const struct wmEvent * | event | ||
| ) |
Referenced by ui_handler_region_menu().
Check if the cursor is over any popups.
Definition at line 675 of file interface_query.c.
References BLI_rcti_isect_pt(), LISTBASE_FOREACH, NULL, bScreen::regionbase, ui_region_winrct_get_no_margin(), x, and y.
Referenced by ui_screen_region_find_mouse_over().
Definition at line 301 of file interface_region_search.c.
References BLI_assert, BLI_strncpy(), data, uiBut::editstr, uiBut::flag, uiButSearch::item_active, NULL, ARegion::regiondata, uiBut::type, UI_BTYPE_SEARCH_MENU, UI_BUT_VALUE_CLEAR, and UI_SEP_CHAR.
Referenced by ui_textedit_end().
| int ui_searchbox_autocomplete | ( | struct bContext * | C, |
| struct ARegion * | region, | ||
| uiBut * | but, | ||
| char * | str | ||
| ) |
Definition at line 555 of file interface_region_search.c.
References AUTOCOMPLETE_NO_MATCH, BLI_assert, C, data, uiBut::editstr, NULL, ARegion::regiondata, str, uiBut::type, UI_autocomplete_begin(), UI_autocomplete_end(), UI_BTYPE_SEARCH_MENU, ui_but_string_get_max_length(), and ui_searchbox_update_fn().
Referenced by ui_textedit_autocomplete().
| struct ARegion* ui_searchbox_create_generic | ( | struct bContext * | C, |
| struct ARegion * | butregion, | ||
| uiButSearch * | search_but | ||
| ) |
Definition at line 722 of file interface_region_search.c.
References uiBut::a1, uiBut::a2, uiBlock::aspect, BLI_rctf_cent_y(), BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rctf_translate(), BLI_rcti_rctf_copy(), BLI_rcti_size_x(), BLI_rcti_size_y(), BLI_rcti_translate(), uiBut::block, uiButSearch::but, C, CTX_wm_screen(), CTX_wm_window(), View2D::cur, data, uiBut::drawflag, ED_region_floating_init(), ED_region_tag_redraw(), uiBlock::flag, uiBut::hardmax, uiButSearch::item_sep_string, MEM_callocN, NULL, Panel::ofsx, Panel::ofsy, uiBut::optype, uiBlock::panel, uiBut::rect, uiBlock::rect, ARegion::regiondata, RGN_TYPE_TEMPORARY, SEARCH_ITEMS, type, ARegion::type, UI_BLOCK_SEARCH_MENU, UI_BUT_HAS_SHORTCUT, ui_fontscale(), UI_fontstyle_set(), UI_POPUP_MARGIN, ui_region_temp_add(), ui_searchbox_region_draw_cb(), ui_searchbox_region_free_cb(), UI_searchbox_size_x(), UI_searchbox_size_y(), UI_style_get(), UI_view2d_view_to_region_rcti(), UI_view2d_view_to_region_y(), ARegion::v2d, uiStyle::widget, ARegion::winrct, ARegion::winx, WM_window_pixels_x(), rcti::xmax, rctf::xmax, rcti::xmin, rctf::xmin, rcti::ymax, rctf::ymax, rcti::ymin, and rctf::ymin.
Referenced by template_common_search_menu(), ui_but_add_search(), UI_but_func_search_set(), ui_searchbox_create_menu(), ui_searchbox_create_operator(), and uiDefSearchButO_ptr().
| struct ARegion* ui_searchbox_create_menu | ( | struct bContext * | C, |
| struct ARegion * | butregion, | ||
| uiButSearch * | search_but | ||
| ) |
Definition at line 1017 of file interface_region_search.c.
References uiButSearch::but, C, ARegionType::draw, ARegion::type, UI_but_drawflag_enable(), UI_BUT_HAS_SHORTCUT, ui_searchbox_create_generic(), and ui_searchbox_region_draw_cb__menu().
Referenced by UI_but_func_menu_search().
| struct ARegion* ui_searchbox_create_operator | ( | struct bContext * | C, |
| struct ARegion * | butregion, | ||
| uiButSearch * | search_but | ||
| ) |
Definition at line 997 of file interface_region_search.c.
References uiButSearch::but, C, ARegionType::draw, ARegion::type, UI_but_drawflag_enable(), UI_BUT_HAS_SHORTCUT, ui_searchbox_create_generic(), and ui_searchbox_region_draw_cb__operator().
Referenced by UI_but_func_operator_search().
| bool ui_searchbox_event | ( | struct bContext * | C, |
| struct ARegion * | region, | ||
| uiBut * | but, | ||
| struct ARegion * | butregion, | ||
| const struct wmEvent * | event | ||
| ) |
Referenced by ui_do_but_textedit().
| int ui_searchbox_find_index | ( | struct ARegion * | region, |
| const char * | name | ||
| ) |
Definition at line 286 of file interface_region_search.c.
References data, ARegion::regiondata, and UI_search_items_find_index().
Referenced by ui_textedit_end().
Definition at line 1007 of file interface_region_search.c.
References C, CTX_wm_screen(), and ui_region_temp_remove().
Referenced by ui_textedit_end().
| bool ui_searchbox_inside | ( | struct ARegion * | region, |
| int | x, | ||
| int | y | ||
| ) |
Definition at line 293 of file interface_region_search.c.
References BLI_rcti_isect_pt(), data, ARegion::regiondata, ARegion::winrct, x, rcti::xmin, y, and rcti::ymin.
Referenced by ui_do_but_textedit().
| void ui_searchbox_update | ( | struct bContext * | C, |
| struct ARegion * | region, | ||
| uiBut * | but, | ||
| const bool | reset | ||
| ) |
Definition at line 476 of file interface_region_search.c.
References Freestyle::a, BLI_assert, C, data, ED_region_tag_redraw(), uiBut::editstr, uiButSearch::item_active, uiButSearch::items_update_fn, NULL, ARegion::regiondata, reset(), STREQLEN, uiBut::type, UI_BTYPE_SEARCH_MENU, ui_searchbox_select(), ui_searchbox_update_fn(), and UI_SEP_CHAR.
Referenced by ui_but_drop(), ui_but_paste_text(), ui_do_but_textedit(), ui_searchbox_select(), and ui_textedit_begin().
| const char* ui_textedit_undo | ( | struct uiUndoStack_Text * | undo_stack, |
| int | direction, | ||
| int * | r_cursor_index | ||
| ) |
Definition at line 85 of file interface_undo.c.
References BLI_assert, ELEM, ui_textedit_redo_impl(), and ui_textedit_undo_impl().
Referenced by ui_do_but_textedit().
| void ui_textedit_undo_push | ( | uiUndoStack_Text * | stack, |
| const char * | text, | ||
| int | cursor_index | ||
| ) |
Push the information in the arguments to a new state in the undo stack.
Definition at line 99 of file interface_undo.c.
References BLI_addtail(), BLI_remlink(), uiUndoStack_Text::current, uiUndoStack_Text_State::cursor_index, MEM_freeN, MEM_mallocN, uiUndoStack_Text_State::next, NULL, state, uiUndoStack_Text::states, and uiUndoStack_Text_State::text.
Referenced by ui_do_but_textedit(), and ui_textedit_begin().
| struct uiUndoStack_Text* ui_textedit_undo_stack_create | ( | void | ) |
Start the undo stack.
Definition at line 122 of file interface_undo.c.
References BLI_listbase_clear(), uiUndoStack_Text::current, MEM_mallocN, NULL, and uiUndoStack_Text::states.
Referenced by ui_textedit_begin().
| void ui_textedit_undo_stack_destroy | ( | struct uiUndoStack_Text * | undo_stack | ) |
Definition at line 131 of file interface_undo.c.
References BLI_freelistN(), MEM_freeN, and uiUndoStack_Text::states.
Referenced by ui_textedit_end().
| const struct uiWidgetColors* ui_tooltip_get_theme | ( | void | ) |
Definition at line 5169 of file interface_widgets.c.
References UI_WTYPE_TOOLTIP, uiWidgetType::wcol_theme, and widget_type().
Referenced by ui_tooltip_region_draw_cb().
| void ui_window_to_block_rctf | ( | const struct ARegion * | region, |
| uiBlock * | block, | ||
| rctf * | rct_dst, | ||
| const rctf * | rct_src | ||
| ) |
Definition at line 217 of file interface.c.
References ui_window_to_block_fl(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by ui_but_find_rect_over().
| void ui_window_to_region | ( | const struct ARegion * | region, |
| int * | x, | ||
| int * | y | ||
| ) |
| void ui_window_to_region_rcti | ( | const struct ARegion * | region, |
| rcti * | rect_dst, | ||
| const rcti * | rct_src | ||
| ) |
| void uiStyleInit | ( | void | ) |
Second for rendering else we get threading problems,
Definition at line 435 of file interface_style.c.
References BLF_default_set(), BLF_disable(), BLF_enable(), BLF_HINTING_FULL, BLF_HINTING_NONE, BLF_HINTING_SLIGHT, BLF_load(), BLF_load_default(), BLF_load_mono_default(), BLF_load_unique(), blf_mono_font, blf_mono_font_render, BLF_MONOCHROME, BLF_size(), BLF_unload_id(), BLI_addtail(), BLI_assert, BLI_strncpy(), CLAMP, uiFont::filename, G, G_DEBUG, LISTBASE_FOREACH, MEM_callocN, NULL, ui_style_new(), UIFONT_CUSTOM1, UIFONT_DEFAULT, uiFont::uifont_id, USER_TEXT_DISABLE_AA, USER_TEXT_HINTING_FULL, USER_TEXT_HINTING_NONE, and USER_TEXT_HINTING_SLIGHT.
Referenced by UI_init_userdef(), UI_reinit_font(), and UI_style_init_default().
|
extern |
Definition at line 292 of file interface_widgets.c.
|
extern |
This goes in a seemingly weird pattern:
4
5 6
1 2
7 8
3
but it's actually quite logical. It's designed to be 'upwards compatible' for muscle memory so that the menu item locations are fixed and don't move as new items are added to the menu later on. It also optimizes efficiency - a radial menu is best kept symmetrical, with as large an angle between items as possible, so that the gestural mouse movements can be fast and inexact.
It starts off with two opposite sides for the first two items then joined by the one below for the third (this way, even with three items, the menu seems to still be 'in order' reading left to right). Then the fourth is added to complete the compass directions. From here, it's just a matter of subdividing the rest of the angles for the last 4 items.
–Matt 07/2006
Definition at line 1511 of file interface.c.
Referenced by ui_get_radialbut_vec().
|
extern |
Definition at line 1523 of file interface.c.
Referenced by ui_but_pie_dir().
|
extern |
Definition at line 1522 of file interface.c.
Referenced by ui_but_pie_direction_string().