|
Blender V5.0
|
#include <functional>#include "BLI_compiler_attrs.h"#include "BLI_math_vector_types.hh"#include "BLI_string_ref.hh"#include "BLI_vector.hh"#include "BKE_fcurve.hh"#include "DNA_listBase.h"#include "RNA_types.hh"#include "UI_interface.hh"#include "UI_interface_layout.hh"#include "UI_resources.hh"Go to the source code of this file.
Classes | |
| struct | uiBut |
| struct | uiButNumber |
| struct | uiButNumberSlider |
| struct | uiButColor |
| struct | uiButTab |
| struct | uiButSearch |
| struct | uiButDecorator |
| struct | uiButProgress |
| struct | uiButSeparatorLine |
| struct | uiButLabel |
| struct | uiButScrollBar |
| struct | uiButViewItem |
| struct | uiButHSVCube |
| struct | uiButColorBand |
| struct | uiButCurveProfile |
| struct | uiButCurveMapping |
| struct | uiButHotkeyEvent |
| struct | uiButExtraOpIcon |
| struct | ColorPicker |
| struct | ColorPickerData |
| struct | PieMenuData |
| struct | uiButtonGroup |
| struct | uiBlockDynamicListener |
| struct | uiBlock |
| struct | uiSafetyRct |
| struct | uiKeyNavLock |
| struct | uiPopupBlockCreate |
| struct | uiPopupBlockHandle |
| struct | uiWidgetBaseParameters |
| struct | uiRNACollectionSearch |
Namespaces | |
| namespace | blender |
| namespace | blender::gpu |
| namespace | blender::ui |
| namespace | blender::interface |
| namespace | blender::interface::internal |
Typedefs | |
| using | uiBlockHandleCreateFunc = uiBlock *(*)(bContext * C, uiPopupBlockHandle *handle, void *arg1) |
| using | uiButFindPollFn = bool (*)(const uiBut *but, const void *customdata) |
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] |
| bool | ATTR_WARN_UNUSED_RESULT |
| #define PIE_CLICK_THRESHOLD_SQ 50.0f |
Definition at line 167 of file interface_intern.hh.
Referenced by ui_pie_handler().
| #define PIE_MAX_ITEMS 8 |
The maximum number of items a radial menu (pie menu) can contain.
Definition at line 170 of file interface_intern.hh.
Referenced by uiLayout::op_enum_items(), ui_get_radialbut_vec(), and ui_pie_menu_level_create().
| #define PNL_HEADER (UI_UNIT_Y * 1.25) /* 24 default */ |
Definition at line 135 of file interface_intern.hh.
Referenced by get_panel_real_size_y(), get_panel_size_y(), ui_draw_aligned_panel(), ui_panel_drag_collapse(), and ui_panel_mouse_state_get().
| #define RNA_ENUM_VALUE -2 |
Definition at line 58 of file interface_intern.hh.
Referenced by uiLayout::prop(), uiLayout::prop_enum(), uiLayout::prop_enum(), and ui_item_rna_size().
| #define RNA_NO_INDEX -1 |
Definition at line 57 of file interface_intern.hh.
Referenced by CurveProfile_buttons_layout(), draw_export_properties(), uiLayout::prop(), uiLayout::prop(), template_search_buttons(), ui_item_rna_is_expand(), ui_item_rna_size(), blender::ed::space_node::ui_node_draw_input(), and uilist_draw_item_default().
Definition at line 145 of file interface_intern.hh.
| #define UI_BITBUT_TEST | ( | a, | |
| b ) |
Definition at line 139 of file interface_intern.hh.
Referenced by ui_but_is_pushed_ex().
| #define UI_BITBUT_VALUE_DISABLED | ( | a, | |
| b ) |
Definition at line 142 of file interface_intern.hh.
| #define UI_BITBUT_VALUE_ENABLED | ( | a, | |
| b ) |
Definition at line 141 of file interface_intern.hh.
| #define UI_BITBUT_VALUE_TOGGLED | ( | a, | |
| b ) |
Definition at line 140 of file interface_intern.hh.
Referenced by ui_apply_but_TOG().
| #define UI_MENU_PADDING (int)(0.2f * UI_UNIT_Y) |
Definition at line 60 of file interface_intern.hh.
Referenced by colorband_tools_fn(), menu_items_from_ui_create(), ui_popup_block_position(), and ui_popup_menu_create_block().
| #define UI_MENU_SCROLL_ARROW (12 * UI_SCALE_FAC) |
Definition at line 67 of file interface_intern.hh.
Referenced by ui_menu_scroll_to_but(), and ui_popup_block_scrolltest().
| #define UI_MENU_SCROLL_MOUSE (UI_MENU_SCROLL_ARROW + 2 * UI_SCALE_FAC) |
Definition at line 68 of file interface_intern.hh.
Referenced by ui_menu_scroll_test().
| #define UI_MENU_SCROLL_PAD (4 * UI_SCALE_FAC) |
Definition at line 69 of file interface_intern.hh.
Referenced by ui_menu_scroll_apply_offset_y(), and ui_popup_block_refresh().
| #define UI_MENU_SUBMENU_PADDING (6 * UI_SCALE_FAC) |
Some extra padding added to menus containing sub-menu icons.
Definition at line 64 of file interface_intern.hh.
Referenced by ui_popup_block_position(), and widget_draw_text_icon().
| #define UI_MENU_WIDTH_MIN (UI_UNIT_Y * 9) |
Definition at line 62 of file interface_intern.hh.
Referenced by colorband_tools_fn(), ui_block_func_PIE(), ui_block_func_POPOVER(), and ui_block_func_POPUP().
| #define UI_PIXEL_AA_JITTER 8 |
Definition at line 1396 of file interface_intern.hh.
Referenced by widget_progress_type_ring().
| #define UI_POPOVER_WIDTH_UNITS 10 |
Popover width (multiplied by #U.widget_unit)
Definition at line 72 of file interface_intern.hh.
Referenced by UI_popover_begin(), and ui_popover_panel_create().
| #define UI_POPUP_MARGIN (UI_SCALE_FAC * 12) |
Definition at line 1389 of file interface_intern.hh.
Referenced by ui_popup_block_refresh(), ui_searchbox_region_layout_fn(), UI_tooltip_create_from_button_or_extra_icon(), UI_tooltip_create_from_search_item_generic(), and ui_tooltip_create_with_data().
| #define UI_POPUP_MENU_TOP (int)(10 * UI_SCALE_FAC) |
Margin at top of screen for popups. Note this value must be sufficient to draw a popover arrow to avoid cropping it.
Definition at line 1394 of file interface_intern.hh.
Referenced by ui_block_bounds_calc_popup(), ui_popup_block_clip(), ui_popup_block_position(), ui_popup_block_refresh(), and ui_searchbox_region_layout_fn().
| #define UI_RADIAL_DIRECTION_NEXT | ( | dir | ) |
Next direction (clockwise).
Definition at line 117 of file interface_intern.hh.
Referenced by ui_but_isect_pie_seg().
| #define UI_RADIAL_DIRECTION_PREV | ( | dir | ) |
Previous direction (counter-clockwise).
Definition at line 119 of file interface_intern.hh.
Referenced by ui_but_isect_pie_seg().
| #define UI_RADIAL_MASK_ALL_AXIS_ALIGNED |
Definition at line 126 of file interface_intern.hh.
Referenced by ui_draw_pie_center().
| #define UI_RADIAL_MASK_ALL_DIAGONAL |
Store a mask for diagonal directions.
Definition at line 123 of file interface_intern.hh.
Referenced by ui_draw_pie_center().
| #define UI_TEXT_MARGIN_X 0.4f |
Definition at line 1388 of file interface_intern.hh.
Referenced by ui_textedit_set_cursor_pos(), and widget_draw_text_icon().
| #define USE_NUMBUTS_LR_ALIGN |
Split number-buttons by ':' and align left/right.
Definition at line 149 of file interface_intern.hh.
| using uiBlockHandleCreateFunc = uiBlock *(*)(bContext * C, uiPopupBlockHandle *handle, void *arg1) |
Definition at line 914 of file interface_intern.hh.
| using uiButFindPollFn = bool (*)(const uiBut *but, const void *customdata) |
Definition at line 1542 of file interface_intern.hh.
| using uiPopoverCreateFunc = std::function<void(bContext *, uiLayout *, PanelType *)> |
Definition at line 1084 of file interface_intern.hh.
| 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_DASH | |
| ROUNDBOX_TRIA_MAX | |
Definition at line 1301 of file interface_intern.hh.
| anonymous enum |
| Enumerator | |
|---|---|
| UI_SELECT | Use when the button is pressed. |
| UI_SCROLLED | Temporarily hidden (scrolled out of the view). |
| UI_HOVER | The button is hovered by the mouse and should be drawn with a hover highlight. Also set sometimes to highlight buttons without actually hovering it (e.g. for arrow navigation in menus). UI handling code manages this mostly and usually does this together with making the button active/focused (see uiBut::active). This means events will be forwarded to it and further handlers/shortcuts can be used while hovering it. |
| UI_HAS_ICON | |
| UI_HIDDEN | |
| UI_SELECT_DRAW | Display selected, doesn't impact interaction. |
| UI_SEARCH_FILTER_NO_MATCH | Property search filter is active and the button does not match. |
| UI_BUT_ACTIVE_OVERRIDE | Temporarily override the active button for lookups in context, regions, etc. (everything using ui_context_button_active()). For example, so that operators normally acting on the active button can be polled on non-active buttons to (e.g. for disabling). |
Definition at line 75 of file interface_intern.hh.
| anonymous enum |
Definition at line 152 of file interface_intern.hh.
| 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 554 of file interface_intern.hh.
| enum RadialDirection : int8_t |
| 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 104 of file interface_intern.hh.
|
strong |
| Enumerator | |
|---|---|
| None | |
| Info | |
| Success | |
| Warning | |
| Error | |
Definition at line 586 of file interface_intern.hh.
| 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 561 of file interface_intern.hh.
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 1335 of file interface_intern.hh.
| ENUM_OPERATORS | ( | uiButtonGroupFlag | , |
| UI_BUTTON_GROUP_PANEL_HEADER | ) |
References UI_BUTTON_GROUP_PANEL_HEADER.
| wmKeyMap * eyedropper_colorband_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 62 of file interface_eyedropper.cc.
References EYE_MODAL_POINT_CANCEL, EYE_MODAL_POINT_CONFIRM, EYE_MODAL_POINT_RESET, EYE_MODAL_POINT_SAMPLE, wmKeyMap::modal_items, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by ED_keymap_ui(), and ui_screen_region_find_mouse_over_ex().
| wmKeyMap * eyedropper_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 31 of file interface_eyedropper.cc.
References EYE_MODAL_CANCEL, EYE_MODAL_SAMPLE_BEGIN, EYE_MODAL_SAMPLE_CONFIRM, EYE_MODAL_SAMPLE_RESET, wmKeyMap::modal_items, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by ED_keymap_ui(), and ui_screen_region_find_mouse_over_ex().
| void icon_draw_rect_input | ( | float | x, |
| float | y, | ||
| int | w, | ||
| int | h, | ||
| int | icon_id, | ||
| float | aspect, | ||
| float | alpha, | ||
| bool | inverted ) |
Definition at line 182 of file interface_icons_event.cc.
References BLI_rctf_size_x(), BLI_STR_UTF8_BLACK_LEFT_POINTING_DOUBLE_TRIANGLE_WITH_VERTICAL_BAR, BLI_STR_UTF8_BLACK_RIGHT_POINTING_DOUBLE_TRIANGLE_WITH_VERTICAL_BAR, BLI_STR_UTF8_BLACK_RIGHT_POINTING_TRIANGLE_WITH_DOUBLE_VERTICAL_BAR, BLI_STR_UTF8_BLACK_SQUARE_FOR_STOP, BLI_STR_UTF8_BLACK_VERTICAL_ELLIPSE, BLI_STR_UTF8_DOWNWARDS_ARROW, BLI_STR_UTF8_GREATER_THAN_OR_LESS_THAN, BLI_STR_UTF8_LEFTWARDS_ARROW, BLI_STR_UTF8_LOWER_RIGHT_PENCIL, BLI_STR_UTF8_RETURN_SYMBOL, BLI_STR_UTF8_RIGHTWARDS_ARROW, BLI_STR_UTF8_SQUARE_WITH_ORTHOGONAL_CROSSHATCH, BLI_STR_UTF8_UPPER_RIGHT_PENCIL, BLI_STR_UTF8_UPWARDS_ARROW, BLI_STR_UTF8_UPWARDS_UP_ARROW_FROM_BAR, BLT_I18NCONTEXT_UI_EVENTS, CTX_IFACE_, icon_draw_icon(), icon_draw_rect_input_icon(), icon_draw_rect_input_text(), IFACE_, SNPRINTF_UTF8, str, ui_event_icon_offset(), w(), x, rctf::xmax, rctf::xmin, y, rctf::ymax, and rctf::ymin.
Referenced by icon_draw_size().
| std::optional< blender::StringRefNull > UI_asset_shelf_idname_from_button_context | ( | const uiBut * | but | ) |
Definition at line 101 of file interface_template_asset_shelf_popover.cc.
References UI_but_context_string_get().
Referenced by UI_but_asset_shelf_type_idname_get().
| blender::gpu::Batch * ui_batch_roundbox_shadow_get | ( | ) |
Definition at line 477 of file interface_widgets.cc.
References 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, set_roundbox_vertex(), set_roundbox_vertex_data(), vflag_format(), WIDGET_CURVE_RESOLU, and WIDGET_SIZE_MAX.
Referenced by ui_draw_dropshadow().
| blender::gpu::Batch * ui_batch_roundbox_widget_get | ( | ) |
Definition at line 451 of file interface_widgets.cc.
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(), and vflag_format().
Referenced by draw_widgetbase_batch(), UI_draw_roundbox_4fv_ex(), and UI_widgetbase_draw_cache_flush().
Definition at line 648 of file interface_query.cc.
References uiBlock::buttons.
Referenced by ui_but_update_view_for_active(), ui_list_find_mouse_over_ex(), and ui_region_find_active_but().
| void ui_block_add_dynamic_listener | ( | uiBlock * | block, |
| void(* | listener_func )(const wmRegionListenerParams *params) ) |
Register a listener callback to this block to tag the area/region for redraw.
Definition at line 3910 of file interface.cc.
References BLI_addtail(), uiBlock::dynamic_listeners, uiBlockDynamicListener::listener_func, MEM_mallocN(), and params.
Referenced by UI_menutype_draw(), and ui_paneltype_draw_impl().
Compute the alignment of all 'align groups' of buttons in given block.
This is using an order-independent algorithm, i.e. alignment of buttons should be OK regardless of order in which they are added to the block.
Definition at line 356 of file interface_align.cc.
References uiBut::alignnr, blender::Vector< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Vector< T, InlineBufferCapacity, Allocator >::begin(), BLI_assert, block_align_proximity_compute(), block_align_stitch_neighbors(), ButAlign::borders, ButAlign::but, uiBlock::buttons, ButAlign::dists, DOWN, uiBut::drawflag, blender::Vector< T, InlineBufferCapacity, Allocator >::end(), fabsf, FLT_MAX, i, blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), IS_EQF, LEFT, MAX_DELTA, ButAlign::neighbors, OPPOSITE, blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), RIGHT, SIDE1, SIDE2, SIDE_TO_UI_BUT_ALIGN, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), Vector< T, InlineBufferCapacity, Allocator >::size(), Tab, TOP, TOTSIDES, ui_block_align_but_to_region(), ui_block_align_butal_cmp(), and UI_BUT_ALIGN_ALL.
Referenced by UI_block_end_ex().
| void ui_block_bounds_calc | ( | uiBlock * | block | ) |
Definition at line 490 of file interface.cc.
References BLI_rctf_init_minmax(), BLI_rctf_size_x(), BLI_rctf_union(), uiBlock::bounds, uiBlock::buttons, uiBlock::first_but(), Vector< T, InlineBufferCapacity, Allocator >::is_empty(), max_ff(), uiBlock::minbounds, uiBlock::panel, uiBlock::rect, uiBlock::safety, Panel::sizex, Panel::sizey, uiBut::str, STRPREFIX, UI_SCALE_FAC, 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_bounds_calc_post_centered(), UI_block_end_ex(), ui_offset_panel_block(), and ui_update_flexible_spacing().
Definition at line 10660 of file interface_handlers.cc.
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(), U, UI_PIE_INITIAL_DIRECTION, UI_PIE_INVALID_DIR, and UI_SCALE_FAC.
Referenced by ui_pie_handler(), and ui_popup_block_refresh().
| const ColorManagedDisplay * ui_block_cm_display_get | ( | uiBlock * | block | ) |
Definition at line 4202 of file interface.cc.
References uiBlock::display_device, and IMB_colormanagement_display_get_named().
Referenced by ui_block_cm_to_display_space_v3(), UI_but_cm_display_get(), ui_draw_but_COLORBAND(), ui_draw_but_CURVE(), and ui_draw_but_HSVCUBE().
Definition at line 4207 of file interface.cc.
References IMB_colormanagement_scene_linear_to_display_v3(), and ui_block_cm_display_get().
Referenced by ui_draw_but_HSVCIRCLE(), ui_draw_but_HSVCUBE(), and widget_swatch().
| ColorPicker * ui_block_colorpicker_create | ( | uiBlock * | block | ) |
Definition at line 1136 of file interface_region_color_picker.cc.
References BLI_addhead(), uiBlock::color_pickers, ColorPickerData::list, and MEM_callocN().
Referenced by ui_block_colorpicker(), and uiTemplateColorPicker().
| uiBlock uiBlock * ui_block_find_mouse_over | ( | const ARegion * | region, |
| const wmEvent * | event, | ||
| bool | only_clip ) |
Definition at line 759 of file interface_query.cc.
References ui_block_find_mouse_over_ex(), and wmEvent::xy.
Referenced by ui_block_find_mouse_over_ex().
| void ui_block_free_views | ( | uiBlock * | block | ) |
Definition at line 81 of file interface_view.cc.
References LISTBASE_FOREACH_MUTABLE, and uiBlock::views.
Referenced by UI_block_free().
| uiBlock * ui_block_func_COLOR | ( | bContext * | C, |
| uiPopupBlockHandle * | handle, | ||
| void * | arg_but ) |
Definition at line 1111 of file interface_region_color_picker.cc.
References uiBlock::block_event_func, C, copy_v3_v3(), uiBlock::direction, uiBut::editvec, blender::ui::Emboss, 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_THEME_STYLE_POPUP, UI_block_theme_style_set(), ui_but_is_color_gamma(), ui_colorpicker_wheel_cb(), UI_DIR_UP, and UI_UNIT_X.
Referenced by ui_block_open_begin().
| bool ui_block_is_menu | ( | const uiBlock * | block | ) |
Definition at line 659 of file interface_query.cc.
References uiBlock::flag, UI_BLOCK_KEEP_OPEN, and UI_BLOCK_LOOP.
Referenced by uiLayout::separator(), UI_block_can_add_separator(), ui_block_func_POPOVER(), ui_block_is_popup_any(), ui_but_is_drag_toggle(), ui_do_but_TOG(), ui_handle_button_event(), ui_handle_menu_button(), ui_handle_menu_event(), ui_handle_menus_recursive(), ui_list_find_mouse_over_ex(), ui_menu_scroll_apply_offset_y(), ui_mouse_motion_towards_check(), ui_popup_block_free(), ui_popup_block_refresh(), ui_popup_context_menu_for_button(), ui_popup_menu_create_impl(), ui_tooltip_data_from_button_or_extra_icon(), and widget_draw_text_icon().
| bool ui_block_is_pie_menu | ( | const uiBlock * | block | ) |
Definition at line 671 of file interface_query.cc.
References uiBlock::flag, and UI_BLOCK_PIE_MENU.
Referenced by uiLayout::separator(), UI_block_can_add_separator(), ui_block_is_popup_any(), ui_handle_button_event(), ui_handle_menu_button(), ui_list_find_mouse_over_ex(), ui_tooltip_data_from_button_or_extra_icon(), widget_draw_icon(), and widget_draw_text_icon().
| bool ui_block_is_popover | ( | const uiBlock * | block | ) |
Definition at line 666 of file interface_query.cc.
References uiBlock::flag, and UI_BLOCK_POPOVER.
Referenced by ui_block_is_popup_any(), ui_def_but(), ui_def_but_operator_ptr(), and ui_list_find_mouse_over_ex().
| bool ui_block_is_popup_any | ( | const uiBlock * | block | ) |
Definition at line 676 of file interface_query.cc.
References ui_block_is_menu(), ui_block_is_pie_menu(), and ui_block_is_popover().
Referenced by uiLayout::separator_spacer(), ui_do_but_SCROLL(), ui_do_but_VIEW_ITEM(), ui_draw_layout_panels_backdrop(), ui_list_find_mouse_over_ex(), and ui_popup_context_menu_for_button().
| 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 15 of file interface_button_group.cc.
References Vector< T, InlineBufferCapacity, Allocator >::append(), uiBlock::button_groups, flag, uiButtonGroup::flag, Vector< T, InlineBufferCapacity, Allocator >::is_empty(), Vector< T, InlineBufferCapacity, Allocator >::last(), and UI_BUTTON_GROUP_LOCK.
Referenced by uiLayout::prop(), uiLayout::prop_search(), ui_button_group_add_but(), ui_item_menu(), UI_panel_header_buttons_begin(), UI_panel_header_buttons_end(), uiItem_simple(), and uiItemFullO_ptr_ex().
Definition at line 123 of file interface.cc.
References BLI_rcti_size_x(), BLI_rcti_size_y(), float, Panel::ofsx, Panel::ofsy, uiBlock::panel, uiBlock::winmat, ARegion::winrct, x, and y.
Referenced by ui_block_to_region_rctf(), and ui_block_to_window_fl().
| void ui_block_to_region_rctf | ( | const ARegion * | region, |
| const uiBlock * | block, | ||
| rctf * | rct_dst, | ||
| const rctf * | rct_src ) |
Definition at line 160 of file interface.cc.
References ui_block_to_region_fl(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by ui_but_rect_to_view().
Definition at line 149 of file interface.cc.
References ui_block_to_window_fl(), x, and y.
Definition at line 142 of file interface.cc.
References ui_block_to_region_fl(), ARegion::winrct, x, rcti::xmin, y, and rcti::ymin.
Referenced by button_activate_state(), ui_block_func_POPOVER(), ui_block_to_window(), ui_block_to_window_rctf(), ui_block_to_window_scale(), ui_textedit_set_cursor_pos(), and UI_tooltip_create_from_button_or_extra_icon().
| void ui_block_to_window_rctf | ( | const ARegion * | region, |
| const uiBlock * | block, | ||
| rctf * | rct_dst, | ||
| const rctf * | rct_src ) |
Definition at line 170 of file interface.cc.
References ui_block_to_window_fl(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by button_activate_state(), blender::ui::AbstractTreeViewItem::get_win_rect(), ui_mouse_motion_towards_check(), ui_popup_block_position(), ui_to_pixelrect(), and UI_tooltip_create_from_button_or_extra_icon().
Definition at line 180 of file interface.cc.
References ui_block_to_window_fl().
Referenced by ui_but_drag_init().
| blender::ui::AbstractView * ui_block_view_find_matching_in_old_block | ( | const uiBlock & | new_block, |
| const blender::ui::AbstractView & | new_view ) |
Definition at line 343 of file interface_view.cc.
References ui_block_view_find_matching_in_old_block_impl().
Referenced by blender::ui::AbstractView::update_from_old().
| uiButViewItem * ui_block_view_find_matching_view_item_but_in_old_block | ( | const uiBlock & | new_block, |
| const blender::ui::AbstractViewItem & | new_item ) |
Definition at line 349 of file interface_view.cc.
References uiBlock::buttons, blender::ui::AbstractViewItem::get_view(), uiBlock::oldblock, ui_block_view_find_matching_in_old_block_impl(), UI_view_item_matches(), uiButViewItem::view_item, and ViewItem.
Referenced by blender::ui::AbstractTreeViewItem::is_hovered().
| void ui_block_view_persistent_state_restore | ( | const ARegion & | region, |
| const uiBlock & | block, | ||
| blender::ui::AbstractView & | view ) |
Definition at line 128 of file interface_view.cc.
References BLI_assert_unreachable, blender::StringRefBase::is_empty(), LISTBASE_FOREACH, view, ARegion::view_states, and uiBlock::views.
Referenced by blender::ui::GridViewBuilder::build_grid_view(), and blender::ui::TreeViewBuilder::build_tree_view().
Definition at line 193 of file interface_view.cc.
References LISTBASE_FOREACH, and uiBlock::views.
Referenced by UI_block_draw().
Definition at line 167 of file interface_view.cc.
References ensure_view_state(), LISTBASE_FOREACH, ARegion::regiontype, RGN_TYPE_TEMPORARY, uiViewStateLink::state, uiBlock::views, and ViewLink::views_bounds_calc().
Referenced by UI_block_end_ex(), and UI_panels_end().
| void ui_block_views_listen | ( | const uiBlock * | block, |
| const wmRegionListenerParams * | listener_params ) |
Definition at line 182 of file interface_view.cc.
References ED_region_tag_redraw(), LISTBASE_FOREACH, wmRegionListenerParams::notifier, wmRegionListenerParams::region, and uiBlock::views.
Referenced by UI_block_listen().
Exported to interface.cc: UI_but_active_only()
Definition at line 9487 of file interface_handlers.cc.
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(), and with_but_active_as_semi_modal().
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 9504 of file interface_handlers.cc.
References button_activate_init(), BUTTON_ACTIVATE_OVER, and C.
Referenced by ui_block_func_POPUP().
Definition at line 9154 of file interface_handlers.cc.
References uiBut::active, button_activate_exit(), C, and data.
Referenced by UI_but_active_only_ex(), ui_but_free(), UI_region_free_active_but_all(), and UI_screen_free_active_but_highlight().
Clear & exit the active button's string..
Definition at line 3068 of file interface_handlers.cc.
References uiBut::active, button_activate_state(), BUTTON_STATE_EXIT, C, uiTextEdit::edit_string, MEM_calloc_arrayN(), uiHandleButtonData::text_edit, 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, | ||
| PropertyRNA * | item_searchprop, | ||
| bool | results_are_suggestions ) |
Definition at line 2641 of file interface_layout.cc.
References uiBut::block, uiRNACollectionSearch::butstore, uiRNACollectionSearch::butstore_block, uiBut::drawflag, uiBut::flag, uiBut::hardmax, uiRNACollectionSearch::item_search_prop, PointerRNA_NULL, PROP_ENUM, PROP_POINTER, PROP_STRING, ptr, RNA_property_is_unlink(), RNA_property_pointer_type(), RNA_property_string_search_flag(), RNA_property_type(), uiButSearch::rnasearchpoin, uiButSearch::rnasearchprop, uiRNACollectionSearch::search_but, search_id_collection(), uiRNACollectionSearch::search_prop, uiRNACollectionSearch::search_ptr, SearchMenu, uiBut::str, uiRNACollectionSearch::target_prop, uiRNACollectionSearch::target_ptr, uiBut::type, ui_but_change_type(), UI_BUT_DISABLED, UI_but_func_search_set(), UI_but_func_search_set_results_are_suggestions(), 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 uiLayout::prop(), uiLayout::prop_search(), and uiDefAutoButR().
| void ui_but_add_shortcut | ( | uiBut * | but, |
| const char * | shortcut_str, | ||
| bool | do_strip ) |
Definition at line 1349 of file interface.cc.
References uiBut::flag, uiBut::str, UI_BUT_HAS_SEP_CHAR, ui_but_update(), UI_SEP_CHAR, and UI_SEP_CHAR_S.
Referenced by but_shortcut_name_func(), uiLayout::op_menu_enum(), UI_but_hint_drawstr_set(), and ui_menu_block_set_keymaps().
| int ui_but_align_opposite_to_area_align_get | ( | const ARegion * | region | ) |
Definition at line 488 of file interface_align.cc.
References ARegion::alignment, ARegion::prev, RGN_ALIGN_BOTTOM, RGN_ALIGN_ENUM_FROM_MASK, RGN_ALIGN_LEFT, RGN_ALIGN_RIGHT, RGN_ALIGN_TOP, RGN_SPLIT_PREV, UI_BUT_ALIGN_DOWN, UI_BUT_ALIGN_LEFT, UI_BUT_ALIGN_RIGHT, and UI_BUT_ALIGN_TOP.
Referenced by template_ID_tabs(), and ui_item_enum_expand_tabs().
Definition at line 316 of file interface_anim.cc.
References blender::animrig::autokeyframe_property(), C, uiBut::rnaindex, uiBut::rnapoin, and uiBut::rnaprop.
Referenced by ui_apply_but_autokey().
| void ui_but_anim_copy_driver | ( | bContext * | C | ) |
Definition at line 322 of file interface_anim.cc.
References C, blender::wm::InvokeDefault, and WM_operator_name_call().
| void ui_but_anim_decorate_cb | ( | bContext * | C, |
| void * | arg_but, | ||
| void * | arg_dummy ) |
Definition at line 342 of file interface_anim.cc.
References C, CTX_wm_manager(), uiBut::flag, blender::wm::InvokeDefault, wmWindowManager::op_undo_depth, ot, RNA_boolean_set(), uiBut::rnaindex, uiButDecorator::toggle_keyframe_on_click, UI_BUT_ACTIVE_OVERRIDE, ui_but_anim_decorate_find_attached_button(), UI_BUT_ANIMATED_KEY, WM_operator_name_call_ptr(), WM_operator_properties_create_ptr(), WM_operator_properties_free(), and WM_operatortype_find().
Referenced by uiLayout::decorator().
| void ui_but_anim_decorate_update_from_flag | ( | uiButDecorator * | but | ) |
Definition at line 150 of file interface_anim.cc.
References PointerRNA::data, uiButDecorator::decorated_rnapoin, uiButDecorator::decorated_rnaprop, flag, uiBut::flag, uiBut::icon, printf, RNA_property_identifier(), RNA_struct_identifier(), uiButDecorator::toggle_keyframe_on_click, 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 ) |
Create new expression for button (i.e. a "scripted driver"), if it can be created.
Definition at line 250 of file interface_anim.cc.
References BKE_driver_invalidate_expression(), 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_MA, ID_TE, ID::name, NC_ANIMATION, ND_KEYFRAME, PointerRNA::owner_id, printf, RNA_path_from_ID_to_property(), RNA_property_array_check(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, str, STRNCPY_UTF8, 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 | str_maxncpy ) |
str can be NULL to only perform check if but has an expression at all.
Definition at line 193 of file interface_anim.cc.
References BLI_strncpy_utf8(), FCurve::driver, DRIVER_TYPE_PYTHON, ChannelDriver::expression, str, ChannelDriver::type, and ui_but_get_fcurve().
Referenced by ui_but_string_get_ex(), ui_textedit_begin(), and ui_tooltip_data_from_button_or_extra_icon().
| bool ui_but_anim_expression_set | ( | uiBut * | but, |
| const char * | str ) |
Definition at line 215 of file interface_anim.cc.
References BKE_driver_invalidate_expression(), 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, str, STRNCPY_UTF8, 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 AnimationEvalContext * | anim_eval_context ) |
Definition at line 60 of file interface_anim.cc.
References BKE_animsys_eval_context_construct_at(), BKE_fcurve_is_empty(), BKE_nla_tweakedit_remap(), uiBut::drawflag, AnimationEvalContext::eval_time, blender::animrig::fcurve_frame_has_keyframe(), fcurve_is_changed(), uiBut::flag, LISTBASE_FOREACH, AnimData::nla_tracks, NLATIME_CONVERT_UNMAP, NLATRACK_MUTED, uiBut::rnapoin, uiBut::rnaprop, UI_BUT_ANIMATED, UI_BUT_ANIMATED_CHANGED, UI_BUT_ANIMATED_KEY, UI_BUT_DRIVEN, and ui_but_get_fcurve().
Referenced by UI_block_end_ex(), and UI_context_update_anim_flag().
| void ui_but_anim_paste_driver | ( | bContext * | C | ) |
Definition at line 332 of file interface_anim.cc.
References C, blender::wm::InvokeDefault, and WM_operator_name_call().
| bool ui_but_can_align | ( | const uiBut * | but | ) |
Definition at line 95 of file interface_align.cc.
References BLI_rctf_is_empty(), Checkbox, CheckboxN, ELEM, Label, uiBut::rect, Sepr, SeprLine, SeprSpacer, Tab, and uiBut::type.
Referenced by block_align_proximity_compute(), and ui_def_but().
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 4279 of file interface.cc.
References BLI_assert, uiBut::block, uiLayout::block(), uiBlock::but_index(), uiBlock::buttons, uiBut::layout, uiBut::poin, uiBut::type, ui_but_new(), ui_button_group_replace_but_ptr(), UI_editsource_but_replace(), UI_editsource_enable_check(), ui_layout_replace_but_ptr(), and UNUSED_VARS_NDEBUG.
Referenced by uiLayout::prop(), ui_but_add_search(), and ui_item_array().
| void ui_but_clipboard_free | ( | ) |
Definition at line 2968 of file interface_handlers.cc.
References BKE_curvemapping_free_data(), BKE_curveprofile_free_data(), but_copypaste_curve, and but_copypaste_profile.
Referenced by UI_exit().
| bool ui_but_color_has_alpha | ( | uiBut * | but | ) |
Returns true if the button represents a color with an Alpha component.
Definition at line 118 of file interface_region_color_picker.cc.
References ELEM, PROP_COLOR, PROP_COLOR_GAMMA, RNA_property_array_length(), RNA_property_subtype(), uiBut::rnapoin, and uiBut::rnaprop.
Referenced by ui_block_colorpicker(), and ui_but_drag_init().
| bool ui_but_contains_password | ( | const uiBut * | but | ) |
Definition at line 602 of file interface_query.cc.
References PROP_PASSWORD, RNA_property_subtype(), and uiBut::rnaprop.
Referenced by ui_but_copy(), and ui_list_find_mouse_over_ex().
References xy.
Referenced by ui_do_but_HOTKEYEVT(), ui_handle_button_event(), ui_handle_button_return_submenu(), ui_handle_menu_button(), and ui_handle_menu_event().
Definition at line 283 of file interface_query.cc.
References BLI_rcti_isect_pt(), BLI_rcti_rctf_copy(), BLI_rcti_size_x(), BLI_rcti_size_y(), uiBut::block, uiBut::dragflag, uiBut::drawflag, uiBut::rect, UI_BUT_DRAG_FULL_BUT, UI_BUT_ICON_LEFT, ui_window_to_block(), x, rcti::xmax, rcti::xmin, and y.
Referenced by ui_do_but_BLOCK(), ui_do_but_COLOR(), and ui_do_but_EXIT().
Definition at line 251 of file interface_query.cc.
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 256 of file interface_query.cc.
References BLI_rctf_isect(), and uiBut::rect.
Referenced by ui_but_find_rect_over().
| bool ui_but_context_poll_operator | ( | bContext * | C, |
| wmOperatorType * | ot, | ||
| const uiBut * | but ) |
Definition at line 2058 of file interface.cc.
References C, blender::wm::InvokeDefault, uiBut::opcontext, ot, params, and ui_but_context_poll_operator_ex().
Referenced by UI_block_end_ex().
| bool ui_but_context_poll_operator_ex | ( | bContext * | C, |
| const uiBut * | but, | ||
| const wmOperatorCallParams * | optype_params ) |
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 2021 of file interface.cc.
References BLI_assert_msg, C, uiBut::context, CTX_store_get(), CTX_store_set(), flag, uiBut::flag, wmOperatorCallParams::opcontext, wmOperatorCallParams::optype, result, UI_BUT_ACTIVE_OVERRIDE, and WM_operator_poll_context().
Referenced by UI_block_end_ex(), ui_but_context_poll_operator(), and ui_tooltip_data_from_button_or_extra_icon().
| void ui_but_convert_to_unit_alt_name | ( | uiBut * | but, |
| char * | str, | ||
| size_t | str_maxncpy ) |
| str | will be overwritten. |
Definition at line 2935 of file interface.cc.
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().
| void ui_but_drag_free | ( | uiBut * | but | ) |
Definition at line 89 of file interface_drag.cc.
References uiBut::dragflag, uiBut::dragpoin, uiBut::dragtype, UI_BUT_DRAGPOIN_FREE, and WM_drag_data_free().
Referenced by ui_but_free().
| bool ui_but_drag_is_draggable | ( | const uiBut * | but | ) |
Definition at line 96 of file interface_drag.cc.
References uiBut::dragpoin.
Referenced by ui_but_is_interactive_ex(), ui_do_but_BLOCK(), ui_do_but_COLOR(), ui_do_but_EXIT(), and widget_draw_icon().
Definition at line 2906 of file interface.cc.
References BLI_assert, uiBut::block, uiBlock::buttons, uiBut::flag, and UI_BUT_DRAG_MULTI.
Referenced by ui_draw_but(), widget_draw_text(), and widget_draw_text_icon().
Definition at line 101 of file interface_drag.cc.
References C, uiBut::drag_preview_icon_id, uiBut::dragflag, uiBut::dragpoin, uiBut::dragtype, ELEM, uiBut::icon, uiBut::imb, uiBut::imb_scale, UI_BUT_DRAGPOIN_FREE, WM_DRAG_ASSET, WM_DRAG_ASSET_LIST, WM_drag_data_create(), WM_DRAG_FREE_DATA, WM_DRAG_ID, WM_DRAG_NOP, WM_DRAG_PATH, WM_event_drag_image(), WM_event_drag_path_override_poin_data_with_space_file_paths(), WM_event_drag_preview_icon(), WM_event_start_drag(), and WM_event_start_prepared_drag().
Referenced by ui_but_drag_init().
| size_t ui_but_drawstr_len_without_sep_char | ( | const uiBut * | but | ) |
Definition at line 613 of file interface_query.cc.
References uiBut::drawstr, uiBut::flag, UI_BUT_HAS_SEP_CHAR, and UI_SEP_CHAR.
Referenced by ui_apply_but_undo(), ui_but_drawstr_without_sep_char(), and ui_list_find_mouse_over_ex().
| blender::StringRef ui_but_drawstr_without_sep_char | ( | const uiBut * | but | ) |
Definition at line 624 of file interface_query.cc.
References uiBut::drawstr, blender::StringRefBase::substr(), and ui_but_drawstr_len_without_sep_char().
Referenced by ui_apply_but_func(), ui_but_user_menu_add(), ui_handle_afterfunc_add_operator_ex(), and ui_list_find_mouse_over_ex().
Definition at line 9509 of file interface_handlers.cc.
References uiBut::active, BLI_assert, BLI_findindex(), uiBut::block, data, and ARegion::runtime.
Referenced by UI_but_execute(), and ui_multibut_states_apply().
Definition at line 9523 of file interface_handlers.cc.
References uiBut::active, uiBut::block, button_activate_exit(), C, uiBut::flag, ui_apply_but(), ui_apply_but_autokey(), and UI_BUT_DRAG_MULTI.
Referenced by UI_but_execute(), and ui_multibut_states_apply().
| void ui_but_extra_operator_icons_free | ( | uiBut * | but | ) |
Definition at line 1792 of file interface.cc.
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 ARegion * | region, |
| const int | xy[2], | ||
| bool | labeledit, | ||
| bool | for_tooltip, | ||
| const uiButFindPollFn | find_poll, | ||
| const void * | find_custom_data ) |
x and y are only used in case event is NULL.
References ATTR_NONNULL, ATTR_WARN_UNUSED_RESULT, ui_but_find_mouse_over_ex(), ui_but_find_rect_over(), and xy.
Referenced by ui_but_find_mouse_over_ex(), ui_but_list_row_text_activate(), ui_drag_toggle_set(), ui_handle_button_over(), and ui_handler_region_drag_toggle().
Definition at line 893 of file interface.cc.
References uiBlock::buttons, and ui_but_equals_old().
Referenced by UI_butstore_update().
Definition at line 873 of file interface.cc.
References ui_but_find_old().
Definition at line 377 of file interface_query.cc.
References BLI_assert, BLI_rctf_isect(), BLI_rctf_rcti_copy(), i, LISTBASE_FOREACH, uiBut::pie_dir, ARegion::runtime, UI_BLOCK_CLIP_EVENTS, ui_but_contains_rect(), ui_but_is_interactive(), UI_RADIAL_NONE, ui_region_contains_rect_px(), and ui_window_to_block_rctf().
Referenced by ui_but_find_mouse_over_ex(), and 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 641 of file interface_handlers.cc.
References BLI_assert, uiBut::block, uiBlock::but_index(), uiBlock::buttons, ELEM, i, ui_but_find_select_in_enum__cmp(), and UI_SELECT.
Referenced by ui_do_but_TOG().
Definition at line 562 of file interface_query.cc.
References uiBlock::buttons, and ui_but_is_editable().
Referenced by button_activate_init(), ui_handle_menu_event(), and ui_list_find_mouse_over_ex().
| void ui_but_handle_data_free | ( | uiHandleButtonData ** | data | ) |
Definition at line 585 of file interface_handlers.cc.
References data.
Referenced by button_activate_exit(), and ui_but_free().
| bool ui_but_has_array_value | ( | const uiBut * | but | ) |
Definition at line 135 of file interface_query.cc.
References PointerRNA::data, RNA_property_array_check(), uiBut::rnapoin, and uiBut::rnaprop.
Referenced by ui_but_copy(), and ui_but_paste().
| void ui_but_hsv_set | ( | uiBut * | but | ) |
For picker, while editing HSV.
Definition at line 227 of file interface_region_color_picker.cc.
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 160 of file interface_query.cc.
References uiBut::drawflag, uiBut::flag, uiBut::icon, uiBut::iconadd, UI_BUT_ICON_PREVIEW, UI_BUT_ICON_REVERSE, UI_HAS_ICON, and ui_icon_is_preview_deferred_loading().
Referenced by menu_items_from_ui_create_item_from_button(), widget_draw_text_icon(), and widget_preview_tile().
| bool ui_but_is_bool | ( | const uiBut * | but | ) |
Definition at line 2636 of file interface.cc.
References ButToggle, Checkbox, CheckboxN, ELEM, IconToggle, IconToggleN, PROP_BOOLEAN, PROP_ENUM, RNA_property_type(), uiBut::rnaprop, Row, Tab, Toggle, ToggleN, and uiBut::type.
Referenced by ui_drag_toggle_but_is_supported(), and ui_drag_toggle_but_pushed_state().
| bool ui_but_is_color_gamma | ( | uiBut * | but | ) |
Returns true if the button is for a color with gamma baked in, or if it's a color picker for such a button.
Definition at line 107 of file interface_region_color_picker.cc.
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_but_is_color_gamma(), ui_colorpicker_hex_rna_cb(), ui_draw_but_HSVCIRCLE(), ui_draw_but_HSVCUBE(), ui_perceptual_to_scene_linear_space(), ui_scene_linear_to_perceptual_space(), ui_tooltip_data_from_button_or_extra_icon(), and widget_swatch().
Check if this button is similar enough to be grouped with another.
Definition at line 2694 of file interface.cc.
References uiBut::pointype, RNA_property_subtype(), RNA_property_type(), uiBut::rnapoin, uiBut::rnaprop, PointerRNA::type, and uiBut::type.
Referenced by ui_multibut_states_tag().
| bool ui_but_is_cursor_warp | ( | const uiBut * | but | ) |
Definition at line 583 of file interface_query.cc.
References Curve, CurveProfile, ELEM, HsvCircle, HsvCube, Num, NumSlider, TrackPreview, uiBut::type, U, 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 39 of file interface_query.cc.
References ELEM, Label, ListBox, Progress, Roundbox, Sepr, SeprLine, and uiBut::type.
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 50 of file interface_query.cc.
References ELEM, Num, NumSlider, SearchMenu, Text, and uiBut::type.
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 597 of file interface_handlers.cc.
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 2615 of file interface.cc.
References Float, uiBut::poin, uiBut::pointype, PROP_FLOAT, RNA_property_type(), and uiBut::rnaprop.
Referenced by button_activate_state(), 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, |
| bool | labeledit ) |
Definition at line 114 of file interface_query.cc.
References ui_but_is_interactive_ex().
Referenced by ui_but_find_rect_over(), ui_drag_toggle_set_xy_xy(), ui_handle_button_over(), and ui_multibut_states_tag().
| bool ui_but_is_interactive_ex | ( | const uiBut * | but, |
| const bool | labeledit, | ||
| const bool | for_tooltip ) |
Can we mouse over the button or is it hidden/disabled/layout.
Definition at line 68 of file interface_query.cc.
References ELEM, uiBut::emboss, uiBut::flag, blender::ui::AbstractViewItem::is_interactive(), Label, ListBox, ListRow, blender::ui::None, blender::ui::NoneOrStatus, PreviewTile, Roundbox, Sepr, SeprLine, Text, uiBut::tip, uiBut::tip_custom_func, uiBut::tip_func, uiBut::tip_quick_func, uiBut::type, ui_but_drag_is_draggable(), UI_HIDDEN, UI_SCROLLED, uiButViewItem::view_item, and ViewItem.
Referenced by ui_but_find_mouse_over_ex(), and ui_but_is_interactive().
| bool ui_but_is_popover_once_compat | ( | const uiBut * | but | ) |
Definition at line 129 of file interface_query.cc.
References But, Decorator, ELEM, uiBut::type, 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 2451 of file interface.cc.
References ui_but_is_pushed_ex(), and UI_BUT_VALUE_UNSET.
Referenced by ui_drag_toggle_but_pushed_state().
| int ui_but_is_pushed_ex | ( | uiBut * | but, |
| double * | value ) |
Check if the button is pushed, this is only meaningful for some button types.
Definition at line 2354 of file interface.cc.
References uiBut::bit, uiBut::bitnr, But, ButToggle, Checkbox, CheckboxN, Color, uiBut::custom_data, PointerRNA::data, Decorator, uiBut::drawflag, ELEM, uiBut::hardmax, uiBut::hardmin, HotkeyEvent, IconToggle, IconToggleN, blender::ui::AbstractViewItem::is_active(), KeyEvent, ListRow, uiBut::optype, PROP_ENUM_FLAG, PROP_POINTER, uiBut::pushed_state_func, RNA_property_flag(), RNA_property_pointer_get(), RNA_property_type(), uiBut::rnapoin, uiBut::rnaprop, Row, state, Tab, Toggle, ToggleN, uiBut::type, UI_BITBUT_TEST, UI_BUT_CHECKBOX_INVERT, UI_GET_BUT_VALUE_INIT, uiButViewItem::view_item, and ViewItem.
Referenced by ui_but_is_pushed(), and ui_but_update_select_flag().
| bool ui_but_is_rna_valid | ( | uiBut * | but | ) |
Definition at line 2720 of file interface.cc.
References uiBut::drawstr, printf, 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 55 of file interface_query.cc.
References ButToggle, Checkbox, CheckboxN, ELEM, IconToggle, IconToggleN, Row, Toggle, ToggleN, and uiBut::type.
Referenced by ui_but_is_popover_once_compat().
| bool ui_but_is_unit | ( | const uiBut * | but | ) |
Definition at line 2664 of file interface.cc.
References uiBut::block, ELEM, PROP_UNIT_NONE, PROP_UNIT_ROTATION, PROP_UNIT_TIME, PROP_UNIT_TIME_ABSOLUTE, 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 572 of file interface_query.cc.
References uiBlock::buttons, i, Vector< T, InlineBufferCapacity, Allocator >::size(), and ui_but_is_editable().
Referenced by ui_handle_menu_event(), ui_list_find_mouse_over_ex(), and uiTemplateRecentFiles().
| int ui_but_menu_direction | ( | uiBut * | but | ) |
Definition at line 4545 of file interface_handlers.cc.
References uiBut::active, and data.
Referenced by widget_roundbox_set().
| bool ui_but_menu_draw_as_popover | ( | const uiBut * | but | ) |
Definition at line 4768 of file interface.cc.
References uiBut::menu_create_func, and ui_def_but_rna__panel_type().
Referenced by button_activate_state(), ui_block_open_begin(), ui_popup_block_position(), and widget_roundbox_set().
| int ui_but_menu_step | ( | uiBut * | but, |
| int | direction ) |
Definition at line 62 of file interface_region_menu_popup.cc.
References uiBut::block, uiBlock::evil_C, uiBut::menu_step_func, uiBut::poin, printf, 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 53 of file interface_region_menu_popup.cc.
References BLI_assert, Menu, uiBut::menu_step_func, PROP_ENUM, RNA_property_type(), uiBut::rnaprop, and uiBut::type.
Referenced by ui_but_menu_step(), and ui_but_supports_cycling().
Definition at line 551 of file interface_query.cc.
References uiBut::block, uiBlock::but_index(), uiBlock::buttons, i, and ui_but_is_editable().
Referenced by ui_handle_menu_event(), and ui_list_find_mouse_over_ex().
Definition at line 1730 of file interface.cc.
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 186 of file interface_query.cc.
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().
| const char * ui_but_placeholder_get | ( | uiBut * | but | ) |
Get the hint that describes the expected value when empty.
Definition at line 6128 of file interface.cc.
References BLT_I18NCONTEXT_ID_ID, BLT_I18NCONTEXT_ID_WINDOWMANAGER, CTX_IFACE_, uiBut::icon, uiBut::placeholder, rna_enum_id_type_items, RNA_enum_name(), RNA_property_pointer_type(), RNA_struct_identifier(), RNA_struct_ui_name(), RNA_type_to_ID_code(), uiBut::rnapoin, uiBut::rnaprop, SearchMenu, STREQ, Text, and uiBut::type.
Referenced by widget_draw_text().
Definition at line 540 of file interface_query.cc.
References uiBut::block, uiBlock::but_index(), uiBlock::buttons, and ui_but_is_editable().
Referenced by ui_handle_menu_event(), and ui_list_find_mouse_over_ex().
| void ui_but_range_set_hard | ( | uiBut * | but | ) |
Definition at line 3495 of file interface.cc.
References uiBut::hardmax, uiBut::hardmin, PROP_FLOAT, PROP_INT, RNA_property_float_range(), RNA_property_int_range(), RNA_property_type(), uiBut::rnapoin, and uiBut::rnaprop.
Referenced by ui_handle_button_event().
| void ui_but_range_set_soft | ( | uiBut * | but | ) |
Definition at line 3517 of file interface.cc.
References CLAMP, e, FLT_MAX, uiBut::hardmax, uiBut::hardmin, 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, UI_BUT_POIN_TYPES, and ui_but_value_get().
Referenced by ui_but_update_ex(), and ui_handle_button_event().
Definition at line 766 of file interface.cc.
References b, and ui_but_rna_equals_ex().
Referenced by ui_but_equals_old(), and ui_list_contains_row().
| bool ui_but_rna_equals_ex | ( | const uiBut * | but, |
| const PointerRNA * | ptr, | ||
| const PropertyRNA * | prop, | ||
| int | index ) |
Definition at line 771 of file interface.cc.
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 | ( | uiBut * | but, |
| const char * | menu_type ) |
Definition at line 4788 of file interface.cc.
References BLI_assert, BLI_strdup(), uiBut::func_argN, uiBut::func_argN_copy_fn, uiBut::func_argN_free_fn, MEM_dupallocN(), MEM_freeN(), Menu, uiBut::menu_create_func, uiBut::poin, uiBut::type, ui_def_but_rna__menu(), and ui_def_but_rna__menu_type().
Referenced by uiLayout::prop_with_menu().
| void ui_but_rna_menu_convert_to_panel_type | ( | uiBut * | but, |
| const char * | panel_type ) |
Definition at line 4757 of file interface.cc.
References BLI_assert, BLI_strdup(), Color, ELEM, uiBut::func_argN, uiBut::func_argN_copy_fn, uiBut::func_argN_free_fn, MEM_dupallocN(), MEM_freeN(), Menu, uiBut::menu_create_func, uiBut::type, and ui_def_but_rna__panel_type().
Referenced by uiLayout::prop_with_popover().
| PropertyScaleType ui_but_scale_type | ( | const uiBut * | but | ) |
Definition at line 2628 of file interface.cc.
References PROP_SCALE_LINEAR, RNA_property_ui_scale(), and uiBut::rnaprop.
Referenced by ui_do_but_NUM(), ui_do_but_SLI(), ui_numedit_apply_snapf(), ui_numedit_begin(), ui_numedit_but_NUM(), ui_numedit_but_SLI(), and widget_numslider().
| void ui_but_search_refresh | ( | uiButSearch * | but | ) |
XXX weak: search_func adds all partial matches.
Definition at line 1206 of file interface_region_search.cc.
References uiBut::block, uiBut::drawstr, uiBlock::evil_C, uiBut::hardmax, i, 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().
Definition at line 9166 of file interface_handlers.cc.
References C, uiHandleButtonData::region, uiBut::semi_modal_state, and with_but_active_as_semi_modal().
Referenced by ui_but_free().
Use handling code to set a string for the button. Handles the case where the string is set for a search button while the search menu is open, so the results are updated accordingly. This is basically the same as pasting the string into the button.
Definition at line 3052 of file interface_handlers.cc.
References uiBut::active, BLI_assert, button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_TEXT_EDITING, C, uiBut::changed, uiBut::flag, uiHandleButtonData::searchbox, SearchMenu, uiHandleButtonData::text_edit, uiBut::type, UI_BUT_DISABLED, ui_searchbox_update(), and ui_textedit_string_set().
Referenced by drop_name_invoke(), ui_but_paste_text(), and ui_do_but_text_value_cycle().
| bool ui_but_string_eval_number | ( | bContext * | C, |
| const uiBut * | but, | ||
| const char * | str, | ||
| double * | r_value ) |
Definition at line 3295 of file interface.cc.
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_apply_but_NUM(), ui_but_paste_numeric_value(), and ui_but_string_set().
| void void ui_but_string_get | ( | uiBut * | but, |
| char * | str, | ||
| size_t | str_maxncpy ) |
Definition at line 3161 of file interface.cc.
References str, and ui_but_string_get_ex().
Referenced by ui_but_copy_text(), ui_but_update_ex(), ui_colorpicker_hex_rna_cb(), and ui_tooltip_data_from_button_or_extra_icon().
| 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_maxncpy returns 0).
| r_str_size | size of the returned string (including terminator). |
Definition at line 3166 of file interface.cc.
References BLI_assert, BLI_strdup(), BLI_strdupn(), uiBut::block, ELEM, uiBlock::evil_C, 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, SearchMenu, str, Text, uiBut::type, and UNLIKELY.
Referenced by ui_do_but_text_value_cycle(), and ui_textedit_begin().
| void ui_but_string_get_ex | ( | uiBut * | but, |
| char * | str, | ||
| size_t | str_maxncpy, | ||
| int | float_precision, | ||
| bool | use_exp_float, | ||
| bool * | r_use_exp_float ) |
| float_precision | For number buttons the precision to use or -1 to fall back to the button default. |
| use_exp_float | Use exponent representation of floats when out of reasonable range (outside of 1e3/1e-3). |
References ATTR_WARN_UNUSED_RESULT, C, flag, ot, and str.
| int ui_but_string_get_maxncpy | ( | uiBut * | but | ) |
Definition at line 2898 of file interface.cc.
References ELEM, uiBut::hardmax, SearchMenu, Text, uiBut::type, and UI_MAX_DRAW_STR.
Referenced by ui_do_but_text_value_cycle(), ui_searchbox_autocomplete(), and ui_textedit_begin().
Definition at line 3322 of file interface.cc.
References BLI_assert, BLI_strncpy(), BLI_strncpy_utf8(), uiBut::block, C, CTX_wm_manager(), CTX_wm_window(), uiBut::custom_data, PointerRNA::data, ELEM, uiBlock::evil_C, floor, uiBut::hardmax, uiBut::hardmin, uiButSearch::item_active, PointerRNA::owner_id, uiBut::poin, PointerRNA_NULL, PROP_ENUM, PROP_POINTER, PROP_STRING, ptr, uiBut::rename_full_func, uiBut::rename_full_new, RNA_pointer_create_discrete(), 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, SearchMenu, str, Tab, Text, uiBut::type, 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 2729 of file interface.cc.
References Color, ELEM, ListBox, Menu, uiBut::menu_step_func, Num, NumSlider, Row, uiBut::type, 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[128], |
| uiBut * | but, | ||
| bool | restore ) |
| size_t ui_but_tip_len_only_first_line | ( | const uiBut * | but | ) |
Definition at line 630 of file interface_query.cc.
References blender::StringRefBase::find(), blender::StringRefBase::not_found, blender::StringRefBase::size(), and uiBut::tip.
Referenced by ui_apply_but_undo(), and ui_list_find_mouse_over_ex().
| void ui_but_to_pixelrect | ( | rcti * | rect, |
| const ARegion * | region, | ||
| const uiBlock * | block, | ||
| const uiBut * | but ) |
Project button or block (but==nullptr) to pixels in region-space.
Definition at line 2204 of file interface.cc.
References uiBlock::rect, uiBut::rect, and ui_to_pixelrect().
Referenced by button_section_bounds_calc(), UI_block_draw(), and ui_update_flexible_spacing().
| void ui_but_update | ( | uiBut * | but | ) |
Definition at line 4174 of file interface.cc.
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_func_pushed_state_set(), ui_but_update_and_icon_set(), UI_context_active_but_prop_handle(), 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_rgba(), uiDefBlockBut(), uiDefBlockButN(), uiDefBut(), uiDefButImage(), uiDefButO_ptr(), uiDefButR(), uiDefButR_prop(), uiDefIconBlockBut(), uiDefIconMenuBut(), uiDefIconPreviewBut(), uiDefIconTextMenuBut(), uiDefMenuBut(), and uiDefSearchBut().
| void ui_but_update_edited | ( | uiBut * | but | ) |
Definition at line 4179 of file interface.cc.
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().
In some cases we may want to update the view (View2D) in-between layout definition and drawing. E.g. to make sure a button is visible while editing.
Definition at line 9418 of file interface_handlers.cc.
References uiBut::active, uiBut::block, C, uiBut::changed, data, uiHandleButtonData::region, ui_block_active_but_get(), and UI_but_ensure_in_view().
Referenced by UI_blocklist_update_view_for_buttons().
For buttons pointing to color for example.
Definition at line 2489 of file interface.cc.
References BLI_assert, Char, CLOG_WARN, copy_v3_v3(), uiBut::editvec, Float, float, LOG, normalize_v3(), uiBut::poin, uiBut::pointype, PROP_FLOAT, RNA_property_array_length(), RNA_property_float_get_array_at_most(), RNA_property_type(), uiBut::rnapoin, uiBut::rnaprop, uiBut::type, Unitvec, and zero_v3().
Referenced by ui_block_open_begin(), ui_but_copy_color(), 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_tooltip_data_from_button_or_extra_icon(), and widget_swatch().
Definition at line 2527 of file interface.cc.
References BLI_assert, Char, copy_v3_v3(), uiBut::editvec, Float, uiBut::poin, uiBut::pointype, PROP_FLOAT, RNA_property_array_length(), RNA_property_float_set_array_at_most(), RNA_property_type(), uiBut::rnapoin, and uiBut::rnaprop.
Referenced by ui_apply_but_VEC(), ui_but_hsv_set(), ui_do_but_COLOR(), ui_do_but_HSVCIRCLE(), ui_do_but_HSVCUBE(), and ui_numedit_but_HSVCIRCLE().
Definition at line 2553 of file interface.cc.
References BLI_assert, Char, CLOG_WARN, copy_v4_v4(), uiBut::editvec, Float, float, LOG, uiBut::poin, uiBut::pointype, PROP_FLOAT, RNA_property_array_length(), RNA_property_float_get_array_at_most(), RNA_property_type(), uiBut::rnapoin, uiBut::rnaprop, and zero_v4().
Referenced by ui_but_drag_init(), and ui_colorpicker_wheel_cb().
Definition at line 2588 of file interface.cc.
References BLI_assert, Char, copy_v4_v4(), uiBut::editvec, Float, uiBut::poin, uiBut::pointype, PROP_FLOAT, RNA_property_array_length(), RNA_property_float_set_array_at_most(), RNA_property_type(), uiBut::rnapoin, and uiBut::rnaprop.
Referenced by ui_colorpicker_wheel_cb(), and ui_update_color_picker_buts_rgba().
| double ui_but_value_get | ( | uiBut * | but | ) |
Definition at line 2737 of file interface.cc.
References BLI_assert, Char, PointerRNA::data, uiBut::editval, Float, Int, 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, and Short.
Referenced by ui_apply_but_NUM(), ui_apply_but_TOG(), ui_but_range_set_soft(), UI_but_rna_enum_item_get(), ui_but_string_get_ex(), ui_multibut_add(), ui_numedit_begin_set_values(), widget_numslider(), and widget_scroll().
| void ui_but_value_set | ( | uiBut * | but, |
| double | value ) |
Definition at line 2802 of file interface.cc.
References Char, uiBut::editval, Float, float, Int, 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(), 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(), and ui_multibut_restore().
Definition at line 29 of file interface_button_group.cc.
References Vector< T, InlineBufferCapacity, Allocator >::append(), uiBlock::button_groups, uiButtonGroup::buttons, Vector< T, InlineBufferCapacity, Allocator >::is_empty(), Vector< T, InlineBufferCapacity, Allocator >::last(), and ui_block_new_button_group().
Referenced by blender::ui::LayoutInternal::layout_add_but().
| void ui_button_group_replace_but_ptr | ( | uiBlock * | block, |
| const uiBut * | old_but_ptr, | ||
| uiBut * | new_but ) |
Definition at line 39 of file interface_button_group.cc.
References Vector< T, InlineBufferCapacity, Allocator >::begin(), uiBlock::button_groups, uiButtonGroup::buttons, Vector< T, InlineBufferCapacity, Allocator >::end(), and ptr.
Referenced by ui_but_change_type(), and ui_but_update_from_old_block().
Definition at line 95 of file interface_region_color_picker.cc.
References hsl_to_rgb_v(), hsv_to_rgb_v(), U, and USER_CP_CIRCLE_HSL.
Referenced by ui_but_hsv_set(), ui_colorpicker_hsv_linear_slider_update_cb(), ui_colorpicker_hsv_perceptual_slider_update_cb(), ui_colorpicker_wheel_cb(), ui_do_but_HSVCIRCLE(), ui_draw_but_HSVCIRCLE(), and ui_numedit_but_HSVCIRCLE().
Definition at line 83 of file interface_region_color_picker.cc.
References rgb_to_hsl_v(), rgb_to_hsv_v(), U, and USER_CP_CIRCLE_HSL.
Referenced by ui_color_picker_update_from_rgb_linear(), and ui_colorpicker_rgb_perceptual_slider_update_cb().
Definition at line 69 of file interface_region_color_picker.cc.
References rgb_to_hsl_compat_v(), rgb_to_hsv_compat_v(), U, and USER_CP_CIRCLE_HSL.
Referenced by ui_color_picker_update_from_rgb_linear(), ui_colorpicker_wheel_cb(), ui_do_but_HSVCIRCLE(), ui_draw_but_HSVCIRCLE(), and ui_numedit_but_HSVCIRCLE().
| void ui_def_but_icon | ( | uiBut * | but, |
| int | icon, | ||
| int | flag ) |
Definition at line 4472 of file interface.cc.
References uiBut::block, uiBut::drawflag, uiBlock::evil_C, flag, uiBut::flag, uiBut::icon, uiBut::str, UI_BUT_ICON_LEFT, UI_BUT_ICON_PREVIEW, and ui_icon_ensure_deferred().
Referenced by blender::ui::TreeViewLayoutBuilder::build_from_tree(), blender::ui::PreviewGridItem::build_grid_tile_button(), template_add_button_search_menu(), blender::ui::template_asset_shelf_popover(), 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(), uiDefIconPreviewBut(), 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 4487 of file interface.cc.
References uiBut::drawflag, uiBut::flag, uiBut::icon, UI_BUT_ICON_LEFT, and UI_HAS_ICON.
Referenced by uiLayout::prop().
| void ui_draw_aligned_panel | ( | const ARegion * | region, |
| const uiStyle * | style, | ||
| const uiBlock * | block, | ||
| const rcti * | rect, | ||
| bool | show_pin, | ||
| bool | show_background, | ||
| bool | region_search_filter_active ) |
Draw a panel integrated in buttons-window, tool/property lists etc.
Definition at line 1336 of file interface_panel.cc.
References uiBlock::aspect, PanelType::flag, floor, uiBlock::panel, panel_custom_data_active_get(), panel_draw_aligned_backdrop(), panel_draw_aligned_widgets(), panel_draw_border(), PANEL_TYPE_NO_HEADER, PNL_HEADER, Panel::sizex, Panel::sizey, Panel::type, UI_panel_should_show_background(), rcti::xmax, rcti::xmin, and rcti::ymax.
Referenced by UI_block_draw().
| void ui_draw_but | ( | const bContext * | C, |
| ARegion * | region, | ||
| uiStyle * | style, | ||
| uiBut * | but, | ||
| rcti * | rect ) |
Conversion from old to new buttons, so still messy.
Definition at line 5052 of file interface_widgets.cc.
References uiBlock::aspect, BLI_assert, BLI_rcti_pad(), BLI_rcti_size_y(), Block, uiBut::block, But, ButMenu, ButToggle, C, Checkbox, CheckboxN, uiBut::col, Color, ColorBand, copy_v4_v4_uchar(), Curve, CurveProfile, uiWidgetType::custom, Decorator, uiWidgetType::draw, uiBut::drawflag, uiBut::drawstr, uiBut::editstr, ELEM, blender::ui::Emboss, uiBut::emboss, Extra, uiBlock::flag, uiBut::flag, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, uiButHSVCube::gradient_type, Grip, Histogram, uiBut::hold_func, HsvCircle, HsvCube, uiBut::icon, Image, Label, ListBox, ListRow, Menu, NodeSocket, blender::ui::None, blender::ui::NoneOrStatus, Num, NumSlider, padding(), blender::ui::PieMenu, Popover, popover_widget_type(), PreviewTile, Progress, blender::ui::Pulldown, Pulldown, Roundbox, Row, Scroll, SearchMenu, Sepr, SeprLine, SeprSpacer, state, uiWidgetType::state, Tab, Text, uiWidgetColors::text, uiWidgetType::text, uiBlock::theme_style, Toggle, ToggleN, TrackPreview, bTheme::tui, uiBut::type, UI_BLOCK_NO_DRAW_OVERRIDDEN_STATE, UI_BLOCK_POPOVER_ONCE, UI_BLOCK_THEME_STYLE_POPUP, UI_BUT_ACTIVE_DEFAULT, UI_BUT_BOX_ITEM, UI_BUT_DISABLED, UI_BUT_DRAG_MULTI, ui_but_drag_multi_edit_get(), UI_BUT_ICON_PREVIEW, UI_BUT_INACTIVE, UI_BUT_INDETERMINATE, ui_but_is_popover_once_compat(), UI_but_is_tool(), UI_BUT_NO_TEXT_PADDING, UI_BUT_NODE_LINK, UI_BUT_OVERRIDDEN, UI_BUT_TEXT_LEFT, UI_BUT_TEXT_RIGHT, ui_draw_but_COLORBAND(), ui_draw_but_CURVE(), ui_draw_but_CURVEPROFILE(), ui_draw_but_HISTOGRAM(), ui_draw_but_HSV_v(), ui_draw_but_HSVCIRCLE(), ui_draw_but_HSVCUBE(), ui_draw_but_IMAGE(), ui_draw_but_TRACKPREVIEW(), ui_draw_but_VECTORSCOPE(), ui_draw_but_WAVEFORM(), ui_draw_separator(), UI_GetTheme(), UI_GRAD_L_ALT, UI_GRAD_V_ALT, UI_HAS_ICON, UI_HOVER, UI_SCALE_FAC, UI_SEARCH_FILTER_NO_MATCH, UI_SELECT, UI_SELECT_DRAW, ui_widget_color_disabled(), UI_WTYPE_BOX, UI_WTYPE_CHECKBOX, UI_WTYPE_EXEC, UI_WTYPE_ICON, UI_WTYPE_ICON_LABEL, UI_WTYPE_LABEL, UI_WTYPE_LISTITEM, UI_WTYPE_MENU_ITEM, UI_WTYPE_MENU_ITEM_PIE, UI_WTYPE_MENU_ITEM_UNPADDED, UI_WTYPE_MENU_NODE_LINK, UI_WTYPE_NAME, UI_WTYPE_NODESOCKET, UI_WTYPE_NUMBER, UI_WTYPE_PREVIEW_TILE, UI_WTYPE_PROGRESS, UI_WTYPE_PULLDOWN, UI_WTYPE_RADIO, UI_WTYPE_REGULAR, UI_WTYPE_SCROLL, UI_WTYPE_SLIDER, UI_WTYPE_SWATCH, UI_WTYPE_TAB, UI_WTYPE_TOGGLE, UI_WTYPE_TOOLBAR_ITEM, UI_WTYPE_UNITVEC, UI_WTYPE_VIEW_ITEM, Unitvec, UNLIKELY, Vectorscope, ViewItem, Waveform, uiWidgetType::wcol, ThemeUI::wcol_box, ThemeUI::wcol_curve, ThemeUI::wcol_menu_back, ThemeUI::wcol_menu_item, ThemeUI::wcol_regular, uiWidgetType::wcol_theme, uiStyle::widget, widget_draw_extra_mask(), widget_draw_text_icon(), widget_roundbox_set(), widget_state(), widget_state_option_menu(), widget_type(), rcti::xmax, and rcti::xmin.
Referenced by UI_block_draw().
| void ui_draw_but_COLORBAND | ( | uiBut * | but, |
| const uiWidgetColors * | wcol, | ||
| const rcti * | rect ) |
Definition at line 1369 of file interface_draw.cc.
References BKE_colorband_evaluate(), uiBut::block, ColorBand::cur, ColorBand::data, uiButColorBand::edit_coba, float, GPU_blend(), GPU_BLEND_ALPHA, GPU_PRIM_TRI_STRIP, GPU_SHADER_2D_CHECKER, GPU_SHADER_3D_SMOOTH_COLOR, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), IMB_colormanagement_scene_linear_to_display_v3(), immAttr4f(), immAttr4fv(), immBegin(), immBindBuiltinProgram(), immEnd(), immRectf(), immUnbindProgram(), immUniform1i(), immUniform4f(), immUniformColor4ubv(), immVertex2f(), immVertex2fv(), immVertexFormat(), uiWidgetColors::outline, uiBut::poin, CBData::pos, pos, CBData::r, ColorBand::tot, U, UI_ALPHA_CHECKER_DARK, UI_ALPHA_CHECKER_LIGHT, ui_block_cm_display_get(), ui_draw_colorband_handle(), v2, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by ui_draw_but().
| void ui_draw_but_CURVE | ( | ARegion * | region, |
| uiBut * | but, | ||
| const uiWidgetColors * | wcol, | ||
| const rcti * | rect ) |
Definition at line 1598 of file interface_draw.cc.
References ARRAY_SET_ITEMS, uiBlock::aspect, BKE_curvemapping_changed(), BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_isect(), BLI_rcti_size_x(), BLI_rcti_size_y(), uiBut::block, CurveMapping::clipr, CurveMapping::cm, CM_TABLE, col, CUMA_DO_CLIP, CUMA_DRAW_CFRA, CUMA_DRAW_SAMPLE, CUMA_EXTEND_EXTRAPOLATE, CUMA_SELECT, CurveMapping::cur, CurveMapping::curr, CurveMap::curve, uiButCurveMapping::edit_cumap, CurveMap::ext_in, CurveMap::ext_out, CurveMapping::flag, flag, uiBut::flag, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_line_smooth(), GPU_line_width(), GPU_PRIM_LINE_STRIP, GPU_PRIM_LINES, GPU_PRIM_POINTS, GPU_PRIM_TRI_STRIP, GPU_program_point_size(), GPU_scissor(), GPU_scissor_get(), GPU_SHADER_2D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_AA, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), uiButCurveMapping::gradient_type, i, IMB_colormanagement_get_luminance(), imm_draw_box_wire_2d(), immBegin(), immBindBuiltinProgram(), immEnd(), immRectf(), immUnbindProgram(), immUniform1f(), immUniform4fv(), immUniformColor3ub(), immUniformColor3ubv(), immUniformColor3ubvAlpha(), immUniformColor4fv(), immVertex2f(), immVertexFormat(), uiWidgetColors::inner, uiWidgetColors::inner_sel, uiWidgetColors::item, linearrgb_to_srgb_v3_v3(), max_ff(), min_ff(), uiWidgetColors::outline, uiWidgetColors::outline_sel, uiBut::poin, pos, rgb_to_hsv_v(), rgba_uchar_to_float(), CurveMapping::sample, CurveMap::table, uiWidgetColors::text, uiWidgetColors::text_sel, TH_AXIS_X, TH_AXIS_Y, CurveMap::totpoint, U, ui_block_cm_display_get(), UI_BUT_INACTIVE, ui_draw_but_curve_grid(), ui_draw_gradient(), UI_GetThemeColor3ubv(), UI_GRAD_H, UI_SCALE_FAC, ARegion::winx, ARegion::winy, CurveMapPoint::x, rctf::xmax, rcti::xmax, rctf::xmin, rcti::xmin, CurveMapPoint::y, rctf::ymax, rcti::ymax, rctf::ymin, and rcti::ymin.
Referenced by ui_draw_but().
| void ui_draw_but_CURVEPROFILE | ( | ARegion * | region, |
| uiBut * | but, | ||
| const uiWidgetColors * | wcol, | ||
| const rcti * | rect ) |
Draws the curve profile widget. Somewhat similar to ui_draw_but_CURVE.
Definition at line 1953 of file interface_draw.cc.
References uiBlock::aspect, BKE_curveprofile_table_size(), BKE_curveprofile_update(), BLI_polyfill_calc(), BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_isect(), BLI_rcti_size_x(), BLI_rcti_size_y(), uiBut::block, CurveProfile::clip_rect, uiButCurveProfile::edit_profile, CurveProfile::flag, flag, float, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_line_smooth(), GPU_line_width(), GPU_polygon_smooth(), GPU_PRIM_LINE_STRIP, GPU_PRIM_LINES, GPU_PRIM_POINTS, GPU_PRIM_TRIS, GPU_program_point_size(), GPU_scissor(), GPU_scissor_get(), GPU_SHADER_2D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_AA, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), CurveProfilePoint::h1_loc, CurveProfilePoint::h2_loc, i, imm_draw_box_wire_2d(), immBegin(), immBindBuiltinProgram(), immEnd(), immRectf(), immUnbindProgram(), immUniform1f(), immUniform4fv(), immUniformColor3ubv(), immUniformColor3ubvAlpha(), immUniformColor4ubv(), immVertex2f(), immVertexFormat(), uiWidgetColors::inner, uiWidgetColors::inner_sel, uiWidgetColors::item, max_ff(), MEM_freeN(), MEM_mallocN(), MEM_SAFE_FREE, min_ff(), uiWidgetColors::outline, uiWidgetColors::outline_sel, CurveProfile::path, CurveProfile::path_len, uiBut::poin, point_draw_handles(), pos, PROF_H1_SELECT, PROF_H2_SELECT, PROF_SELECT, PROF_UPDATE_NONE, PROF_USE_CLIP, rgba_uchar_to_float(), CurveProfile::segments, CurveProfile::segments_len, CurveProfile::table, uiWidgetColors::text, uiWidgetColors::text_sel, U, ui_draw_but_curve_grid(), UI_SCALE_FAC, CurveProfile::view_rect, ARegion::winx, ARegion::winy, CurveProfilePoint::x, rctf::xmax, rcti::xmax, rctf::xmin, rcti::xmin, CurveProfilePoint::y, rctf::ymax, rcti::ymax, rctf::ymin, and rcti::ymin.
Referenced by ui_draw_but().
| void ui_draw_but_HISTOGRAM | ( | ARegion * | region, |
| uiBut * | but, | ||
| const uiWidgetColors * | wcol, | ||
| const rcti * | recti ) |
Definition at line 498 of file interface_draw.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_isect(), BLI_rcti_size_x(), BLI_rcti_size_y(), Histogram::data_a, Histogram::data_b, Histogram::data_g, Histogram::data_luma, Histogram::data_r, draw_scope_end(), ELEM, Histogram::flag, float, GPU_blend(), GPU_BLEND_ALPHA, GPU_PRIM_LINES, GPU_scissor(), GPU_scissor_get(), GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), HISTO_FLAG_LINE, HISTO_MODE_ALPHA, HISTO_MODE_B, HISTO_MODE_G, HISTO_MODE_LUMA, HISTO_MODE_R, HISTO_MODE_RGB, histogram_draw_one(), HISTOGRAM_TOT_GRID_LINES, i, immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor4f(), immVertex2f(), immVertexFormat(), Histogram::mode, uiBut::poin, pos, TH_PREVIEW_BACK, UI_CNR_ALL, UI_draw_roundbox_4fv(), UI_draw_roundbox_corner_set(), UI_GetThemeColor4fv(), UNPACK4, w(), ARegion::winx, ARegion::winy, Histogram::x_resolution, rctf::xmax, rcti::xmax, rctf::xmin, rcti::xmin, Histogram::ymax, rctf::ymax, rcti::ymax, rctf::ymin, and rcti::ymin.
Referenced by ui_draw_but().
| void ui_draw_but_IMAGE | ( | ARegion * | region, |
| uiBut * | but, | ||
| const uiWidgetColors * | wcol, | ||
| const rcti * | rect ) |
Definition at line 327 of file interface_draw.cc.
References BLI_rcti_size_x(), BLI_rcti_size_y(), Box, ImBuf::byte_buffer, col, uiBut::col, ImBufByteBuffer::data, GPU_blend(), GPU_BLEND_ALPHA_PREMULT, GPU_BLEND_NONE, GPU_scissor(), GPU_scissor_get(), GPU_SHADER_3D_IMAGE_COLOR, IMB_scale(), immDrawPixelsTexSetup(), immDrawPixelsTexTiled(), uiBut::poin, rgba_uchar_to_float(), state, w(), ImBuf::x, rcti::xmin, ImBuf::y, and rcti::ymin.
Referenced by ui_draw_but().
| void ui_draw_but_TAB_outline | ( | const rcti * | rect, |
| float | rad, | ||
| uchar | highlight[3], | ||
| uchar | highlight_fade[3] ) |
Definition at line 234 of file interface_draw.cc.
References col, GPU_PRIM_LINE_STRIP, GPU_SHADER_3D_SMOOTH_COLOR, GPU_vertformat_attr_add(), immAttr4ub(), immBeginAtMost(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immVertex2f(), immVertexFormat(), mul_v2_fl(), pos, roundboxtype, U, UI_CNR_BOTTOM_LEFT, UI_CNR_BOTTOM_RIGHT, UI_CNR_TOP_LEFT, UI_CNR_TOP_RIGHT, UNPACK3, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by widget_tab().
| void ui_draw_but_TRACKPREVIEW | ( | ARegion * | region, |
| uiBut * | but, | ||
| const uiWidgetColors * | wcol, | ||
| const rcti * | recti ) |
Definition at line 2296 of file interface_draw.cc.
References BKE_tracking_sample_pattern(), BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_isect(), BLI_rcti_size_x(), BLI_rcti_size_y(), ImBuf::byte_buffer, col, ImBufByteBuffer::data, ImBufFloatBuffer::data, draw_scope_end(), float, ImBuf::float_buffer, MovieClipScopes::frame_height, MovieClipScopes::frame_width, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_matrix_pop(), GPU_matrix_push(), GPU_matrix_translate_2f(), GPU_PRIM_LINES, GPU_scissor(), GPU_scissor_get(), GPU_SHADER_3D_FLAT_COLOR, GPU_SHADER_3D_IMAGE_COLOR, GPU_vertformat_attr_add(), i, IMB_byte_from_float(), IMB_freeImBuf(), immAttr4fv(), immBegin(), immBindBuiltinProgram(), immDrawPixelsTexSetup(), immDrawPixelsTexTiled(), immEnd(), immUnbindProgram(), immVertex2f(), immVertexFormat(), uiBut::poin, pos, state, TH_MARKER_OUTLINE, TH_SEL_MARKER, MovieClipScopes::track, MovieClipScopes::track_disabled, MovieClipScopes::track_pos, MovieClipScopes::track_preview, MovieClipScopes::track_search, UI_CNR_ALL, UI_draw_roundbox_4fv(), UI_draw_roundbox_corner_set(), UI_GetThemeColor4fv(), MovieClipScopes::undist_marker, UNPACK4, MovieClipScopes::use_track_mask, ARegion::winx, ARegion::winy, ImBuf::x, rctf::xmax, rcti::xmax, rctf::xmin, rcti::xmin, ImBuf::y, rctf::ymax, rcti::ymax, rctf::ymin, and rcti::ymin.
Referenced by ui_draw_but().
| void ui_draw_but_UNITVEC | ( | uiBut * | but, |
| const uiWidgetColors * | wcol, | ||
| const rcti * | rect, | ||
| float | radius ) |
Definition at line 1491 of file interface_draw.cc.
References BLI_rcti_size_x(), BLI_rcti_size_y(), copy_v3_v3(), copy_v4_fl4(), GPU_batch_draw(), GPU_batch_preset_sphere(), GPU_batch_program_set_builtin(), GPU_batch_uniformbuf_bind, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_CULL_BACK, GPU_CULL_NONE, GPU_face_culling(), GPU_line_smooth(), GPU_MATRIX_ORTHO_CLIP_NEAR_DEFAULT, GPU_matrix_ortho_set_z(), GPU_matrix_pop(), GPU_matrix_pop_projection(), GPU_matrix_push(), GPU_matrix_push_projection(), GPU_matrix_scale_1f(), GPU_matrix_translate_2f(), GPU_SHADER_3D_UNIFORM_COLOR, GPU_SHADER_SIMPLE_LIGHTING, GPU_uniformbuf_create_ex(), GPU_uniformbuf_free(), GPU_vertformat_attr_add(), imm_draw_circle_wire_2d(), immBindBuiltinProgram(), immUnbindProgram(), immUniformColor3ubv(), immVertexFormat(), uiWidgetColors::inner, SimpleLightingData::l_color, SimpleLightingData::light, min_ff(), pos, size(), ui_but_v3_get(), UI_CNR_ALL, UI_draw_roundbox_3ub_alpha(), UI_draw_roundbox_corner_set(), rctf::xmax, rcti::xmax, rctf::xmin, rcti::xmin, rctf::ymax, rcti::ymax, rctf::ymin, and rcti::ymin.
Referenced by widget_unitvec().
| void ui_draw_but_VECTORSCOPE | ( | ARegion * | region, |
| uiBut * | but, | ||
| const uiWidgetColors * | wcol, | ||
| const rcti * | recti ) |
Definition at line 1009 of file interface_draw.cc.
References angle(), b, BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_isect(), BLI_rcti_size_x(), BLI_rcti_size_y(), BLI_YUV_ITU_BT709, circle_draw_rgb(), col, DEG2RADF, draw_scope_end(), float, GPU_blend(), GPU_BLEND_ADDITIVE, GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_line_smooth(), GPU_line_width(), GPU_matrix_pop(), GPU_matrix_push(), GPU_matrix_scale_1f(), GPU_matrix_translate_2f(), GPU_point_size(), GPU_PRIM_LINE_LOOP, GPU_PRIM_LINES, GPU_PRIM_TRI_FAN, GPU_scissor(), GPU_scissor_get(), GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), i, immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor3f(), immUniformColor4f(), immVertex2f(), immVertexFormat(), Scopes::ok, uiBut::poin, polar_to_x(), polar_to_y(), pos, SCOPES_VEC_U_SCALE, SCOPES_VEC_V_SCALE, SCOPES_VECSCOPE_LUMA, SCOPES_VECSCOPE_RGB, step, TH_PREVIEW_BACK, UI_CNR_ALL, UI_draw_roundbox_4fv(), UI_draw_roundbox_corner_set(), UI_GetThemeColor4fv(), UNPACK4, v, Scopes::vecscope, Scopes::vecscope_alpha, Scopes::vecscope_mode, Scopes::vecscope_rgb, vectorscope_draw_target(), w(), waveform_draw_one(), waveform_draw_rgb(), Scopes::waveform_tot, ARegion::winx, ARegion::winy, x, rctf::xmax, rcti::xmax, rctf::xmin, rcti::xmin, y, rctf::ymax, rcti::ymax, rctf::ymin, rcti::ymin, and yuv_to_rgb().
Referenced by ui_draw_but().
| void ui_draw_but_WAVEFORM | ( | ARegion * | region, |
| uiBut * | but, | ||
| const uiWidgetColors * | wcol, | ||
| const rcti * | recti ) |
Definition at line 690 of file interface_draw.cc.
References BLF_batch_draw_flush(), BLF_color4f(), BLF_default(), BLF_draw_default(), BLI_rctf_size_x(), BLI_rctf_size_y(), BLI_rcti_isect(), BLI_rcti_size_x(), BLI_rcti_size_y(), CLAMP, col, draw_scope_end(), ELEM, float, GPU_blend(), GPU_BLEND_ADDITIVE, GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_matrix_pop(), GPU_matrix_push(), GPU_matrix_scale_2f(), GPU_matrix_translate_2f(), GPU_point_size(), GPU_PRIM_LINES, GPU_scissor(), GPU_scissor_get(), GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), i, immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor3f(), immUniformColor4f(), immVertex2f(), immVertexFormat(), max, min, Scopes::minmax, Scopes::ok, uiBut::poin, pos, SCOPES_WAVEFRM_LUMA, SCOPES_WAVEFRM_RGB, SCOPES_WAVEFRM_RGB_PARADE, SCOPES_WAVEFRM_YCC_601, SCOPES_WAVEFRM_YCC_709, SCOPES_WAVEFRM_YCC_JPEG, SNPRINTF_UTF8, str, TH_PREVIEW_BACK, UI_CNR_ALL, UI_draw_roundbox_4fv(), UI_draw_roundbox_corner_set(), UI_GetThemeColor4fv(), unit_m3(), UNPACK4, w(), Scopes::waveform_1, Scopes::waveform_2, Scopes::waveform_3, waveform_draw_one(), Scopes::waveform_tot, Scopes::wavefrm_alpha, Scopes::wavefrm_mode, Scopes::wavefrm_yfac, ARegion::winx, ARegion::winy, rctf::xmax, rcti::xmax, rctf::xmin, rcti::xmin, rctf::ymax, rcti::ymax, rctf::ymin, and rcti::ymin.
Referenced by ui_draw_but().
| void ui_draw_gradient | ( | const rcti * | rect, |
| const float | hsv[3], | ||
| eButGradientType | type, | ||
| float | alpha, | ||
| const ColorManagedDisplay * | display ) |
Draws in resolution of 48x4 colors.
Definition at line 3196 of file interface_widgets.cc.
References BLI_assert_msg, BLI_rcti_size_x(), BLI_rcti_size_y(), col, copy_v3_v3(), float, GPU_PRIM_TRIS, GPU_SHADER_3D_SMOOTH_COLOR, GPU_vertformat_attr_add(), immAttr4f(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immVertex2f(), immVertexFormat(), pos, ui_draw_gradient_hsv_to_rgb(), 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().
| void ui_draw_layout_panels_backdrop | ( | const ARegion * | region, |
| const Panel * | panel, | ||
| const float | radius, | ||
| float | subpanel_backcolor[4] ) |
Definition at line 1197 of file interface_panel.cc.
References uiBlock::aspect, BLI_rctf_rcti_copy(), Panel_Runtime::block, LayoutPanels::bodies, LayoutPanelBody::end_y, Panel_Runtime::layout_panels, uiBlock::rect, Panel::runtime, LayoutPanelBody::start_y, ui_block_is_popup_any(), UI_CNR_BOTTOM_LEFT, UI_CNR_BOTTOM_RIGHT, UI_CNR_NONE, UI_draw_roundbox_4fv(), UI_draw_roundbox_corner_set(), ui_to_pixelrect(), rctf::ymax, and rctf::ymin.
Referenced by panel_draw_aligned_backdrop(), and UI_block_draw().
Definition at line 5467 of file interface_widgets.cc.
References uiBlock::alert_level, uiBlock::aspect, uiBlock::direction, uiWidgetType::draw_block, uiBlock::flag, None, uiWidgetType::state, STATE_INFO_NULL, UI_DIR_DOWN, ui_draw_clip_tri(), ui_draw_dialog_alert(), UI_WTYPE_MENU_BACK, blender::ui::Undefined, uiWidgetType::wcol, and widget_type().
Referenced by hud_region_draw(), and UI_block_draw().
| void ui_draw_menu_item | ( | const uiFontStyle * | fstyle, |
| rcti * | rect, | ||
| rcti * | back_rect, | ||
| float | zoom, | ||
| bool | use_unpadded, | ||
| const char * | name, | ||
| int | iconid, | ||
| int | but_flag, | ||
| uiMenuItemSeparatorType | separator_type, | ||
| int * | r_xmax ) |
Helper call to draw a menu item without a button.
| back_rect | Used to draw/leave out the backdrop of the menu item. Useful when layering multiple items with different formatting like in search menus. |
| but_flag | Button flags (uiBut.flag) indicating the state of the item, typically UI_HOVER, UI_BUT_DISABLED, UI_BUT_INACTIVE. |
| separator_type | The kind of separator which controls if and how the string is clipped. |
| r_xmax | The right hand position of the text, this takes into the icon, padding and text clipping when there is not enough room to display the full text. |
Definition at line 5794 of file interface_widgets.cc.
References BLF_width(), BLI_assert_msg, BLI_rcti_size_x(), BLI_rcti_size_y(), uiWidgetStateInfo::but_flag, uiWidgetType::draw, float, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, name, padding(), params, state, uiWidgetType::state, STATE_INFO_NULL, STRNCPY_UTF8, uiWidgetColors::text, U, UI_BUT_INACTIVE, UI_fontstyle_draw(), UI_fontstyle_draw_ex(), UI_fontstyle_set(), UI_icon_draw_ex(), UI_ICON_SIZE, UI_MAX_DRAW_STR, UI_MENU_ITEM_SEPARATOR_HINT, UI_MENU_ITEM_SEPARATOR_NONE, UI_MENU_ITEM_SEPARATOR_SHORTCUT, UI_NO_ICON_OVERLAY_TEXT, UI_SEP_CHAR, UI_STYLE_TEXT_LEFT, UI_STYLE_TEXT_RIGHT, UI_text_clip_middle_ex(), UI_UNIT_X, UI_WTYPE_MENU_ITEM, UI_WTYPE_MENU_ITEM_UNPADDED, uiFontStyle::uifont_id, blender::ui::Undefined, uiWidgetType::wcol, widget_type(), ResultBLF::width, rcti::xmax, rcti::xmin, and rcti::ymin.
Referenced by ui_searchbox_region_draw_cb__operator(), and ui_searchbox_region_draw_fn().
| void ui_draw_pie_center | ( | uiBlock * | block | ) |
Definition at line 5634 of file interface_widgets.cc.
References angle(), atan2f, col, draw_disk_shaded(), PieMenuData::flags, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_matrix_pop(), GPU_matrix_push(), GPU_matrix_translate_2f(), GPU_SHADER_3D_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, uiWidgetColors::outline, PieMenuData::pie_center_spawned, uiBlock::pie_data, PieMenuData::pie_dir, PieMenuData::pie_dir_mask, pos, shadecolors4(), uiWidgetColors::shaded, uiWidgetColors::shadedown, uiWidgetColors::shadetop, uiWidgetColors::text_sel, bTheme::tui, U, UI_GetTheme(), UI_PIE_CLICK_STYLE, UI_PIE_INVALID_DIR, UI_RADIAL_MASK_ALL_AXIS_ALIGNED, UI_RADIAL_MASK_ALL_DIAGONAL, UI_SCALE_FAC, UNPACK3, and ThemeUI::wcol_pie_menu.
Referenced by UI_block_draw().
Definition at line 5565 of file interface_widgets.cc.
References uiBlock::aspect, uiBlock::bounds_offset, uiBlock::direction, float, U, ui_draw_clip_tri(), ui_draw_popover_back_impl(), ui_window_to_block_fl(), UI_WTYPE_MENU_BACK, uiWidgetType::wcol_theme, and widget_type().
Referenced by UI_block_draw().
| void ui_draw_preview_item | ( | const uiFontStyle * | fstyle, |
| rcti * | rect, | ||
| float | zoom, | ||
| const char * | name, | ||
| int | iconid, | ||
| int | but_flag, | ||
| eFontStyle_Align | text_align ) |
Definition at line 5982 of file interface_widgets.cc.
References uiWidgetType::draw, name, state, uiWidgetType::state, STATE_INFO_NULL, uiWidgetColors::text, ui_draw_preview_item_stateless(), UI_WTYPE_MENU_ITEM_UNPADDED, blender::ui::Undefined, uiWidgetType::wcol, and widget_type().
Referenced by ui_searchbox_region_draw_fn().
| void ui_draw_preview_item_stateless | ( | const uiFontStyle * | fstyle, |
| rcti * | rect, | ||
| blender::StringRef | name, | ||
| int | iconid, | ||
| const uchar | text_col[4], | ||
| eFontStyle_Align | text_align, | ||
| const bool | add_padding ) |
Version of ui_draw_preview_item() that does not draw the menu background and item text based on state. It just draws the preview and text directly.
| draw_as_icon | Instead of stretching the preview/icon to the available width/height, draw it at the standard icon size. Mono-icons will draw with text_col or the corresponding theme override for this type of icon. |
Definition at line 5932 of file interface_widgets.cc.
References BLI_rcti_size_x(), float, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, name, params, PREVIEW_PAD, UI_fontstyle_draw(), UI_ICON_SIZE, UI_MAX_DRAW_STR, UI_text_clip_middle_ex(), UI_UNIT_Y, widget_draw_preview_icon(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by ui_draw_preview_item(), and widget_preview_tile().
| void ui_draw_rounded_corners_inverted | ( | const rcti & | rect, |
| const float | rad, | ||
| const blender::float4 | color ) |
Draws rounded corner segments but inverted. Imagine each corner like a filled right triangle, just that the hypotenuse is nicely curved inwards (towards the right angle of the triangle).
Useful for connecting orthogonal shapes with a rounded corner, which can look quite nice.
Definition at line 149 of file interface_draw.cc.
References GPU_PRIM_TRI_FAN, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor4fv(), 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 ui_draw_button_sections_alignment_separator().
Definition at line 5786 of file interface_widgets.cc.
References uiWidgetType::draw_block, uiWidgetType::state, STATE_INFO_NULL, UI_WTYPE_TOOLTIP, blender::ui::Undefined, uiWidgetType::wcol, and widget_type().
Referenced by ui_tooltip_region_draw_cb().
| void ui_draw_widget_menu_back | ( | const rcti * | rect, |
| bool | use_shadow ) |
Definition at line 5781 of file interface_widgets.cc.
References ui_draw_widget_back_color(), and UI_WTYPE_MENU_BACK.
Referenced by ui_searchbox_region_draw_cb__operator(), and ui_searchbox_region_draw_fn().
Definition at line 5776 of file interface_widgets.cc.
References ui_draw_widget_back_color(), and UI_WTYPE_MENU_BACK.
| float ui_event_icon_offset | ( | int | icon_id | ) |
Definition at line 132 of file interface_icons_event.cc.
References ELEM.
Referenced by icon_draw_rect_input(), uiTemplateEventFromKeymapItem(), uiTemplateInputStatus(), uiTemplateInputStatusAzone(), and uiTemplateStatusBarModalItem().
Definition at line 2199 of file interface.cc.
Referenced by UI_block_draw(), UI_panel_category_draw_all(), ui_searchbox_create_generic_ex(), and ui_textedit_set_cursor_pos().
| void ui_handle_afterfunc_add_operator | ( | wmOperatorType * | ot, |
| blender::wm::OpCallContext | opcontext ) |
Definition at line 890 of file interface_handlers.cc.
References ot, and ui_handle_afterfunc_add_operator_ex().
Referenced by panel_activate_state().
| int ui_handler_panel_region | ( | bContext * | C, |
| const wmEvent * | event, | ||
| ARegion * | region, | ||
| const uiBut * | active_but ) |
Handle region panel events like opening and closing panels, changing categories, etc.
Definition at line 2600 of file interface_panel.cc.
References BLI_rctf_size_y(), BLI_rcti_size_x(), BLI_rcti_size_y(), C, View2D::cur, ED_region_tag_redraw(), ELEM, EVT_AKEY, EVT_PADENTER, EVT_PADPERIOD, EVT_RETKEY, EVT_TABKEY, Panel::flag, PanelType::flag, PanelCategoryDyn::idname, ISMOUSE_MOTION, KM_CTRL, KM_PRESS, KM_SHIFT, Label, LEFTMOUSE, LISTBASE_FOREACH, View2D::mask, wmEvent::modifier, NA_EDITED, NC_SCREEN, panel_categories_find_mouse_over(), PANEL_MOUSE_INSIDE_HEADER, PANEL_MOUSE_INSIDE_LAYOUT_PANEL_HEADER, PANEL_MOUSE_OUTSIDE, PANEL_TYPE_NO_HEADER, PANEL_USE_CLOSED_FROM_SEARCH, PNL_CLOSED, RIGHTMOUSE, ARegion::runtime, Panel::runtime_flag, SET_FLAG_FROM_TEST, STREQ, Panel::type, uiBut::type, wmEvent::type, ui_handle_layout_panel_header(), ui_handle_panel_category_cycling(), ui_handle_panel_header(), UI_panel_category_active_get(), UI_panel_category_active_set(), UI_panel_category_is_visible(), UI_PANEL_CATEGORY_MIN_WIDTH, ui_panel_category_show_active_tab(), UI_panel_is_closed(), ui_panel_mouse_state_get(), ui_panel_region_width_set(), ui_popup_context_menu_for_panel(), ui_region_find_active_but(), UI_SCALE_FAC, UI_view2d_mouse_in_scrollers(), UI_view2d_offset(), ui_window_to_block(), ARegion::v2d, wmEvent::val, WHEELDOWNMOUSE, WHEELUPMOUSE, ARegion::winrct, WM_event_add_notifier(), WM_UI_HANDLER_BREAK, WM_UI_HANDLER_CONTINUE, and wmEvent::xy.
Referenced by ui_region_handler().
| void ui_hsvcircle_pos_from_vals | ( | const ColorPicker * | cpicker, |
| const rcti * | rect, | ||
| const float * | hsv, | ||
| float * | r_xpos, | ||
| float * | r_ypos ) |
Cursor in HSV circle, in float units -1 to 1, to map on radius.
Definition at line 3045 of file interface_widgets.cc.
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, U, 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, |
| float | mx, | ||
| float | my, | ||
| float * | r_val_rad, | ||
| float * | r_val_dist ) |
Definition at line 3031 of file interface_widgets.cc.
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 uiButHSVCube * | hsv_but, |
| const rcti * | rect, | ||
| const float * | hsv, | ||
| float * | r_xp, | ||
| float * | r_yp ) |
Definition at line 3354 of file interface_widgets.cc.
References BLI_assert_unreachable, BLI_rcti_size_x(), BLI_rcti_size_y(), uiButHSVCube::gradient_type, uiBut::softmax, uiBut::softmin, UI_GRAD_H, UI_GRAD_HS, UI_GRAD_HV, UI_GRAD_L_ALT, UI_GRAD_NONE, UI_GRAD_S, UI_GRAD_SV, UI_GRAD_V, UI_GRAD_V_ALT, x, rcti::xmin, y, and rcti::ymin.
Referenced by ui_draw_but_HSVCUBE(), and ui_numedit_but_HSVCUBE().
| void ui_icon_ensure_deferred | ( | const bContext * | C, |
| int | icon_id, | ||
| bool | big ) |
Definition at line 1187 of file interface_icons.cc.
References BKE_icon_get(), BKE_previewimg_id_ensure(), BKE_studiolight_set_free_function(), DrawInfo::buffer, C, CTX_wm_manager(), CTX_wm_window(), DrawInfo::data, GS, IconImage::h, ICON_DATA_STUDIOLIGHT, icon_ensure_drawinfo(), ICON_SIZE_ICON, ICON_SIZE_PREVIEW, ICON_TYPE_BUFFER, ICON_TYPE_PREVIEW, ID_SCR, Icon::id_type, DrawInfo::image, MEM_callocN(), MEM_freeN(), MEM_malloc_arrayN(), ID::name, NC_WINDOW, Icon::obj, Icon::obj_type, IconImage::rect, PreviewImage::runtime, size(), STUDIOLIGHT_ICON_SIZE, DrawInfo::type, ui_id_preview_image_render_size(), ui_studiolight_free_function(), ui_studiolight_icon_job_end(), ui_studiolight_icon_job_exec(), IconImage::w, WM_JOB_TYPE_STUDIOLIGHT, WM_jobs_callbacks(), WM_jobs_customdata_set(), WM_jobs_get(), WM_jobs_start(), and WM_jobs_timer().
Referenced by button2d_draw_intern(), ui_def_but_icon(), and ui_searchbox_region_draw_fn().
| bool ui_icon_is_preview_deferred_loading | ( | int | icon_id, |
| bool | big ) |
Is icon_id a preview icon that is being loaded/rendered?
Definition at line 1254 of file interface_icons.cc.
References BKE_icon_get(), BKE_previewimg_id_get(), Icon::drawinfo, PreviewImage::flag, ICON_SIZE_ICON, ICON_SIZE_PREVIEW, ICON_TYPE_PREVIEW, Icon::id_type, Icon::obj, PRV_RENDERING, size(), and DrawInfo::type.
Referenced by ui_but_icon().
Definition at line 1899 of file interface_icons.cc.
References BKE_icon_id_ensure(), C, GS, ICON_SIZE_ICON, ICON_SIZE_PREVIEW, ID_GR, ID_IM, ID_LA, ID_MA, ID_SCR, ID_TE, ID_WO, ID::name, UI_icon_color_from_collection(), UI_icon_render_id(), and ui_id_screen_get_icon().
Referenced by id_search_add(), template_add_button_search_menu(), UI_icon_from_rnaptr(), and ui_rna_collection_search_update_fn().
| void ui_interface_tag_script_reload_queries | ( | ) |
Definition at line 883 of file interface_query.cc.
References g_ot_tool_set_by_id.
Referenced by UI_interface_tag_script_reload().
Definition at line 2820 of file interface_layout.cc.
References C, and UI_menutype_draw().
Referenced by uiLayout::menu(), UI_but_menutype_get(), ui_def_but_rna__menu_type(), and ui_popup_menu_create_from_menutype().
Definition at line 2826 of file interface_layout.cc.
References C, and UI_paneltype_draw().
Referenced by blender::ui::asset_shelf_popover_invoke(), uiLayout::popover(), UI_but_paneltype_get(), ui_def_but_rna__panel_type(), and UI_popover_panel_invoke().
| bool ui_jump_to_target_button_poll | ( | bContext * | C | ) |
Definition at line 1980 of file interface_ops.cc.
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 5568 of file interface_layout.cc.
References blender::ui::LayoutInternal::layout_add_but().
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 4990 of file interface_layout.cc.
References uiButtonItem::but, uiBut::flag, uiLayout::items(), UI_but_flag_enable(), UI_BUT_LIST_ITEM, ui_layout_list_set_labels_active(), and UI_SELECT.
Referenced by blender::ui::TreeViewLayoutBuilder::build_row(), ui_layout_list_set_labels_active(), and ui_template_list_layout_draw().
| LayoutPanelHeader * ui_layout_panel_header_under_mouse | ( | const Panel & | panel, |
| const int | my ) |
Definition at line 2090 of file interface_panel.cc.
References Panel_Runtime::block, LayoutPanelHeader::end_y, LayoutPanels::headers, IN_RANGE, Panel_Runtime::layout_panels, uiBlock::rect, Panel::runtime, LayoutPanelHeader::start_y, and rctf::ymax.
Referenced by ui_handle_layout_panel_header(), ui_handle_menus_recursive(), and ui_panel_mouse_state_get().
Apply scroll to layout panels when the main panel is used in popups.
Definition at line 595 of file interface_region_popup.cc.
References LayoutPanels::bodies, LayoutPanelBody::end_y, LayoutPanelHeader::end_y, LayoutPanels::headers, Panel_Runtime::layout_panels, Panel::runtime, LayoutPanelBody::start_y, and LayoutPanelHeader::start_y.
Referenced by ui_menu_scroll_apply_offset_y(), and ui_popup_block_refresh().
| bool ui_layout_panel_toggle_open | ( | const bContext * | C, |
| LayoutPanelHeader * | header ) |
Toggles layout panel open state and returns the new state.
Definition at line 2259 of file interface_panel.cc.
References C, LayoutPanelHeader::open_owner_ptr, LayoutPanelHeader::open_prop_name, RNA_boolean_get(), RNA_boolean_set(), RNA_property_update(), and RNA_struct_find_property().
Referenced by ui_handle_layout_panel_header(), and ui_handle_menus_recursive().
Definition at line 5616 of file interface_layout.cc.
References blender::ui::LayoutInternal::layout_remove_but().
Referenced by UI_but_active_only_ex().
Definition at line 5621 of file interface_layout.cc.
References uiButtonItem::but, and blender::ui::LayoutInternal::ui_layout_find_button_item().
Referenced by ui_but_change_type().
Definition at line 435 of file interface_query.cc.
References ui_list_find_mouse_over_ex(), and wmEvent::xy.
Referenced by ui_handle_menus_recursive(), UI_list_find_mouse_over(), ui_popup_context_menu_for_button(), and ui_region_handler().
References ATTR_NONNULL, ATTR_WARN_UNUSED_RESULT, ui_block_active_but_get(), ui_block_is_menu(), ui_block_is_pie_menu(), ui_block_is_popover(), ui_block_is_popup_any(), ui_but_contains_password(), ui_but_drawstr_len_without_sep_char(), ui_but_drawstr_without_sep_char(), ui_but_first(), ui_but_last(), ui_but_next(), ui_but_prev(), ui_but_tip_len_only_first_line(), ui_list_find_mouse_over_ex(), and xy.
Referenced by ui_list_find_mouse_over_ex().
Definition at line 485 of file interface_query.cc.
References BLI_assert, data, ListBox, uiBut::type, ui_but_find(), and ui_but_is_listrow_at_index().
Referenced by ui_list_row_find_mouse_over().
References ATTR_NONNULL, ATTR_WARN_UNUSED_RESULT, ui_list_row_find_index(), ui_list_row_find_mouse_over(), and xy.
Referenced by ui_handle_viewlist_items_hover(), ui_list_row_find_mouse_over(), and ui_popup_context_menu_for_button().
| void UI_OT_eyedropper_color | ( | wmOperatorType * | ot | ) |
Definition at line 695 of file eyedropper_color.cc.
References eyedropper_cancel(), eyedropper_exec(), eyedropper_invoke(), eyedropper_modal(), eyedropper_poll(), OPTYPE_BLOCKING, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_property_flag(), and RNA_def_string().
Referenced by ED_operatortypes_ui(), and ui_screen_region_find_mouse_over_ex().
| void UI_OT_eyedropper_depth | ( | wmOperatorType * | ot | ) |
Definition at line 471 of file eyedropper_depth.cc.
References depthdropper_cancel(), depthdropper_exec(), depthdropper_invoke(), depthdropper_modal(), depthdropper_poll(), OPTYPE_BLOCKING, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_property_flag(), and RNA_def_string().
Referenced by ED_operatortypes_ui().
| void UI_OT_eyedropper_driver | ( | wmOperatorType * | ot | ) |
Definition at line 193 of file eyedropper_driver.cc.
References driverdropper_cancel(), driverdropper_exec(), driverdropper_invoke(), driverdropper_modal(), driverdropper_poll(), OPTYPE_BLOCKING, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, prop_driver_create_mapping_types, and RNA_def_enum().
Referenced by ED_operatortypes_ui().
| void UI_OT_eyedropper_grease_pencil_color | ( | wmOperatorType * | ot | ) |
Definition at line 449 of file eyedropper_grease_pencil_color.cc.
References blender::ui::greasepencil::Both, blender::ui::greasepencil::Brush, blender::ui::greasepencil::eyedropper_grease_pencil_cancel(), blender::ui::greasepencil::eyedropper_grease_pencil_exec(), blender::ui::greasepencil::eyedropper_grease_pencil_invoke(), blender::ui::greasepencil::eyedropper_grease_pencil_modal(), blender::ui::greasepencil::eyedropper_grease_pencil_poll(), blender::ui::greasepencil::Fill, blender::ui::greasepencil::Material, OPTYPE_BLOCKING, OPTYPE_UNDO, ot, blender::ui::greasepencil::Palette, RNA_def_enum(), and blender::ui::greasepencil::Stroke.
Referenced by ED_operatortypes_ui().
| void UI_OT_eyedropper_id | ( | wmOperatorType * | ot | ) |
Definition at line 351 of file eyedropper_datablock.cc.
References datadropper_cancel(), datadropper_exec(), datadropper_invoke(), datadropper_modal(), datadropper_poll(), OPTYPE_BLOCKING, OPTYPE_INTERNAL, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_ui().
| void ui_pan_to_scroll | ( | const wmEvent * | event, |
| int * | type, | ||
| int * | val ) |
Assumes event type is MOUSEPAN.
Definition at line 603 of file interface_handlers.cc.
References abs, BLI_assert, KM_PRESS, MOUSEPAN, UI_UNIT_Y, WHEELDOWNMOUSE, WHEELUPMOUSE, and WM_event_absolute_delta_y().
Referenced by ui_do_but_BLOCK(), ui_do_but_NUM(), ui_do_but_SLI(), ui_do_but_TOG(), ui_handle_list_event(), ui_handle_menu_event(), ui_searchbox_event(), and ui_view_scroll_invoke().
| void ui_panel_drag_collapse_handler_add | ( | const bContext * | C, |
| const bool | was_open ) |
Definition at line 2242 of file interface_panel.cc.
References C, copy_v2_v2_int(), CTX_wm_window(), wmWindow::eventstate, MEM_callocN(), wmWindow::modalhandlers, ui_panel_drag_collapse_handler(), ui_panel_drag_collapse_handler_remove(), uiPanelDragCollapseHandle::was_first_open, WM_event_add_ui_handler(), and uiPanelDragCollapseHandle::xy_init.
Referenced by ui_handle_layout_panel_header(), ui_handle_menus_recursive(), and ui_handle_panel_header().
| void ui_panel_tag_search_filter_match | ( | Panel * | panel | ) |
Definition at line 882 of file interface_panel.cc.
References PANEL_SEARCH_FILTER_MATCH, and Panel::runtime_flag.
Referenced by UI_block_apply_search_filter().
Definition at line 157 of file interface_region_color_picker.cc.
References ui_but_is_color_gamma(), and ui_perceptual_to_scene_linear_space().
Referenced by ui_draw_but_HSVCIRCLE(), ui_numedit_but_HSVCIRCLE(), and ui_numedit_but_HSVCUBE().
| void ui_pie_menu_level_create | ( | uiBlock * | block, |
| wmOperatorType * | ot, | ||
| blender::StringRefNull | propname, | ||
| IDProperty * | properties, | ||
| const EnumPropertyItem * | items, | ||
| int | totitem, | ||
| blender::wm::OpCallContext | context, | ||
| eUI_Item_Flag | flag ) |
Set up data for defining a new pie menu level and add button that invokes it.
Definition at line 281 of file interface_region_menu_pie.cc.
References But, PieMenuLevelData::context, flag, PieMenuLevelData::flag, MEM_mallocN(), ot, PieMenuLevelData::ot, uiBlock::pie_data, PIE_MAX_ITEMS, PieMenuLevelData::properties, PieMenuLevelData::propname, STRNCPY_UTF8, PieMenuData::title, PieMenuLevelData::title, PieMenuLevelData::totitem, UI_but_funcN_set(), ui_pie_menu_level_invoke(), UI_UNIT_X, UI_UNIT_Y, and uiDefIconTextBut().
Referenced by uiLayout::op_enum_items().
| uiPopupBlockHandle * ui_popover_panel_create | ( | bContext * | C, |
| ARegion * | butregion, | ||
| uiBut * | but, | ||
| uiPopoverCreateFunc | popover_func, | ||
| const PanelType * | panel_type ) |
Definition at line 258 of file interface_region_popover.cc.
References uiPopover::but, C, CTX_wm_window(), wmWindow::eventstate, KM_PRESS, LEFTMOUSE, wmWindow::modalhandlers, uiPopover::panel_type, uiFontStyle::points, uiPopover::popover_func, uiPopupBlockHandle::popup, U, 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, and WM_event_add_mousemove().
Referenced by blender::ui::asset_shelf_popover_invoke(), ui_block_open_begin(), and UI_popover_panel_invoke().
| uiPopupBlockHandle * ui_popup_block_create | ( | bContext * | C, |
| ARegion * | butregion, | ||
| uiBut * | but, | ||
| uiBlockCreateFunc | create_func, | ||
| uiBlockHandleCreateFunc | handle_create_func, | ||
| void * | arg, | ||
| uiFreeArgFunc | arg_free, | ||
| bool | can_refresh ) |
Definition at line 875 of file interface_region_popup.cc.
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_region_popup(), CTX_wm_region_popup_set(), CTX_wm_screen(), CTX_wm_window(), ARegionType::draw, uiPopupBlockCreate::event_xy, wmWindow::eventstate, uiBlock::handle, uiPopupBlockCreate::handle_create_func, ARegionType::layout, ARegionType::listener, uiPopupBlockHandle::popup_create_vars, uiPopupBlockHandle::region, ARegionType::regionid, RGN_TYPE_TEMPORARY, ARegion::runtime, uiBlock::tooltipdisabled, 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::xy.
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_impl(), and UI_popup_menu_end().
| void ui_popup_block_free | ( | bContext * | C, |
| uiPopupBlockHandle * | handle ) |
Definition at line 967 of file interface_region_popup.cc.
References uiPopupBlockCreate::arg, uiPopupBlockCreate::arg_free, BKE_panel_free(), uiPopupBlockCreate::butregion, C, ED_workspace_status_text(), LISTBASE_FOREACH, uiPopupBlockHandle::menuretval, uiPopupBlockHandle::popup_create_vars, uiPopupBlockHandle::region, ARegion::runtime, ui_block_is_menu(), UI_BLOCK_KEEP_OPEN, UI_BLOCK_POPOVER, ui_popup_block_remove(), and UI_RETURN_OK.
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 627 of file interface_region_popup.cc.
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_data_depsgraph_pointer(), CTX_data_main(), CTX_data_scene(), CTX_wm_window(), uiBlock::direction, uiPopupBlockHandle::direction, ED_region_floating_init(), ED_region_tag_redraw(), ED_region_update_rect(), ELEM, uiBlock::endblock, wmWindow::event_last_handled, uiPopupBlockCreate::event_xy, wmWindow::eventstate, uiBlock::flag, PieMenuData::flags, FLT_MAX, uiBlock::handle, uiPopupBlockCreate::handle_create_func, max_ff(), MEM_callocN(), min_ff(), uiBlock::oldblock, uiBlock::panel, 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, ARegion::runtime, uiBlock::saferct, uiBlock::safety, uiSafetyRct::safety, uiPopupBlockHandle::scrolloffset, U, UI_BLOCK_BOUNDS_POPUP_CENTER, ui_block_calc_pie_segment(), UI_block_end_ex(), ui_block_is_menu(), UI_BLOCK_LOOP, UI_BLOCK_NO_ACCELERATOR_KEYS, UI_BLOCK_PIE_MENU, UI_BLOCK_POPOVER, UI_BLOCK_POPUP, 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_layout_panel_popup_scroll_apply(), UI_MENU_SCROLL_PAD, 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, UI_UNIT_Y, UNPACK2, uiBlock::winmat, ARegion::winrct, WM_window_native_pixel_size(), wmGetProjectionMatrix(), rctf::xmax, rcti::xmax, rctf::xmin, rcti::xmin, rctf::ymax, rcti::ymax, rctf::ymin, and rcti::ymin.
Referenced by ui_block_region_refresh(), and ui_popup_block_create().
| void ui_popup_block_scrolltest | ( | uiBlock * | block | ) |
Definition at line 514 of file interface_region_popup.cc.
References uiBlock::buttons, uiBlock::flag, uiBlock::rect, Vector< T, InlineBufferCapacity, Allocator >::size(), 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 521 of file interface_context_menu.cc.
References ANIM_driver_can_paste(), uiBut::apply_func, ID::asset_data, BLI_assert, BLI_exists(), BLI_path_split_dir_part(), uiBut::block, uiLayout::block(), BLT_I18NCONTEXT_OPERATOR_DEFAULT, blender::ui::AbstractViewItem::build_context_menu(), But, C, blender::ed::asset::can_mark_single_from_context(), uiLayout::column(), uiBut::context, uiLayout::context_set_from_but(), CTX_data_main(), CTX_data_pointer_get_type(), CTX_IFACE_, CTX_store_get(), CTX_store_set(), CTX_wm_area(), CTX_wm_region(), CTX_wm_region_popup(), PointerRNA::data, ED_buttons_navbar_menu(), ED_buttons_visible_tabs_menu(), ED_screen_user_menu_ensure(), ED_screen_user_menu_item_remove(), ED_screen_user_menus_find(), ED_screens_footer_tools_menu_create(), ED_screens_header_tools_menu_create(), ELEM, uiLayout::enabled_set(), EVT_TYPE_MASK_ALL, blender::wm::ExecDefault, FILE_MAX, FILE_MAXDIR, uiBut::flag, IFACE_, Image, blender::wm::InvokeDefault, is_disabled, ISKEYBOARD, ISNDOF_BUTTON, bUserMenu::items, Label, MEM_freeN(), uiButTab::menu, uiLayout::menu(), menu_add_shortcut(), menu_add_shortcut_cancel(), menu_change_shortcut(), uiBut::menu_create_func, uiLayout::menu_fn(), nullptr, uiLayout::op(), uiBut::opcontext, uiLayout::operator_context_set(), uiBut::opptr, uiBut::optype, ot, MenuType::poll, 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_OVERRIDE_STATUS_OVERRIDABLE, RNA_property_anim_editable(), RNA_property_array_length(), RNA_property_is_idprop(), RNA_property_override_library_status(), RNA_property_path_from_ID_check(), RNA_property_string_get(), RNA_property_subtype(), RNA_property_type(), RNA_string_set(), RNA_struct_find_property(), RNA_struct_property_is_set(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, SearchMenu, uiLayout::separator(), set_layout_context_from_button(), shortcut_free_operator_property(), shortcut_get_operator_property(), SPACE_PROPERTIES, ScrArea::spacetype, Tab, TIP_, PointerRNA::type, uiBut::type, wmKeyMapItem::type, U, ui_block_is_menu(), ui_block_is_popup_any(), UI_BUT_ANIMATED, UI_BUT_ANIMATED_KEY, UI_but_context_menu_title_from_button(), 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_user_menu_add(), ui_but_user_menu_find(), UI_ITEM_NONE, ui_jump_to_target_button_poll(), ui_list_find_mouse_over(), ui_list_row_find_mouse_over(), UI_menutype_draw(), UI_popup_block_ex(), UI_popup_block_invoke(), UI_popup_menu_begin(), UI_popup_menu_end_or_cancel(), UI_popup_menu_layout(), ui_rna_collection_search_update_fn(), UI_UNIT_Y, ui_view_item_find_mouse_over(), uiDefBlockBut(), uiDefIconTextBut(), USER_DEVELOPER_UI, uiButViewItem::view_item, ViewItem, w(), uiLayout::width(), WM_key_event_operator(), WM_keymap_guess_opname(), WM_menutype_find(), WM_operatortype_find(), and wmEvent::xy.
Referenced by ui_do_button(), ui_screen_region_find_mouse_over_ex(), and ui_search_menu_create_context_menu().
menu to show when right clicking on the panel header
Definition at line 1293 of file interface_context_menu.cc.
References uiLayout::block(), uiBlock::buttons, C, CTX_wm_screen(), uiBut::flag, bScreen::id, IFACE_, Vector< T, InlineBufferCapacity, Allocator >::last(), PanelType::parent, uiLayout::prop(), ptr, RNA_pointer_create_discrete(), SNPRINTF_UTF8, Panel::type, UI_BUT_HAS_SEP_CHAR, UI_ITEM_NONE, UI_panel_can_be_pinned(), UI_panel_category_is_visible(), UI_popup_menu_begin(), UI_popup_menu_end(), UI_popup_menu_layout(), and UI_SEP_CHAR_S.
Referenced by ui_handler_panel_region(), and ui_screen_region_find_mouse_over_ex().
| uiPopupBlockHandle * ui_popup_menu_create | ( | bContext * | C, |
| ARegion * | butregion, | ||
| uiBut * | but, | ||
| uiMenuCreateFunc | menu_func, | ||
| void * | arg ) |
Definition at line 439 of file interface_region_menu_popup.cc.
References C, and ui_popup_menu_create_impl().
Referenced by ui_block_open_begin().
Definition at line 146 of file interface_region_menu_popup.cc.
References ui_popup_menu_memory__internal().
Referenced by ui_block_func_POPUP().
Definition at line 151 of file interface_region_menu_popup.cc.
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 44 of file interface_region_popup.cc.
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::runtime, UNPACK2, and ARegion::winrct.
Referenced by ui_handle_menu_event().
| bool ui_region_contains_point_px | ( | const ARegion * | region, |
| const int | xy[2] ) |
References ATTR_NONNULL, ATTR_WARN_UNUSED_RESULT, ui_region_contains_point_px(), ui_region_contains_rect_px(), and xy.
Referenced by ui_handle_button_event(), ui_handle_menu_button(), ui_region_contains_point_px(), and UI_region_view_find_at().
Definition at line 829 of file interface_query.cc.
References BLI_rcti_isect(), View2D::mask, ui_region_winrct_get_no_margin(), UI_view2d_rect_in_scrollers(), ui_window_to_region_rcti(), ARegion::v2d, rcti::xmax, and rcti::xmin.
Referenced by ui_but_find_rect_over(), and ui_region_contains_point_px().
Definition at line 770 of file interface_query.cc.
References LISTBASE_FOREACH, ARegion::runtime, and ui_block_active_but_get().
Referenced by button_activate_init(), drop_color_invoke(), ui_block_find_mouse_over_ex(), UI_but_active_drop_color(), UI_but_active_drop_name_button(), 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_handle_region_semi_modal_buttons(), ui_handler_panel_region(), ui_handler_region_menu(), ui_pie_handler(), ui_region_handler(), UI_screen_free_active_but_highlight(), and with_but_active_as_semi_modal().
Definition at line 782 of file interface_query.cc.
References LISTBASE_FOREACH, and ARegion::runtime.
Referenced by ui_block_find_mouse_over_ex(), and ui_handle_menu_event().
| void ui_region_to_window | ( | const ARegion * | region, |
| int * | x, | ||
| int * | y ) |
Definition at line 261 of file interface.cc.
References ARegion::winrct, x, rcti::xmin, y, and rcti::ymin.
Referenced by select_operator_view_and_item_find_xy().
| void ui_region_to_window | ( | const ARegion * | region, |
| int | region_x, | ||
| int | region_y, | ||
| int * | r_window_x, | ||
| int * | r_window_y ) |
Definition at line 267 of file interface.cc.
References ARegion::winrct, rcti::xmin, and rcti::ymin.
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 388 of file interface.cc.
References BLI_rcti_rctf_copy_floor(), BLI_rcti_translate(), uiBlock::flag, uiBlock::rect, ARegion::runtime, UI_BLOCK_LOOP, UI_BLOCK_PIE_MENU, 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 ui_resources_init | ( | ) |
| void ui_rna_collection_search_update_fn | ( | const bContext * | C, |
| void * | arg, | ||
| const char * | str, | ||
| uiSearchItems * | items, | ||
| bool | is_first ) |
Definition at line 481 of file interface_utils.cc.
References Vector< T, InlineBufferCapacity, Allocator >::append(), b, Vector< T, InlineBufferCapacity, Allocator >::begin(), BKE_id_full_name_ui_prefix_get(), BLI_assert, BLI_STATIC_ASSERT, C, data, ELEM, Vector< T, InlineBufferCapacity, Allocator >::end(), flag, G, i, StringPropertySearchVisitParams::icon_id, ID_IS_LINKED, ActionSlot::idtype, Vector< T, InlineBufferCapacity, Allocator >::index_range(), StringPropertySearchVisitParams::info, MAX_ID_FULL_NAME_UI, MEM_freeN(), name, PROP_ID_SELF_CHECK, PROP_POINTER, PROP_STRING, PROP_STRING_SEARCH_SORT, PROP_STRING_SEARCH_SUPPORTED, RNA_PROP_BEGIN, RNA_PROP_END, RNA_property_flag(), RNA_property_pointer_poll(), RNA_property_string_get_alloc(), RNA_property_string_search(), RNA_property_string_search_flag(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_is_ID(), RNA_struct_name_get_alloc(), Vector< T, InlineBufferCapacity, Allocator >::size(), str, UI_icon_from_idcode(), ui_id_icon_get(), UI_MAX_DRAW_STR, UI_SEP_CHAR, and wrap().
Referenced by jump_to_target_button(), template_search_menu(), ui_but_add_search(), and ui_popup_context_menu_for_button().
Definition at line 152 of file interface_region_color_picker.cc.
References ui_but_is_color_gamma(), and ui_scene_linear_to_perceptual_space().
Referenced by ui_draw_but_HSV_v(), ui_draw_but_HSVCIRCLE(), ui_draw_but_HSVCUBE(), ui_numedit_but_HSVCIRCLE(), and ui_numedit_but_HSVCUBE().
Definition at line 872 of file interface_query.cc.
References ui_screen_region_find_mouse_over_ex(), and wmEvent::xy.
Referenced by ui_handler_region_menu(), and ui_screen_region_find_mouse_over_ex().
Check if the cursor is over any popups.
References ATTR_NONNULL, C, eyedropper_colorband_modal_keymap(), eyedropper_modal_keymap(), ot, UI_OT_eyedropper_color(), ui_popup_context_menu_for_button(), ui_popup_context_menu_for_panel(), ui_screen_region_find_mouse_over(), ui_screen_region_find_mouse_over_ex(), and xy.
Referenced by ui_screen_region_find_mouse_over_ex().
String validated to be of correct length (but->hardmax).
Definition at line 341 of file interface_region_search.cc.
References BLI_assert, BLI_strdup(), BLI_strncpy(), data, uiBut::editstr, uiBut::hardmax, uiButSearch::item_active, uiButSearch::item_active_str, MEM_SAFE_FREE, name, ARegion::regiondata, SearchMenu, uiBut::type, and UI_SEP_CHAR.
Referenced by ui_textedit_end().
Definition at line 599 of file interface_region_search.cc.
References AUTOCOMPLETE_NO_MATCH, BLI_assert, C, data, uiBut::editstr, ARegion::regiondata, SearchMenu, str, uiBut::type, UI_autocomplete_begin(), UI_autocomplete_end(), ui_but_string_get_maxncpy(), and ui_searchbox_update_fn().
Referenced by ui_textedit_autocomplete().
| ARegion * ui_searchbox_create_generic | ( | bContext * | C, |
| ARegion * | butregion, | ||
| uiButSearch * | search_but ) |
Search-box for string button.
Definition at line 1052 of file interface_region_search.cc.
References C, and ui_searchbox_create_generic_ex().
Referenced by template_common_search_menu(), ui_but_add_search(), UI_but_func_search_set(), and uiDefSearchButO_ptr().
| ARegion * ui_searchbox_create_menu | ( | bContext * | C, |
| ARegion * | butregion, | ||
| uiButSearch * | search_but ) |
Definition at line 1195 of file interface_region_search.cc.
References C, ARegion::runtime, ui_searchbox_create_generic_ex(), and ui_searchbox_region_draw_cb__menu().
Referenced by UI_but_func_menu_search().
| ARegion * ui_searchbox_create_operator | ( | bContext * | C, |
| ARegion * | butregion, | ||
| uiButSearch * | search_but ) |
Definition at line 1176 of file interface_region_search.cc.
References C, ARegion::runtime, ui_searchbox_create_generic_ex(), and ui_searchbox_region_draw_cb__operator().
Referenced by UI_but_func_operator_search().
| bool ui_searchbox_event | ( | bContext * | C, |
| ARegion * | region, | ||
| uiBut * | but, | ||
| ARegion * | butregion, | ||
| const wmEvent * | event ) |
Definition at line 405 of file interface_region_search.cc.
References active, uiButSearch::arg, BLI_assert, BLI_rcti_isect_pt(), C, CTX_wm_area(), CTX_wm_window(), data, EVT_DOWNARROWKEY, EVT_UPARROWKEY, is_inside(), uiButSearch::item_active, uiButSearch::item_context_menu_fn, MOUSEMOVE, MOUSEPAN, wmEvent::prev_xy, ARegion::regiondata, RIGHTMOUSE, SearchMenu, uiBut::type, U, ui_pan_to_scroll(), ui_searchbox_butrect(), ui_searchbox_select(), USER_TOOLTIPS, WHEELDOWNMOUSE, WHEELUPMOUSE, ARegion::winrct, wm_searchbox_tooltip_init(), WM_tooltip_clear(), WM_tooltip_timer_init(), rcti::xmin, wmEvent::xy, and rcti::ymin.
Referenced by ui_do_but_textedit().
| bool int ui_searchbox_find_index | ( | ARegion * | region, |
| const char * | name ) |
Definition at line 328 of file interface_region_search.cc.
References data, name, ARegion::regiondata, and UI_search_items_find_index().
Referenced by ui_textedit_end().
Definition at line 1185 of file interface_region_search.cc.
References C, CTX_wm_screen(), and ui_region_temp_remove().
Referenced by ui_textedit_end().
| bool ui_searchbox_inside | ( | ARegion * | region, |
| const int | xy[2] ) |
x and y in screen-coords.
References C, create_func(), name, reset(), str, and xy.
Referenced by ui_do_but_textedit().
Region is the search box itself.
Definition at line 521 of file interface_region_search.cc.
References BLI_assert, C, uiBut::changed, data, ED_region_tag_redraw(), uiBut::editstr, uiButSearch::item_active, uiButSearch::items_update_fn, name, ARegion::regiondata, reset(), SearchMenu, STREQLEN, uiBut::type, ui_searchbox_select(), ui_searchbox_update_fn(), and UI_SEP_CHAR.
Referenced by ui_but_set_string_interactive(), ui_do_but_textedit(), ui_searchbox_select(), and ui_textedit_begin().
| ID * ui_template_id_liboverride_hierarchy_make | ( | bContext * | C, |
| Main * | bmain, | ||
| ID * | owner_id, | ||
| ID * | id, | ||
| const char ** | r_undo_push_label ) |
Definition at line 356 of file interface_template_id.cc.
References BKE_collection_child_add(), BKE_collection_has_collection(), BKE_collection_has_object_recursive(), BKE_collection_object_add(), BKE_lib_override_library_create(), BKE_lib_override_library_get(), BKE_lib_override_library_id_reset(), BKE_scene_collections_object_remove(), BKE_scene_has_object(), C, Main::collections, CTX_data_active_object(), CTX_data_collection(), CTX_data_scene(), CTX_data_view_layer(), IDOverrideLibrary::flag, GS, IDOverrideLibrary::hierarchy_root, Collection::id, Object::id, ID_AR, ID_CA, ID_CU_LEGACY, ID_CV, ID_GD_LEGACY, ID_GR, ID_IM, ID_IS_LINKED, ID_IS_OVERRIDABLE_LIBRARY_HIERARCHY, ID_IS_OVERRIDE_LIBRARY, ID_IS_OVERRIDE_LIBRARY_REAL, ID_LA, ID_LT, ID_MA, ID_MB, ID_ME, ID_NT, ID_OB, ID_PA, ID_PT, ID_SPK, ID_TAG_DOIT, ID_TE, ID_VO, ID_WO, Object::instance_collection, ID::lib, LIBOVERRIDE_FLAG_SYSTEM_DEFINED, LISTBASE_FOREACH, Scene::master_collection, NA_ADDED, NA_REMOVED, ID::name, NC_ID, NC_SPACE, NC_WM, ND_DATACHANGED, ND_LIB_OVERRIDE_CHANGED, ND_SPACE_OUTLINER, ND_SPACE_VIEW3D, ID::override_library, RPT_ERROR, RPT_WARNING, ID::tag, template_id_liboverride_hierarchy_collection_root_find_recursive(), template_id_liboverride_hierarchy_collections_tag_recursive(), WM_event_add_notifier(), and WM_global_reportf().
Referenced by override_idtemplate_make_exec(), and template_id_liboverride_hierarchy_make().
| const char * ui_textedit_undo | ( | uiUndoStack_Text * | stack, |
| int | direction, | ||
| int * | r_cursor_index ) |
Definition at line 70 of file interface_undo.cc.
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 79 of file interface_undo.cc.
References BLI_addtail(), BLI_remlink(), uiUndoStack_Text::current, uiUndoStack_Text_State::cursor_index, MEM_freeN(), MEM_mallocN(), uiUndoStack_Text_State::next, state, uiUndoStack_Text::states, and uiUndoStack_Text_State::text.
Referenced by ui_do_but_textedit(), and ui_textedit_begin().
| uiUndoStack_Text * ui_textedit_undo_stack_create | ( | ) |
Start the undo stack.
Definition at line 99 of file interface_undo.cc.
References BLI_listbase_clear(), uiUndoStack_Text::current, MEM_callocN(), and uiUndoStack_Text::states.
Referenced by ui_textedit_begin().
| void ui_textedit_undo_stack_destroy | ( | uiUndoStack_Text * | stack | ) |
Definition at line 108 of file interface_undo.cc.
References BLI_freelistN(), MEM_freeN(), and uiUndoStack_Text::states.
Referenced by ui_textedit_end().
Definition at line 2209 of file interface.cc.
References BLI_rcti_rctf_copy_round(), BLI_rcti_translate(), ui_block_to_window_rctf(), ARegion::winrct, rcti::xmin, and rcti::ymin.
Referenced by ui_but_to_pixelrect(), and ui_draw_layout_panels_backdrop().
| const uiWidgetColors * ui_tooltip_get_theme | ( | ) |
Definition at line 5740 of file interface_widgets.cc.
References UI_WTYPE_TOOLTIP, uiWidgetType::wcol_theme, and widget_type().
Referenced by ui_tooltip_from_vfont(), and ui_tooltip_region_draw_cb().
| uiListType * UI_UL_cache_file_layers | ( | ) |
Definition at line 90 of file interface_template_cache_file.cc.
References cache_file_layer_item(), uiListType::draw_item, uiListType::idname, MEM_callocN(), and STRNCPY_UTF8.
Referenced by ED_uilisttypes_ui().
Definition at line 514 of file interface_query.cc.
References ui_but_find(), and ui_but_is_active_view_item().
Referenced by UI_region_views_find_active_item(), UI_region_views_find_active_item_but(), and ui_view_item_find_mouse_over().
References ATTR_NONNULL, ui_view_item_find_active(), ui_view_item_find_mouse_over(), ui_view_item_find_search_highlight(), and xy.
Referenced by ui_do_but_EXIT(), ui_do_button(), ui_handle_view_item_event(), ui_handle_viewlist_items_hover(), ui_popup_context_menu_for_button(), UI_region_views_find_item_at(), and ui_view_item_find_mouse_over().
Definition at line 519 of file interface_query.cc.
References blender::ui::AbstractViewItem::is_search_highlight(), uiBut::type, ui_but_find(), uiButViewItem::view_item, and ViewItem.
Referenced by ui_handle_view_item_event(), ui_handle_viewlist_items_hover(), and ui_view_item_find_mouse_over().
| void ui_view_item_swap_button_pointers | ( | blender::ui::AbstractViewItem & | a, |
| blender::ui::AbstractViewItem & | b ) |
Definition at line 439 of file abstract_view_item.cc.
References b, and blender::ui::ViewItemAPIWrapper::swap_button_pointers().
Referenced by ui_but_update_old_active_from_new().
Definition at line 228 of file interface.cc.
References ui_window_to_block_fl(), x, and y.
Referenced by ui_but_contains_point_px_icon(), ui_but_extra_operator_icon_mouse_over_get(), ui_do_but_COLORBAND(), ui_do_but_CURVE(), ui_do_but_CURVEPROFILE(), ui_do_but_GRIP(), ui_do_but_HISTOGRAM(), ui_do_but_HSVCIRCLE(), ui_do_but_HSVCUBE(), ui_do_but_NUM(), ui_do_but_SCROLL(), ui_do_but_SLI(), ui_do_but_textedit_select(), ui_do_but_TRACKPREVIEW(), ui_do_but_UNITVEC(), ui_do_but_WAVEFORM(), ui_handle_list_event(), ui_handle_menu_event(), ui_handle_menus_recursive(), ui_handler_panel_region(), ui_numedit_but_CURVE(), ui_numedit_but_CURVEPROFILE(), ui_numedit_set_active(), and UI_region_panel_custom_data_under_cursor().
For mouse cursor.
Definition at line 191 of file interface.cc.
References b, BLI_rcti_size_x(), BLI_rcti_size_y(), e, float, Panel::ofsx, Panel::ofsy, uiBlock::panel, uiBlock::winmat, ARegion::winrct, x, rcti::xmin, y, and rcti::ymin.
Referenced by ui_block_find_mouse_over_ex(), ui_but_contains_point_px(), ui_but_find_mouse_over_ex(), ui_do_but_textedit(), ui_drag_toggle_set_xy_xy(), ui_draw_popover_back(), ui_list_find_mouse_over_ex(), ui_multibut_states_tag(), ui_panel_drag_collapse(), ui_pie_handler(), UI_region_view_find_at(), ui_search_menu_create_tooltip(), ui_window_to_block(), and ui_window_to_block_rctf().
| void ui_window_to_block_rctf | ( | const ARegion * | region, |
| const uiBlock * | block, | ||
| rctf * | rct_dst, | ||
| const rctf * | rct_src ) |
Definition at line 218 of file interface.cc.
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 ARegion * | region, |
| int * | x, | ||
| int * | y ) |
Definition at line 239 of file interface.cc.
References ARegion::winrct, x, rcti::xmin, y, and rcti::ymin.
Referenced by ui_region_contains_point_px().
Definition at line 253 of file interface.cc.
References ARegion::winrct, rctf::xmax, rctf::xmin, rcti::xmin, rctf::ymax, rctf::ymin, and rcti::ymin.
Definition at line 245 of file interface.cc.
References ARegion::winrct, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by ui_region_contains_rect_px().
| void uiStyleInit | ( | ) |
Called on each startup.blend read, reading without uiFont will create one.
Second for rendering else we get threading problems,
Definition at line 472 of file interface_style.cc.
References BLF_cache_flush_set_fn(), BLF_default_set(), BLF_default_size(), BLF_disable(), BLF_enable(), BLF_HINTING_FULL, BLF_HINTING_NONE, BLF_HINTING_SLIGHT, BLF_load(), BLF_load_default(), BLF_load_font_stack(), BLF_load_mono_default(), BLF_load_unique(), blf_mono_font, blf_mono_font_render, BLF_MONOCHROME, BLF_NONE, BLF_RENDER_SUBPIXELAA, BLF_unload_all(), BLI_addtail(), BLI_assert, CLAMP, CLOG_WARN, uiFont::filepath, G, G_DEBUG, LISTBASE_FOREACH, LOG, MEM_callocN(), uiFontStyle::points, STRNCPY(), U, ui_style_new(), UI_widgetbase_draw_cache_flush(), UIFONT_CUSTOM1, UIFONT_DEFAULT, uiFont::uifont_id, USER_TEXT_DISABLE_AA, USER_TEXT_HINTING_FULL, USER_TEXT_HINTING_NONE, USER_TEXT_HINTING_SLIGHT, USER_TEXT_RENDER_SUBPIXELAA, and uiStyle::widget.
Referenced by UI_init_userdef(), UI_reinit_font(), and UI_style_init_default().
| bool ATTR_WARN_UNUSED_RESULT |
Definition at line 1529 of file interface_intern.hh.
|
extern |
Definition at line 298 of file interface_widgets.cc.
Referenced by widget_progress_type_ring().
|
extern |
Definition at line 1659 of file interface.cc.
Referenced by ui_get_radialbut_vec().
|
extern |
Definition at line 1671 of file interface.cc.
Referenced by ui_but_pie_dir().
|
extern |
Definition at line 1670 of file interface.cc.
Referenced by ui_but_pie_direction_string().