|
Blender V4.3
|
#include <functional>#include "BLI_compiler_attrs.h"#include "BLI_math_vector_types.hh"#include "BLI_rect.h"#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_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 | uiPopoverCreateFunc = std::function<void(bContext *, uiLayout *, PanelType *)> |
| 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 169 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 172 of file interface_intern.hh.
Referenced by ui_get_radialbut_vec(), ui_pie_menu_level_create(), and uiItemsFullEnumO_items().
Definition at line 134 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 57 of file interface_intern.hh.
Referenced by ui_item_rna_size(), uiItemEnumR(), uiItemEnumR_prop(), uiItemEnumR_string_prop(), and uiItemFullR().
| #define RNA_NO_INDEX -1 |
Definition at line 56 of file interface_intern.hh.
Referenced by CurveProfile_buttons_layout(), draw_export_properties(), template_search_buttons(), ui_item_rna_is_expand(), ui_item_rna_size(), blender::ed::space_node::ui_node_draw_input(), UI_pie_menu_invoke_from_rna_enum(), uiItemFullR(), uiItemR(), uilist_draw_item_default(), and uiTemplateAssetView().
| #define UI_BITBUT_ROW | ( | min, | |
| max ) (((max) >= 31 ? 0xFFFFFFFF : (1 << ((max) + 1)) - 1) - ((min) ? ((1 << (min)) - 1) : 0)) |
Definition at line 144 of file interface_intern.hh.
Definition at line 138 of file interface_intern.hh.
Referenced by ui_but_is_pushed_ex().
Definition at line 141 of file interface_intern.hh.
Definition at line 140 of file interface_intern.hh.
Definition at line 139 of file interface_intern.hh.
Referenced by ui_apply_but_TOG().
Definition at line 59 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 66 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 67 of file interface_intern.hh.
Referenced by ui_menu_scroll_test().
| #define UI_MENU_SCROLL_PAD (4 * UI_SCALE_FAC) |
Definition at line 68 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 63 of file interface_intern.hh.
Referenced by ui_popup_block_position(), and widget_draw_text_icon().
Definition at line 61 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 1338 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 71 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 1331 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 1336 of file interface_intern.hh.
Referenced by ui_block_bounds_calc_popup(), ui_popup_block_clip(), ui_popup_block_position(), ui_popup_block_refresh(), ui_searchbox_butrect(), and UI_searchbox_size_y().
| #define UI_RADIAL_DIRECTION_NEXT | ( | dir | ) | RadialDirection((int(dir) + 1) % (int(UI_RADIAL_NW) + 1)) |
Next direction (clockwise).
Definition at line 116 of file interface_intern.hh.
Referenced by ui_but_isect_pie_seg().
| #define UI_RADIAL_DIRECTION_PREV | ( | dir | ) | RadialDirection(((int(dir) + int(UI_RADIAL_NW))) % (int(UI_RADIAL_NW) + 1)) |
Previous direction (counter-clockwise).
Definition at line 118 of file interface_intern.hh.
Referenced by ui_but_isect_pie_seg().
| #define UI_RADIAL_MASK_ALL_AXIS_ALIGNED |
Definition at line 125 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 122 of file interface_intern.hh.
Referenced by ui_draw_pie_center().
| #define UI_TEXT_MARGIN_X 0.4f |
Definition at line 1330 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 148 of file interface_intern.hh.
| #define USE_UIBUT_SPATIAL_ALIGN |
Use new 'align' computation code.
Definition at line 151 of file interface_intern.hh.
| using uiBlockHandleCreateFunc = uiBlock *(*)(bContext *C, uiPopupBlockHandle *handle, void *arg1) |
Definition at line 871 of file interface_intern.hh.
| using uiButFindPollFn = bool (*)(const uiBut *but, const void *customdata) |
Definition at line 1482 of file interface_intern.hh.
| using uiPopoverCreateFunc = std::function<void(bContext *, uiLayout *, PanelType *)> |
Definition at line 1036 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 74 of file interface_intern.hh.
| anonymous enum |
Definition at line 154 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 1249 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 523 of file interface_intern.hh.
| enum RadialDirection |
| Enumerator | |
|---|---|
| UI_RADIAL_NONE | |
| UI_RADIAL_N | |
| UI_RADIAL_NE | |
| UI_RADIAL_E | |
| UI_RADIAL_SE | |
| UI_RADIAL_S | |
| UI_RADIAL_SW | |
| UI_RADIAL_W | |
| UI_RADIAL_NW | |
Definition at line 103 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 530 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 1283 of file interface_intern.hh.
| ENUM_OPERATORS | ( | uiButtonGroupFlag | , |
| UI_BUTTON_GROUP_PANEL_HEADER | ) |
| wmKeyMap * eyedropper_colorband_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 64 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().
| wmKeyMap * eyedropper_modal_keymap | ( | wmKeyConfig * | keyconf | ) |
Definition at line 33 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().
| 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 166 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, icon_draw_icon(), icon_draw_rect_input_text(), IFACE_, int, SNPRINTF, str, ui_event_icon_offset(), w(), and rctf::xmin.
Referenced by icon_draw_size().
| std::optional< blender::StringRefNull > UI_asset_shelf_idname_from_button_context | ( | const uiBut * | but | ) |
Definition at line 98 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 468 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 442 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 641 of file interface_query.cc.
References uiBlock::buttons, and LISTBASE_FOREACH.
Referenced by ui_but_update_view_for_active(), 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 3834 of file interface.cc.
References BLI_addtail(), uiBlock::dynamic_listeners, uiBlockDynamicListener::listener_func, and MEM_mallocN.
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 366 of file interface_align.cc.
References uiBut::alignnr, ARRAY_SIZE, BLI_assert, block_align_proximity_compute(), block_align_stitch_neighbors(), ButAlign::borders, ButAlign::but, uiBlock::buttons, copy_v4_fl(), ButAlign::dists, DOWN, uiBut::drawflag, fabsf, FLT_MAX, IS_EQF, LEFT, LISTBASE_FOREACH, MAX_DELTA, MEM_freeN(), MEM_mallocN, ButAlign::neighbors, OPPOSITE, RIGHT, SIDE1, SIDE2, SIDE_TO_UI_BUT_ALIGN, TOP, TOTSIDES, ui_block_align_but_to_region(), ui_block_align_butal_cmp(), and UI_BTYPE_TAB.
Referenced by UI_block_end_ex().
| void ui_block_bounds_calc | ( | uiBlock * | block | ) |
Definition at line 436 of file interface.cc.
References BLI_listbase_is_empty(), BLI_rctf_init_minmax(), BLI_rctf_size_x(), BLI_rctf_union(), uiBlock::bounds, uiBlock::buttons, ListBase::first, LISTBASE_FOREACH, max_ff(), uiBlock::minbounds, uiBlock::panel, uiBlock::rect, uiBlock::safety, Panel::sizex, Panel::sizey, uiBut::str, STRPREFIX, 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_end_ex(), ui_offset_panel_block(), and ui_update_flexible_spacing().
Definition at line 10563 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(), UI_PIE_INITIAL_DIRECTION, UI_PIE_INVALID_DIR, and UI_SCALE_FAC.
Referenced by ui_pie_handler(), and ui_popup_block_refresh().
| ColorManagedDisplay * ui_block_cm_display_get | ( | uiBlock * | block | ) |
Definition at line 4125 of file interface.cc.
References uiBlock::display_device, and IMB_colormanagement_display_get_named().
Referenced by ui_block_cm_to_display_space_v3(), ui_draw_but_COLORBAND(), and ui_tooltip_data_from_button_or_extra_icon().
Definition at line 4130 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_tooltip_data_from_button_or_extra_icon(), and widget_swatch().
| ColorPicker * ui_block_colorpicker_create | ( | uiBlock * | block | ) |
Definition at line 908 of file interface_region_color_picker.cc.
References BLI_addhead(), uiBlock::color_pickers, and ColorPickerData::list.
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 748 of file interface_query.cc.
References ui_block_find_mouse_over_ex(), and wmEvent::xy.
Referenced by UI_region_block_find_mouse_over().
| void ui_block_free_views | ( | uiBlock * | block | ) |
Definition at line 82 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 883 of file interface_region_color_picker.cc.
References uiBlock::block_event_func, copy_v3_v3(), uiBlock::direction, uiBut::editvec, uiBlock::flag, uiBlock::is_color_gamma_picker, 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, UI_EMBOSS, and UI_UNIT_X.
Referenced by ui_block_open_begin().
| bool ui_block_is_menu | ( | const uiBlock * | block | ) |
Definition at line 652 of file interface_query.cc.
References uiBlock::flag, UI_BLOCK_KEEP_OPEN, and UI_BLOCK_LOOP.
Referenced by UI_block_can_add_separator(), ui_block_func_POPOVER(), ui_block_is_popup_any(), ui_but_is_drag_toggle(), ui_do_but_TOG(), ui_handle_button_event(), ui_handle_menu_button(), ui_handle_menu_event(), ui_handle_menus_recursive(), ui_menu_scroll_apply_offset_y(), ui_mouse_motion_towards_check(), ui_popup_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(), uiItemS_ex(), and widget_draw_text_icon().
| bool ui_block_is_pie_menu | ( | const uiBlock * | block | ) |
Definition at line 664 of file interface_query.cc.
References uiBlock::flag, and UI_BLOCK_PIE_MENU.
Referenced by UI_block_can_add_separator(), ui_block_is_popup_any(), ui_handle_button_event(), ui_handle_menu_button(), ui_tooltip_data_from_button_or_extra_icon(), uiItemS_ex(), widget_draw_icon(), and widget_draw_text_icon().
| bool ui_block_is_popover | ( | const uiBlock * | block | ) |
Definition at line 659 of file interface_query.cc.
References uiBlock::flag, and UI_BLOCK_POPOVER.
Referenced by ui_block_is_popup_any(), ui_def_but(), and ui_def_but_operator_ptr().
| bool ui_block_is_popup_any | ( | const uiBlock * | block | ) |
Definition at line 669 of file interface_query.cc.
References ui_block_is_menu(), ui_block_is_pie_menu(), and ui_block_is_popover().
Referenced by ui_do_but_SCROLL(), ui_draw_layout_panels_backdrop(), ui_popup_context_menu_for_button(), and uiItemSpacer().
| void ui_block_new_button_group | ( | uiBlock * | block, |
| uiButtonGroupFlag | flag ) |
Every function that adds a set of buttons must create another group, then ui_def_but adds buttons to the current group (the last).
Definition at line 17 of file interface_button_group.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), uiBlock::button_groups, flag, uiButtonGroup::flag, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::Vector< T, InlineBufferCapacity, Allocator >::last(), and UI_BUTTON_GROUP_LOCK.
Referenced by ui_button_group_add_but(), ui_item_menu(), UI_panel_header_buttons_begin(), UI_panel_header_buttons_end(), uiItemFullO_ptr_ex(), uiItemFullR(), uiItemL_(), and uiItemPointerR_prop().
Definition at line 116 of file interface.cc.
References BLI_rcti_size_x(), BLI_rcti_size_y(), float, Panel::ofsx, Panel::ofsy, uiBlock::panel, uiBlock::winmat, 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 153 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 142 of file interface.cc.
References int, ui_block_to_window_fl(), x, and y.
Definition at line 135 of file interface.cc.
References ui_block_to_region_fl().
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 163 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 173 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 277 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 283 of file interface_view.cc.
References uiBlock::buttons, blender::ui::AbstractViewItem::get_view(), LISTBASE_FOREACH, uiBlock::oldblock, ui_block_view_find_matching_in_old_block_impl(), UI_BTYPE_VIEW_ITEM, UI_view_item_matches(), and uiButViewItem::view_item.
Referenced by blender::ui::AbstractTreeViewItem::is_hovered().
| void ui_block_views_bounds_calc | ( | const uiBlock * | block | ) |
Definition at line 129 of file interface_view.cc.
References ViewLink::views_bounds_calc().
Referenced by UI_block_end_ex(), and UI_panels_end().
Definition at line 145 of file interface_view.cc.
References LISTBASE_FOREACH, and uiBlock::views.
Referenced by UI_block_draw().
| void ui_block_views_listen | ( | const uiBlock * | block, |
| const wmRegionListenerParams * | listener_params ) |
Definition at line 134 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 9289 of file interface_handlers.cc.
References uiBut::block, button_activate_init(), BUTTON_ACTIVATE_OVER, 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 9306 of file interface_handlers.cc.
References button_activate_init(), and BUTTON_ACTIVATE_OVER.
Referenced by ui_block_func_POPUP().
Definition at line 8966 of file interface_handlers.cc.
References uiBut::active, button_activate_exit(), and uiHandleButtonData::cancel.
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 3046 of file interface_handlers.cc.
References uiBut::active, button_activate_state(), BUTTON_STATE_EXIT, uiTextEdit::edit_string, MEM_callocN, 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, | ||
| bool | results_are_suggestions ) |
Definition at line 2796 of file interface_layout.cc.
References uiBut::block, uiRNACollectionSearch::butstore, uiRNACollectionSearch::butstore_block, uiBut::drawflag, uiBut::flag, uiBut::hardmax, MEM_mallocN, 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, uiBut::str, uiRNACollectionSearch::target_prop, uiRNACollectionSearch::target_ptr, uiBut::type, UI_BTYPE_SEARCH_MENU, ui_but_change_type(), UI_BUT_DISABLED, UI_but_func_search_set(), UI_but_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 uiDefAutoButR(), uiItemFullR(), and uiItemPointerR_prop().
| void ui_but_add_shortcut | ( | uiBut * | but, |
| const char * | shortcut_str, | ||
| bool | do_strip ) |
Definition at line 1218 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(), UI_but_hint_drawstr_set(), ui_menu_block_set_keymaps(), and uiItemMenuEnumFullO_ptr().
Definition at line 737 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 298 of file interface_anim.cc.
References blender::animrig::autokeyframe_property(), uiBut::rnaindex, uiBut::rnapoin, and uiBut::rnaprop.
Referenced by ui_apply_but_autokey().
| void ui_but_anim_copy_driver | ( | bContext * | C | ) |
Definition at line 304 of file interface_anim.cc.
References WM_OP_INVOKE_DEFAULT, and WM_operator_name_call().
| void ui_but_anim_decorate_cb | ( | bContext * | C, |
| void * | arg_but, | ||
| void * | arg_dummy ) |
Definition at line 316 of file interface_anim.cc.
References uiBut::active, CTX_wm_manager(), uiBut::flag, wmWindowManager::op_undo_depth, ot, RNA_boolean_set(), uiBut::rnaindex, ui_but_anim_decorate_find_attached_button(), UI_BUT_ANIMATED_KEY, UI_BUT_DRIVEN, WM_OP_INVOKE_DEFAULT, WM_operator_name_call_ptr(), WM_operator_properties_create_ptr(), WM_operator_properties_free(), and WM_operatortype_find().
Referenced by uiItemDecoratorR_prop().
| void ui_but_anim_decorate_update_from_flag | ( | uiButDecorator * | but | ) |
Definition at line 137 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(), 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 232 of file interface_anim.cc.
References BKE_driver_invalidate_expression(), uiBut::block, 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, 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 175 of file interface_anim.cc.
References BLI_strncpy(), 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 197 of file interface_anim.cc.
References BKE_driver_invalidate_expression(), uiBut::block, CTX_data_main(), DEG_relations_tag_update(), FCurve::driver, DRIVER_TYPE_PYTHON, uiBlock::evil_C, ChannelDriver::expression, 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 63 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, fcurve_frame_has_keyframe(), fcurve_is_changed(), ListBase::first, uiBut::flag, AnimData::nla_tracks, NLATIME_CONVERT_UNMAP, 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 310 of file interface_anim.cc.
References WM_OP_INVOKE_DEFAULT, and WM_operator_name_call().
| bool ui_but_can_align | ( | const uiBut * | but | ) |
Definition at line 99 of file interface_align.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), ELEM, uiBut::rect, uiBut::type, UI_BTYPE_CHECKBOX, UI_BTYPE_CHECKBOX_N, UI_BTYPE_LABEL, UI_BTYPE_SEPR, UI_BTYPE_SEPR_LINE, UI_BTYPE_SEPR_SPACER, and UI_BTYPE_TAB.
Referenced by block_align_proximity_compute(), ui_def_but(), and ui_item_align().
Reallocate the button (new address is returned) for a new button type. This should generally be avoided and instead the correct type be created right away.
Definition at line 4204 of file interface.cc.
References BLI_assert, BLI_insertlinkafter(), BLI_remlink(), uiBut::block, uiBlock::buttons, uiBut::layout, uiBut::poin, uiBut::prev, uiBut::type, ui_but_mem_delete(), ui_but_new(), ui_button_group_replace_but_ptr(), UI_editsource_but_replace(), UI_editsource_enable_check(), ui_layout_replace_but_ptr(), uiLayoutGetBlock(), and UNUSED_VARS_NDEBUG.
Referenced by ui_but_add_search(), ui_item_array(), and uiItemFullR().
| void ui_but_clipboard_free | ( | ) |
Definition at line 2946 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 108 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().
| bool ui_but_contains_password | ( | const uiBut * | but | ) |
Definition at line 598 of file interface_query.cc.
References PROP_PASSWORD, RNA_property_subtype(), and uiBut::rnaprop.
Referenced by ui_but_copy().
Definition at line 271 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(), rcti::xmax, and rcti::xmin.
Referenced by ui_do_but_BLOCK(), ui_do_but_COLOR(), and ui_do_but_EXIT().
Definition at line 239 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 244 of file interface_query.cc.
References BLI_rctf_isect(), and uiBut::rect.
Referenced by ui_but_find_rect_over(), and UI_key_event_operator_string().
| bool ui_but_context_poll_operator | ( | bContext * | C, |
| wmOperatorType * | ot, | ||
| const uiBut * | but ) |
Definition at line 1913 of file interface.cc.
References uiBut::opcontext, ot, params, ui_but_context_poll_operator_ex(), and WM_OP_INVOKE_DEFAULT.
Referenced by UI_block_end_ex(), ui_list_invoke_item_operator(), and ui_list_is_hovering_draggable_but().
| 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 1877 of file interface.cc.
References BLI_assert_msg, uiBut::context, 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 2811 of file interface.cc.
References BKE_unit_name_to_alt(), BLI_strdup(), uiBut::block, MEM_freeN(), RNA_SUBTYPE_UNIT_VALUE, str, 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 88 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 95 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(), ui_list_is_hovering_draggable_but(), and widget_draw_icon().
Definition at line 2782 of file interface.cc.
References BLI_assert, uiBut::block, uiBlock::buttons, uiBut::flag, LISTBASE_FOREACH, and UI_BUT_DRAG_MULTI.
Referenced by ui_draw_but(), widget_draw_text(), and widget_draw_text_icon().
Definition at line 100 of file interface_drag.cc.
References 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_event_drag_image(), 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 609 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(), and ui_but_drawstr_without_sep_char().
| blender::StringRef ui_but_drawstr_without_sep_char | ( | const uiBut * | but | ) |
Definition at line 620 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(), and ui_handle_afterfunc_add_operator_ex().
Definition at line 9311 of file interface_handlers.cc.
References uiBut::active, BLI_assert, BLI_findindex(), uiBut::block, and data.
Referenced by UI_but_execute(), and ui_multibut_states_apply().
Definition at line 9325 of file interface_handlers.cc.
References uiBut::active, uiBut::block, button_activate_exit(), 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 1655 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().
Definition at line 357 of file interface_query.cc.
References KM_CTRL, wmEvent::modifier, ui_but_find_mouse_over_ex(), and wmEvent::xy.
Referenced by eyedropper_get_property_button_under_mouse(), ui_handle_button_event(), ui_handler_region_menu(), and ui_list_activate_hovered_row().
| 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.
Referenced by ui_but_list_row_text_activate(), ui_drag_toggle_set(), ui_handle_button_over(), ui_handler_region_drag_toggle(), and ui_list_is_hovering_draggable_but().
Definition at line 804 of file interface.cc.
References uiBlock::buttons, LISTBASE_FOREACH, and ui_but_equals_old().
Referenced by UI_butstore_update().
Definition at line 794 of file interface.cc.
References uiBlock::buttons, LISTBASE_FOREACH, and ui_but_equals_old().
Referenced by UI_but_active_only_ex(), and ui_but_update_from_old_block().
Definition at line 363 of file interface_query.cc.
References BLI_assert, BLI_rctf_isect(), BLI_rctf_rcti_copy(), LISTBASE_FOREACH, LISTBASE_FOREACH_BACKWARD, 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_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 614 of file interface_handlers.cc.
References BLI_assert, ELEM, uiBut::flag, uiBut::next, uiBut::prev, ui_but_find_select_in_enum__cmp(), and UI_SELECT.
Referenced by ui_do_but_TOG().
Definition at line 557 of file interface_query.cc.
References uiBlock::buttons, LISTBASE_FOREACH, and ui_but_is_editable().
Referenced by button_activate_init(), and ui_handle_menu_event().
| bool ui_but_has_array_value | ( | const uiBut * | but | ) |
Definition at line 130 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 178 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().
Definition at line 155 of file interface_query.cc.
References uiBut::drawflag, uiBut::flag, uiBut::icon, uiBut::iconadd, UI_BUT_ICON_REVERSE, and UI_HAS_ICON.
Referenced by menu_items_from_ui_create_item_from_button(), and widget_draw_text_icon().
| bool ui_but_is_bool | ( | const uiBut * | but | ) |
Definition at line 2512 of file interface.cc.
References ELEM, PROP_BOOLEAN, PROP_ENUM, RNA_property_type(), uiBut::rnaprop, uiBut::type, UI_BTYPE_BUT_TOGGLE, UI_BTYPE_CHECKBOX, UI_BTYPE_CHECKBOX_N, UI_BTYPE_ICON_TOGGLE, UI_BTYPE_ICON_TOGGLE_N, UI_BTYPE_ROW, UI_BTYPE_TAB, UI_BTYPE_TOGGLE, and UI_BTYPE_TOGGLE_N.
Referenced by ui_drag_toggle_but_is_supported(), and ui_drag_toggle_but_pushed_state().
| bool ui_but_is_color_gamma | ( | uiBut * | but | ) |
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 97 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_colorpicker_hex_rna_cb(), ui_draw_but_HSVCIRCLE(), ui_perceptual_to_scene_linear_space(), ui_scene_linear_to_perceptual_space(), ui_tooltip_data_from_button_or_extra_icon(), ui_update_color_picker_buts_rgba(), and widget_swatch().
Check if this button is similar enough to be grouped with another.
Definition at line 2570 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 579 of file interface_query.cc.
References ELEM, uiBut::type, UI_BTYPE_CURVE, UI_BTYPE_CURVEPROFILE, UI_BTYPE_HSVCIRCLE, UI_BTYPE_HSVCUBE, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER, UI_BTYPE_TRACK_PREVIEW, and USER_CONTINUOUS_MOUSE.
Referenced by button_activate_state(), ui_do_but_NUM(), ui_numedit_begin(), ui_numedit_but_CURVE(), ui_numedit_but_CURVEPROFILE(), ui_numedit_but_HSVCIRCLE(), ui_numedit_but_HSVCUBE(), ui_numedit_but_NUM(), and ui_numedit_but_SLI().
| bool ui_but_is_editable | ( | const uiBut * | but | ) |
Definition at line 36 of file interface_query.cc.
References ELEM, uiBut::type, UI_BTYPE_LABEL, UI_BTYPE_LISTBOX, UI_BTYPE_PROGRESS, UI_BTYPE_ROUNDBOX, UI_BTYPE_SEPR, and UI_BTYPE_SEPR_LINE.
Referenced by UI_block_active_only_flagged_buttons(), ui_block_func_POPOVER(), ui_block_func_POPUP(), ui_but_first(), ui_but_last(), ui_but_next(), ui_but_prev(), and ui_handle_button_event().
| bool ui_but_is_editable_as_text | ( | const uiBut * | but | ) |
Definition at line 47 of file interface_query.cc.
References ELEM, uiBut::type, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER, UI_BTYPE_SEARCH_MENU, and UI_BTYPE_TEXT.
Referenced by ui_handle_button_event(), ui_textedit_next_but(), and ui_textedit_prev_but().
| bool ui_but_is_editing | ( | const uiBut * | but | ) |
Definition at line 570 of file interface_handlers.cc.
References uiBut::active, BUTTON_STATE_NUM_EDITING, BUTTON_STATE_TEXT_EDITING, and ELEM.
Referenced by ui_but_update_ex().
| bool ui_but_is_float | ( | const uiBut * | but | ) |
Definition at line 2491 of file interface.cc.
References uiBut::poin, uiBut::pointype, PROP_FLOAT, RNA_property_type(), uiBut::rnaprop, and UI_BUT_POIN_FLOAT.
Referenced by ui_but_string_eval_number(), ui_but_string_get_ex(), ui_but_string_set(), ui_but_update_ex(), ui_do_but_NUM(), ui_do_but_SLI(), ui_numedit_begin(), ui_numedit_but_NUM(), ui_numedit_but_SLI(), and ui_textedit_begin().
| bool ui_but_is_interactive | ( | const uiBut * | but, |
| bool | labeledit ) |
Definition at line 109 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 65 of file interface_query.cc.
References ELEM, uiBut::emboss, uiBut::flag, blender::ui::AbstractViewItem::is_interactive(), uiBut::tip, uiBut::tip_func, uiBut::type, UI_BTYPE_LABEL, UI_BTYPE_LISTBOX, UI_BTYPE_LISTROW, UI_BTYPE_PREVIEW_TILE, UI_BTYPE_ROUNDBOX, UI_BTYPE_SEPR, UI_BTYPE_SEPR_LINE, UI_BTYPE_TEXT, UI_BTYPE_VIEW_ITEM, ui_but_drag_is_draggable(), UI_EMBOSS_NONE, UI_EMBOSS_NONE_OR_STATUS, UI_HIDDEN, UI_SCROLLED, and uiButViewItem::view_item.
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 124 of file interface_query.cc.
References ELEM, uiBut::type, UI_BTYPE_BUT, UI_BTYPE_DECORATOR, and ui_but_is_toggle().
Referenced by ui_draw_but(), and ui_handle_button_event().
Definition at line 2289 of file interface.cc.
References ui_but_is_pushed_ex(), and UI_BUT_VALUE_UNSET.
Referenced by ui_drag_toggle_but_pushed_state().
Check if the button is pushed, this is only meaningful for some button types.
Definition at line 2192 of file interface.cc.
References uiBut::bit, uiBut::bitnr, uiBut::custom_data, PointerRNA::data, uiBut::drawflag, ELEM, uiBut::hardmax, uiBut::hardmin, int, blender::ui::AbstractViewItem::is_active(), 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, state, uiBut::type, UI_BITBUT_TEST, UI_BTYPE_BUT, UI_BTYPE_BUT_TOGGLE, UI_BTYPE_CHECKBOX, UI_BTYPE_CHECKBOX_N, UI_BTYPE_COLOR, UI_BTYPE_DECORATOR, UI_BTYPE_HOTKEY_EVENT, UI_BTYPE_ICON_TOGGLE, UI_BTYPE_ICON_TOGGLE_N, UI_BTYPE_KEY_EVENT, UI_BTYPE_LISTROW, UI_BTYPE_ROW, UI_BTYPE_TAB, UI_BTYPE_TOGGLE, UI_BTYPE_TOGGLE_N, UI_BTYPE_VIEW_ITEM, UI_BUT_CHECKBOX_INVERT, UI_GET_BUT_VALUE_INIT, and uiButViewItem::view_item.
Referenced by ui_but_is_pushed(), and ui_but_update_select_flag().
| bool ui_but_is_rna_valid | ( | uiBut * | but | ) |
Definition at line 2596 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 52 of file interface_query.cc.
References ELEM, uiBut::type, UI_BTYPE_BUT_TOGGLE, UI_BTYPE_CHECKBOX, UI_BTYPE_CHECKBOX_N, UI_BTYPE_ICON_TOGGLE, UI_BTYPE_ICON_TOGGLE_N, UI_BTYPE_ROW, UI_BTYPE_TOGGLE, and UI_BTYPE_TOGGLE_N.
Referenced by ui_but_is_popover_once_compat().
| bool ui_but_is_unit | ( | const uiBut * | but | ) |
Definition at line 2540 of file interface.cc.
References uiBut::block, ELEM, PROP_UNIT_NONE, PROP_UNIT_ROTATION, PROP_UNIT_TIME, PROP_UNIT_TIME_ABSOLUTE, 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 567 of file interface_query.cc.
References uiBlock::buttons, ListBase::last, uiBut::prev, and ui_but_is_editable().
Referenced by ui_handle_menu_event(), and uiTemplateRecentFiles().
Definition at line 4478 of file interface_handlers.cc.
References uiBut::active, uiPopupBlockHandle::direction, and uiHandleButtonData::menu.
Referenced by widget_roundbox_set().
| bool ui_but_menu_draw_as_popover | ( | const uiBut * | but | ) |
Definition at line 4679 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().
Definition at line 61 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 52 of file interface_region_menu_popup.cc.
References BLI_assert, uiBut::menu_step_func, PROP_ENUM, RNA_property_type(), uiBut::rnaprop, uiBut::type, and UI_BTYPE_MENU.
Referenced by ui_but_menu_step(), and ui_but_supports_cycling().
Definition at line 546 of file interface_query.cc.
References uiBut::next, and ui_but_is_editable().
Referenced by ui_handle_menu_event().
Definition at line 1593 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 174 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 5968 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, STREQ, uiBut::type, UI_BTYPE_SEARCH_MENU, and UI_BTYPE_TEXT.
Referenced by widget_draw_text().
Definition at line 535 of file interface_query.cc.
References uiBut::prev, and ui_but_is_editable().
Referenced by ui_handle_menu_event().
| void ui_but_range_set_hard | ( | uiBut * | but | ) |
Definition at line 3358 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 3380 of file interface.cc.
References CLAMP, double(), 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 703 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 708 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 4699 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(), uiBut::menu_create_func, uiBut::poin, uiBut::type, UI_BTYPE_MENU, ui_def_but_rna__menu(), and ui_def_but_rna__menu_type().
Referenced by uiItemFullR_with_menu().
| void ui_but_rna_menu_convert_to_panel_type | ( | uiBut * | but, |
| const char * | panel_type ) |
Definition at line 4668 of file interface.cc.
References BLI_assert, BLI_strdup(), ELEM, uiBut::func_argN, uiBut::func_argN_copy_fn, uiBut::func_argN_free_fn, MEM_dupallocN, MEM_freeN(), uiBut::menu_create_func, uiBut::type, UI_BTYPE_COLOR, UI_BTYPE_MENU, and ui_def_but_rna__panel_type().
Referenced by uiItemFullR_with_popover().
| PropertyScaleType ui_but_scale_type | ( | const uiBut * | but | ) |
Definition at line 2504 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 1083 of file interface_region_search.cc.
References uiBut::block, uiBut::drawstr, uiBlock::evil_C, uiBut::hardmax, uiSearchItems::maxitem, uiSearchItems::maxstrlen, MEM_callocN, MEM_freeN(), uiSearchItems::more, uiSearchItems::names, PROP_STRING, uiButSearch::results_are_suggestions, RNA_property_type(), uiBut::rnaprop, uiSearchItems::totitem, UI_but_flag_enable(), UI_BUT_REDALERT, UI_search_items_find_index(), and ui_searchbox_update_fn().
Referenced by UI_but_func_search_set().
Definition at line 8978 of file interface_handlers.cc.
References 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 3030 of file interface_handlers.cc.
References uiBut::active, BLI_assert, button_activate_state(), BUTTON_STATE_EXIT, BUTTON_STATE_TEXT_EDITING, uiBut::changed, uiBut::flag, uiHandleButtonData::searchbox, uiHandleButtonData::text_edit, uiBut::type, UI_BTYPE_SEARCH_MENU, UI_BUT_DISABLED, ui_searchbox_update(), and ui_textedit_string_set().
Referenced by drop_name_invoke(), and ui_but_paste_text().
| bool ui_but_string_eval_number | ( | bContext * | C, |
| const uiBut * | but, | ||
| const char * | str, | ||
| double * | r_value ) |
Definition at line 3165 of file interface.cc.
References 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 3031 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().
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 3036 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, str, uiBut::type, UI_BTYPE_SEARCH_MENU, UI_BTYPE_TEXT, and UNLIKELY.
Referenced by ui_textedit_begin().
| void ui_but_string_get_ex | ( | uiBut * | but, |
| char * | str, | ||
| 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 fallback to the button default. |
| use_exp_float | Use exponent representation of floats when out of reasonable range (outside of 1e3/1e-3). |
Definition at line 2774 of file interface.cc.
References ELEM, uiBut::hardmax, uiBut::type, UI_BTYPE_SEARCH_MENU, UI_BTYPE_TEXT, and UI_MAX_DRAW_STR.
Referenced by ui_searchbox_autocomplete(), and ui_textedit_begin().
Definition at line 3192 of file interface.cc.
References BLI_assert, BLI_strncpy(), BLI_strncpy_utf8(), uiBut::block, 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(), RNA_property_collection_lookup_string(), RNA_property_editable(), RNA_property_enum_set(), RNA_property_enum_value(), RNA_property_pointer_set(), RNA_property_pointer_type(), RNA_property_string_set(), RNA_property_type(), RNA_struct_name_property(), uiBut::rnapoin, uiBut::rnaprop, uiButSearch::rnasearchpoin, uiButSearch::rnasearchprop, str, uiBut::type, UI_BTYPE_SEARCH_MENU, UI_BTYPE_TAB, UI_BTYPE_TEXT, ui_but_anim_expression_create(), ui_but_anim_expression_set(), ui_but_is_float(), UI_but_is_utf8(), ui_but_string_eval_number(), ui_but_value_set(), and WM_report_banner_show().
Referenced by ui_apply_but_NUM(), ui_apply_but_TAB(), ui_apply_but_TEX(), ui_but_paste_numeric_value(), and ui_multibut_states_apply().
| bool ui_but_supports_cycling | ( | const uiBut * | but | ) |
Checks if the button supports cycling next/previous menu items (ctrl+mouse-wheel).
Definition at line 2605 of file interface.cc.
References ELEM, uiBut::menu_step_func, uiBut::type, UI_BTYPE_COLOR, UI_BTYPE_LISTBOX, UI_BTYPE_MENU, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER, UI_BTYPE_ROW, and ui_but_menu_step_poll().
Referenced by ui_do_but_BLOCK(), and ui_handle_panel_category_cycling().
| void ui_but_text_password_hide | ( | char | password_str[128], |
| uiBut * | but, | ||
| bool | restore ) |
| size_t ui_but_tip_len_only_first_line | ( | const uiBut * | but | ) |
Definition at line 626 of file interface_query.cc.
References BLI_strchr_or_end(), and uiBut::tip.
Referenced by ui_apply_but_undo().
| 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 2042 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 4097 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(), uiDefIconTextMenuBut(), uiDefMenuBut(), and uiDefSearchBut().
| void ui_but_update_edited | ( | uiBut * | but | ) |
Definition at line 4102 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 9220 of file interface_handlers.cc.
References uiBut::active, uiBut::block, uiBut::changed, 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 2327 of file interface.cc.
References BLI_assert, copy_v3_v3(), uiBut::editvec, float, min_ii(), normalize_v3(), uiBut::poin, uiBut::pointype, PROP_FLOAT, RNA_property_array_length(), RNA_property_float_get_array(), RNA_property_float_get_index(), RNA_property_type(), uiBut::rnapoin, uiBut::rnaprop, uiBut::type, UI_BTYPE_UNITVEC, UI_BUT_POIN_CHAR, UI_BUT_POIN_FLOAT, and zero_v3().
Referenced by ui_block_open_begin(), ui_but_copy_color(), ui_but_drag_init(), ui_do_but_COLOR(), ui_do_but_HSVCIRCLE(), ui_do_but_HSVCUBE(), ui_draw_but_HSV_v(), ui_draw_but_HSVCIRCLE(), ui_draw_but_HSVCUBE(), ui_draw_but_UNITVEC(), ui_numedit_begin(), ui_numedit_but_HSVCIRCLE(), ui_numedit_but_HSVCUBE(), ui_tooltip_data_from_button_or_extra_icon(), and widget_swatch().
Definition at line 2374 of file interface.cc.
References BLI_assert, copy_v3_v3(), uiBut::editvec, min_ii(), uiBut::poin, uiBut::pointype, PROP_FLOAT, RNA_property_array_length(), RNA_property_float_set_array(), RNA_property_float_set_index(), RNA_property_type(), uiBut::rnapoin, uiBut::rnaprop, UI_BUT_POIN_CHAR, and UI_BUT_POIN_FLOAT.
Referenced by ui_apply_but_VEC(), ui_but_hsv_set(), ui_do_but_COLOR(), ui_do_but_HSVCIRCLE(), ui_do_but_HSVCUBE(), and ui_numedit_but_HSVCIRCLE().
Definition at line 2410 of file interface.cc.
References BLI_assert, copy_v4_v4(), uiBut::editvec, float, min_ii(), uiBut::poin, uiBut::pointype, PROP_FLOAT, RNA_property_array_length(), RNA_property_float_get_array(), RNA_property_float_get_index(), RNA_property_type(), uiBut::rnapoin, uiBut::rnaprop, UI_BUT_POIN_CHAR, UI_BUT_POIN_FLOAT, and zero_v4().
Referenced by ui_colorpicker_wheel_cb().
Definition at line 2454 of file interface.cc.
References BLI_assert, copy_v4_v4(), uiBut::editvec, min_ii(), uiBut::poin, uiBut::pointype, PROP_FLOAT, RNA_property_array_length(), RNA_property_float_set_array(), RNA_property_float_set_index(), RNA_property_type(), uiBut::rnapoin, uiBut::rnaprop, UI_BUT_POIN_CHAR, and UI_BUT_POIN_FLOAT.
Referenced by ui_colorpicker_wheel_cb(), and ui_update_color_picker_buts_rgba().
Definition at line 2613 of file interface.cc.
References BLI_assert, PointerRNA::data, double(), uiBut::editval, uiBut::poin, uiBut::pointype, PROP_BOOLEAN, PROP_ENUM, PROP_FLOAT, PROP_INT, RNA_property_array_check(), RNA_property_boolean_get(), RNA_property_boolean_get_index(), RNA_property_enum_get(), RNA_property_float_get(), RNA_property_float_get_index(), RNA_property_int_get(), RNA_property_int_get_index(), RNA_property_type(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, UI_BUT_POIN_CHAR, UI_BUT_POIN_FLOAT, UI_BUT_POIN_INT, and UI_BUT_POIN_SHORT.
Referenced by ui_apply_but_NUM(), ui_apply_but_TOG(), ui_but_range_set_soft(), UI_but_rna_enum_item_get(), ui_but_string_get_ex(), ui_colorpicker_create_mode_cb(), ui_multibut_add(), ui_numedit_begin_set_values(), widget_numslider(), and widget_scroll().
Definition at line 2678 of file interface.cc.
References uiBut::editval, 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(), UI_BUT_POIN_CHAR, UI_BUT_POIN_FLOAT, UI_BUT_POIN_INT, UI_BUT_POIN_SHORT, ui_but_update_select_flag(), and UI_BUT_VALUE_UNSET.
Referenced by ui_apply_but_BLOCK(), ui_apply_but_BUTM(), ui_apply_but_NUM(), ui_apply_but_ROW(), ui_apply_but_TAB(), ui_apply_but_TOG(), ui_but_string_set(), ui_but_update_ex(), ui_do_but_HOTKEYEVT(), ui_do_but_KEYEVT(), ui_handle_button_event(), and ui_multibut_restore().
Definition at line 31 of file interface_button_group.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), uiBlock::button_groups, uiButtonGroup::buttons, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::Vector< T, InlineBufferCapacity, Allocator >::last(), and ui_block_new_button_group().
Referenced by ui_layout_add_but().
| void ui_button_group_replace_but_ptr | ( | uiBlock * | block, |
| const uiBut * | old_but_ptr, | ||
| uiBut * | new_but ) |
Definition at line 41 of file interface_button_group.cc.
References uiBlock::button_groups, and ptr.
Referenced by ui_but_change_type(), and ui_but_update_from_old_block().
Definition at line 85 of file interface_region_color_picker.cc.
References hsl_to_rgb_v(), hsv_to_rgb_v(), and USER_CP_CIRCLE_HSL.
Referenced by ui_but_hsv_set(), ui_colorpicker_hsv_update_cb(), ui_colorpicker_wheel_cb(), ui_do_but_HSVCIRCLE(), ui_draw_but_HSVCIRCLE(), and ui_numedit_but_HSVCIRCLE().
Definition at line 73 of file interface_region_color_picker.cc.
References rgb_to_hsl_v(), rgb_to_hsv_v(), and USER_CP_CIRCLE_HSL.
Referenced by ui_color_picker_update_hsv().
Definition at line 59 of file interface_region_color_picker.cc.
References rgb_to_hsl_compat_v(), rgb_to_hsv_compat_v(), and USER_CP_CIRCLE_HSL.
Referenced by ui_color_picker_update_hsv(), ui_colorpicker_wheel_cb(), ui_do_but_HSVCIRCLE(), ui_draw_but_HSVCIRCLE(), and ui_numedit_but_HSVCIRCLE().
Definition at line 4401 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 asset_view_draw_item(), 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(), 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 4416 of file interface.cc.
References uiBut::drawflag, uiBut::flag, and uiBut::icon.
Referenced by uiItemFullR().
| 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 1304 of file interface_panel.cc.
References uiBlock::aspect, PanelType::flag, floor(), int, uiBlock::panel, panel_custom_data_active_get(), panel_draw_aligned_backdrop(), panel_draw_aligned_widgets(), panel_draw_highlight_border(), PANEL_TYPE_NO_HEADER, PNL_HEADER, Panel::type, 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 4801 of file interface_widgets.cc.
References uiBlock::aspect, BLI_assert, BLI_rcti_pad(), BLI_rcti_size_x(), BLI_rcti_size_y(), uiBut::block, uiWidgetStateInfo::but_flag, uiBut::col, copy_v4_v4_uchar(), uiWidgetType::custom, uiWidgetType::draw, uiBut::drawflag, uiBut::drawstr, uiBut::editstr, ELEM, uiBut::emboss, uiBlock::flag, uiBut::flag, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, uiButHSVCube::gradient_type, uiBut::hold_func, uiBut::icon, padding(), state, uiWidgetType::state, uiBut::str, uiWidgetColors::text, uiWidgetType::text, uiBlock::theme_style, bTheme::tui, uiBut::type, UI_BLOCK_NO_DRAW_OVERRIDDEN_STATE, UI_BLOCK_POPOVER_ONCE, UI_BLOCK_THEME_STYLE_POPUP, UI_BTYPE_BLOCK, UI_BTYPE_BUT, UI_BTYPE_BUT_MENU, UI_BTYPE_BUT_TOGGLE, UI_BTYPE_CHECKBOX, UI_BTYPE_CHECKBOX_N, UI_BTYPE_COLOR, UI_BTYPE_COLORBAND, UI_BTYPE_CURVE, UI_BTYPE_CURVEPROFILE, UI_BTYPE_DECORATOR, UI_BTYPE_EXTRA, UI_BTYPE_GRIP, UI_BTYPE_HISTOGRAM, UI_BTYPE_HSVCIRCLE, UI_BTYPE_HSVCUBE, UI_BTYPE_IMAGE, UI_BTYPE_LABEL, UI_BTYPE_LISTBOX, UI_BTYPE_LISTROW, UI_BTYPE_MENU, UI_BTYPE_NODE_SOCKET, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER, UI_BTYPE_POPOVER, UI_BTYPE_PREVIEW_TILE, UI_BTYPE_PROGRESS, UI_BTYPE_PULLDOWN, UI_BTYPE_ROUNDBOX, UI_BTYPE_ROW, UI_BTYPE_SCROLL, UI_BTYPE_SEARCH_MENU, UI_BTYPE_SEPR, UI_BTYPE_SEPR_LINE, UI_BTYPE_SEPR_SPACER, UI_BTYPE_TAB, UI_BTYPE_TEXT, UI_BTYPE_TOGGLE, UI_BTYPE_TOGGLE_N, UI_BTYPE_TRACK_PREVIEW, UI_BTYPE_UNITVEC, UI_BTYPE_VECTORSCOPE, UI_BTYPE_VIEW_ITEM, UI_BTYPE_WAVEFORM, 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_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_EMBOSS, UI_EMBOSS_NONE, UI_EMBOSS_NONE_OR_STATUS, UI_EMBOSS_PIE_MENU, UI_EMBOSS_PULLDOWN, 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_ICON_RADIO, UI_WTYPE_MENU_ITEM, UI_WTYPE_MENU_ITEM_PIE, UI_WTYPE_MENU_ITEM_UNPADDED, UI_WTYPE_MENU_NODE_LINK, UI_WTYPE_MENU_RADIO, 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, UNLIKELY, uiWidgetType::wcol, ThemeUI::wcol_box, 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 1325 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_COMP_F32, GPU_FETCH_FLOAT, 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, 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 1573 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, gl_shaded_color(), gl_shaded_color_get_fl(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, 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_3D_POINT_VARYING_SIZE_VARYING_COLOR, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), uiButCurveMapping::gradient_type, IMB_colormanagement_get_luminance(), imm_draw_box_wire_2d(), immAttr1f(), immAttr4fv(), immBegin(), immBindBuiltinProgram(), immEnd(), immRectf(), immUnbindProgram(), immUniformColor3fv(), immUniformColor3ub(), immUniformColor3ubv(), immUniformColor3ubvAlpha(), immUniformColor4fv(), immVertex2f(), immVertexFormat(), uiWidgetColors::inner, interp_v3_v3v3(), uiWidgetColors::item, len_squared_v3(), len_squared_v3v3(), linearrgb_to_srgb_v3_v3(), max_ff(), min_ff(), uiWidgetColors::outline, uiBut::poin, pos, rgb_to_hsv_v(), rgb_uchar_to_float(), CurveMapping::sample, swap_v3_v3(), CurveMap::table, TH_TEXT, TH_TEXT_HI, CurveMap::totpoint, ui_draw_but_curve_grid(), ui_draw_gradient(), UI_GetThemeColor4fv(), UI_GRAD_H, UI_SCALE_FAC, 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 1851 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, col, uiButCurveProfile::edit_profile, flag, float, gl_shaded_color(), gl_shaded_color_get_fl(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_line_smooth(), GPU_line_width(), GPU_point_size(), GPU_polygon_smooth(), GPU_PRIM_LINE_STRIP, GPU_PRIM_LINES, GPU_PRIM_POINTS, GPU_PRIM_TRIS, GPU_scissor(), GPU_scissor_get(), GPU_SHADER_3D_FLAT_COLOR, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), CurveProfilePoint::h1_loc, CurveProfilePoint::h2_loc, imm_draw_box_wire_2d(), immAttr4fv(), immBegin(), immBindBuiltinProgram(), immEnd(), immRectf(), immUnbindProgram(), immUniformColor3fv(), immUniformColor3ubv(), immUniformColor3ubvAlpha(), immVertex2f(), immVertexFormat(), uiWidgetColors::inner, interp_v3_v3v3(), uiWidgetColors::item, len_squared_v3(), len_squared_v3v3(), max_ff(), MEM_freeN(), MEM_mallocN, MEM_SAFE_FREE, min_ff(), uiWidgetColors::outline, uiBut::poin, point_draw_handles(), pos, PROF_H1_SELECT, PROF_H2_SELECT, PROF_SELECT, PROF_UPDATE_NONE, PROF_USE_CLIP, rgb_uchar_to_float(), swap_v3_v3(), TH_TEXT, TH_TEXT_HI, ui_draw_but_curve_grid(), UI_GetThemeColor4fv(), UI_SCALE_FAC, CurveProfile::view_rect, CurveProfilePoint::x, rcti::xmax, rctf::xmin, rcti::xmin, CurveProfilePoint::y, rcti::ymax, 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 493 of file interface_draw.cc.
References BLI_rctf_size_x(), BLI_rctf_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_COMP_F32, GPU_FETCH_FLOAT, 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, 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(), Histogram::x_resolution, rcti::xmax, rctf::xmin, rcti::xmin, Histogram::ymax, rcti::ymax, 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 322 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_RGBA8, 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 233 of file interface_draw.cc.
References col, GPU_COMP_F32, GPU_COMP_U8, GPU_FETCH_FLOAT, GPU_FETCH_INT_TO_FLOAT_UNIT, GPU_PRIM_LINE_STRIP, GPU_SHADER_3D_SMOOTH_COLOR, GPU_vertformat_attr_add(), immAttr3ubv(), immBeginAtMost(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immVertex2f(), immVertexFormat(), mul_v2_fl(), pos, roundboxtype, UI_CNR_BOTTOM_LEFT, UI_CNR_BOTTOM_RIGHT, UI_CNR_TOP_LEFT, UI_CNR_TOP_RIGHT, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by widget_tab().
| void ui_draw_but_TRACKPREVIEW | ( | ARegion * | region, |
| uiBut * | but, | ||
| const uiWidgetColors * | wcol, | ||
| const rcti * | recti ) |
Definition at line 2137 of file interface_draw.cc.
References BKE_tracking_sample_pattern(), BLI_rctf_size_x(), BLI_rctf_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_COMP_F32, GPU_FETCH_FLOAT, GPU_matrix_pop(), GPU_matrix_push(), GPU_matrix_translate_2f(), GPU_PRIM_LINES, GPU_RGBA8, GPU_scissor(), GPU_scissor_get(), GPU_SHADER_3D_FLAT_COLOR, GPU_SHADER_3D_IMAGE_COLOR, GPU_vertformat_attr_add(), IMB_freeImBuf(), IMB_rect_from_float(), 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, ImBuf::x, rcti::xmax, rctf::xmin, rcti::xmin, ImBuf::y, rcti::ymax, 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 1446 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_COMP_F32, GPU_CULL_BACK, GPU_CULL_NONE, GPU_face_culling(), GPU_FETCH_FLOAT, 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, ui_but_v3_get(), UI_CNR_ALL, UI_draw_roundbox_3ub_alpha(), UI_draw_roundbox_corner_set(), rcti::xmax, rctf::xmin, rcti::xmin, rcti::ymax, 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 975 of file interface_draw.cc.
References b, BLI_rctf_size_x(), BLI_rctf_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_COMP_F32, GPU_FETCH_FLOAT, 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(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor3f(), immUniformColor4f(), immVertex2f(), immVertexFormat(), int, Scopes::ok, uiBut::poin, polar_to_x(), polar_to_y(), pos, SCOPES_VECSCOPE_LUMA, SCOPES_VECSCOPE_RGB, 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, x, rcti::xmax, rctf::xmin, rcti::xmin, y, rcti::ymax, 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 669 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(), CLAMP, col, draw_scope_end(), ELEM, float, GPU_blend(), GPU_BLEND_ADDITIVE, GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, 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(), 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, 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, rcti::xmax, rctf::xmin, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by ui_draw_but().
| void ui_draw_gradient | ( | const rcti * | rect, |
| const float | hsv[3], | ||
| eButGradientType | type, | ||
| float | alpha ) |
Draws in resolution of 48x4 colors.
Definition at line 2994 of file interface_widgets.cc.
References BLI_assert_msg, BLI_rcti_size_x(), BLI_rcti_size_y(), col, copy_v3_v3(), float, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_TRIS, GPU_SHADER_3D_SMOOTH_COLOR, GPU_vertformat_attr_add(), hsv_to_rgb(), immAttr4f(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immVertex2f(), immVertexFormat(), pos, steps, 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 1198 of file interface_panel.cc.
References uiBlock::aspect, BLI_rctf_rcti_copy(), Panel_Runtime::block, LayoutPanels::bodies, Panel_Runtime::layout_panels, uiBlock::rect, Panel::runtime, 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 5182 of file interface_widgets.cc.
References uiBlock::aspect, uiBlock::direction, uiWidgetType::draw_block, uiBlock::flag, uiWidgetType::state, STATE_INFO_NULL, ui_draw_clip_tri(), UI_EMBOSS_UNDEFINED, UI_WTYPE_MENU_BACK, uiWidgetType::wcol, and widget_type().
Referenced by hud_region_draw(), and UI_block_draw().
| void ui_draw_menu_item | ( | const uiFontStyle * | fstyle, |
| rcti * | rect, | ||
| const char * | name, | ||
| int | iconid, | ||
| int | but_flag, | ||
| uiMenuItemSeparatorType | separator_type, | ||
| int * | r_xmax ) |
Helper call to draw a menu item without a button.
| 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 5495 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, ICON_DEFAULT_HEIGHT, ICON_SIZE_FROM_BUTRECT, padding(), params, state, uiWidgetType::state, STATE_INFO_NULL, STRNCPY, uiWidgetColors::text, UI_BUT_INACTIVE, UI_EMBOSS_UNDEFINED, 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, uiFontStyle::uifont_id, 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 5336 of file interface_widgets.cc.
References atan2f, col, draw_disk_shaded(), PieMenuData::flags, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_matrix_pop(), GPU_matrix_push(), GPU_matrix_translate_2f(), GPU_SHADER_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, 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 5272 of file interface_widgets.cc.
References uiBlock::aspect, uiBlock::bounds_offset, uiBlock::direction, float, 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, | ||
| const char * | name, | ||
| int | iconid, | ||
| int | but_flag, | ||
| eFontStyle_Align | text_align ) |
Definition at line 5693 of file interface_widgets.cc.
References uiWidgetStateInfo::but_flag, uiWidgetType::draw, state, uiWidgetType::state, STATE_INFO_NULL, uiWidgetColors::text, ui_draw_preview_item_stateless(), UI_EMBOSS_UNDEFINED, UI_WTYPE_MENU_ITEM_UNPADDED, 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, | ||
| bool | draw_as_icon = false ) |
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 5630 of file interface_widgets.cc.
References BLI_rcti_size_x(), float, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, params, PREVIEW_PAD, UI_fontstyle_draw(), UI_ICON_SIZE, UI_MAX_DRAW_STR, UI_text_clip_middle_ex(), UI_UNIT_Y, widget_draw_icon_centered(), widget_draw_preview(), 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 150 of file interface_draw.cc.
References GPU_COMP_F32, GPU_FETCH_FLOAT, 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 5487 of file interface_widgets.cc.
References uiWidgetType::draw_block, uiWidgetType::state, STATE_INFO_NULL, UI_EMBOSS_UNDEFINED, UI_WTYPE_TOOLTIP, 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 5482 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 5477 of file interface_widgets.cc.
References ui_draw_widget_back_color(), and UI_WTYPE_MENU_BACK.
Definition at line 119 of file interface_icons_event.cc.
References ELEM.
Referenced by icon_draw_rect_input(), uiTemplateEventFromKeymapItem(), and uiTemplateInputStatus().
Definition at line 2037 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, |
| wmOperatorCallContext | opcontext ) |
Definition at line 820 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 2484 of file interface_panel.cc.
References ED_region_tag_redraw(), ELEM, EVT_AKEY, EVT_PADENTER, EVT_RETKEY, EVT_TABKEY, Panel::flag, PanelType::flag, PanelCategoryDyn::idname, ISMOUSE_MOTION, KM_ALT, KM_CTRL, KM_OSKEY, KM_PRESS, KM_SHIFT, LEFTMOUSE, LISTBASE_FOREACH, wmEvent::modifier, panel_categories_find_mouse_over(), PANEL_MOUSE_INSIDE_HEADER, PANEL_MOUSE_INSIDE_LAYOUT_PANEL_HEADER, PANEL_MOUSE_OUTSIDE, PANEL_TYPE_NO_HEADER, PNL_CLOSED, RIGHTMOUSE, Panel::runtime_flag, SET_FLAG_FROM_TEST, Panel::type, uiBut::type, wmEvent::type, UI_BTYPE_LABEL, ui_handle_layout_panel_header(), ui_handle_panel_category_cycling(), ui_handle_panel_header(), UI_panel_category_active_set(), UI_panel_category_is_visible(), UI_panel_is_closed(), ui_panel_mouse_state_get(), ui_popup_context_menu_for_panel(), ui_region_find_active_but(), UI_view2d_mouse_in_scrollers(), UI_view2d_offset(), ui_window_to_block(), wmEvent::val, WHEELDOWNMOUSE, WHEELUPMOUSE, 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 2858 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, 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 2844 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 3149 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, rcti::xmin, and rcti::ymin.
Referenced by ui_draw_but_HSVCUBE(), and ui_numedit_but_HSVCUBE().
Definition at line 1069 of file interface_icons.cc.
References BKE_icon_get(), BKE_previewimg_id_ensure(), BKE_studiolight_set_free_function(), DrawInfo::buffer, 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_freeN(), MEM_mallocN, NC_WINDOW, Icon::obj, Icon::obj_type, IconImage::rect, PreviewImage::runtime, 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 ui_def_but_icon(), and ui_searchbox_region_draw_fn().
Definition at line 1719 of file interface_icons.cc.
References BKE_icon_id_ensure(), GS, ICON_SIZE_ICON, ICON_SIZE_PREVIEW, ID_GR, ID_IM, ID_LA, ID_MA, ID_SCR, ID_TE, ID_WO, 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 872 of file interface_query.cc.
References g_ot_tool_set_by_id.
Referenced by UI_interface_tag_script_reload().
Definition at line 2970 of file interface_layout.cc.
References UI_menutype_draw().
Referenced by UI_but_menutype_get(), ui_def_but_rna__menu_type(), ui_popup_menu_create_from_menutype(), and uiItemM_ptr().
Definition at line 2976 of file interface_layout.cc.
References UI_paneltype_draw().
Referenced by blender::ui::asset_shelf_popover_invoke(), UI_but_paneltype_get(), ui_def_but_rna__panel_type(), UI_popover_panel_invoke(), and uiItemPopoverPanel_ptr().
| bool ui_jump_to_target_button_poll | ( | bContext * | C | ) |
Definition at line 1967 of file interface_ops.cc.
References jump_to_target_button().
Referenced by UI_OT_jump_to_target_button(), and ui_popup_context_menu_for_button().
Definition at line 5942 of file interface_layout.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), uiButtonItem::but, uiLayout::child_items_layout, uiBut::context, uiLayout::context, uiBut::emboss, uiLayout::emboss, uiItem::flag, ITEM_BUTTON, uiLayout::items, uiBut::layout, uiBut::search_weight, uiLayout::search_weight, str, uiItem::type, ui_button_group_add_but(), UI_EMBOSS_UNDEFINED, UI_ITEM_FIXED_SIZE, ui_item_size(), uiLayoutGetBlock(), bContextStore::used, and w().
Referenced by ui_def_but().
| void ui_layout_list_set_labels_active | ( | uiLayout * | layout | ) |
Check all buttons defined in this layout, and set any button flagged as UI_BUT_LIST_ITEM as active/selected. Needed to handle correctly text colors of active (selected) list item.
Definition at line 5183 of file interface_layout.cc.
References uiButtonItem::but, uiBut::flag, ITEM_BUTTON, uiLayout::items, UI_but_flag_enable(), UI_BUT_LIST_ITEM, ui_layout_list_set_labels_active(), and UI_SELECT.
Referenced by ui_layout_list_set_labels_active(), and ui_template_list_layout_draw().
| LayoutPanelHeader * ui_layout_panel_header_under_mouse | ( | const Panel & | panel, |
| const int | my ) |
Definition at line 1999 of file interface_panel.cc.
References Panel_Runtime::block, LayoutPanels::headers, IN_RANGE, Panel_Runtime::layout_panels, uiBlock::rect, Panel::runtime, 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 596 of file interface_region_popup.cc.
References LayoutPanels::bodies, LayoutPanels::headers, Panel_Runtime::layout_panels, and Panel::runtime.
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 2165 of file interface_panel.cc.
References 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 6002 of file interface_layout.cc.
References BLI_assert, uiLayout::child_items_layout, ITEM_BUTTON, uiLayout::items, blender::Vector< T, InlineBufferCapacity, Allocator >::remove_if(), and UNUSED_VARS_NDEBUG.
Referenced by UI_but_active_only_ex().
Definition at line 6019 of file interface_layout.cc.
References uiButtonItem::but, and ui_layout_find_button_item().
Referenced by ui_but_change_type().
Definition at line 452 of file interface_query.cc.
References ui_but_find(), and ui_but_is_listbox_with_row().
Referenced by ui_apply_but_LISTROW().
Definition at line 419 of file interface_query.cc.
References ui_list_find_mouse_over_ex(), and wmEvent::xy.
Referenced by ui_do_but_EXIT(), ui_handle_menus_recursive(), UI_list_find_mouse_over(), ui_popup_context_menu_for_button(), and ui_region_handler().
Definition at line 480 of file interface_query.cc.
References BLI_assert, ListRowFindIndexData::index, uiBut::type, UI_BTYPE_LISTBOX, ui_but_find(), and ui_but_is_listrow_at_index().
Referenced by ui_list_activate_row_from_index().
| void UI_OT_eyedropper_color | ( | wmOperatorType * | ot | ) |
Definition at line 676 of file eyedropper_color.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, eyedropper_cancel(), eyedropper_exec(), eyedropper_invoke(), eyedropper_modal(), eyedropper_poll(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_property_flag(), RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_ui().
| void UI_OT_eyedropper_depth | ( | wmOperatorType * | ot | ) |
Definition at line 472 of file eyedropper_depth.cc.
References wmOperatorType::cancel, depthdropper_cancel(), depthdropper_exec(), depthdropper_invoke(), depthdropper_modal(), depthdropper_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_property_flag(), RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_ui().
| void UI_OT_eyedropper_driver | ( | wmOperatorType * | ot | ) |
Definition at line 193 of file eyedropper_driver.cc.
References wmOperatorType::cancel, wmOperatorType::description, driverdropper_cancel(), driverdropper_exec(), driverdropper_invoke(), driverdropper_modal(), driverdropper_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, wmOperatorType::poll, prop_driver_create_mapping_types, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_ui().
| void UI_OT_eyedropper_grease_pencil_color | ( | wmOperatorType * | ot | ) |
Definition at line 459 of file eyedropper_grease_pencil_color.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, int, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_ui().
| void UI_OT_eyedropper_id | ( | wmOperatorType * | ot | ) |
Definition at line 355 of file eyedropper_datablock.cc.
References wmOperatorType::cancel, datadropper_cancel(), datadropper_exec(), datadropper_invoke(), datadropper_modal(), datadropper_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_ui().
Assumes event type is MOUSEPAN.
Definition at line 576 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 2148 of file interface_panel.cc.
References copy_v2_v2_int(), CTX_wm_window(), wmWindow::eventstate, 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 877 of file interface_panel.cc.
References PANEL_SEARCH_FILTER_MATCH, and Panel::runtime_flag.
Referenced by UI_block_apply_search_filter().
Definition at line 134 of file interface_region_color_picker.cc.
References IMB_colormanagement_color_picking_to_scene_linear_v3(), ui_but_is_color_gamma(), and ui_color_picker_rgb_round().
Referenced by ui_colorpicker_wheel_cb(), ui_draw_but_HSVCIRCLE(), ui_numedit_but_HSVCIRCLE(), and ui_numedit_but_HSVCUBE().
| void ui_pie_menu_level_create | ( | uiBlock * | block, |
| wmOperatorType * | ot, | ||
| const char * | propname, | ||
| IDProperty * | properties, | ||
| const EnumPropertyItem * | items, | ||
| int | totitem, | ||
| wmOperatorCallContext | context, | ||
| eUI_Item_Flag | flag ) |
Set up data for defining a new pie menu level and add button that invokes it.
Definition at line 339 of file interface_region_menu_pie.cc.
References PieMenuLevelData::context, flag, PieMenuLevelData::flag, MEM_mallocN, ot, PieMenuLevelData::ot, uiBlock::pie_data, PIE_MAX_ITEMS, PieMenuLevelData::properties, PieMenuLevelData::propname, STRNCPY, PieMenuData::title, PieMenuLevelData::title, PieMenuLevelData::totitem, UI_BTYPE_BUT, UI_but_funcN_set(), ui_pie_menu_level_invoke(), UI_UNIT_X, UI_UNIT_Y, and uiDefIconTextBut().
Referenced by uiItemsFullEnumO_items().
| uiPopupBlockHandle * ui_popover_panel_create | ( | bContext * | C, |
| ARegion * | butregion, | ||
| uiBut * | but, | ||
| uiPopoverCreateFunc | popover_func, | ||
| const PanelType * | panel_type ) |
Definition at line 253 of file interface_region_popover.cc.
References uiPopover::but, CTX_wm_window(), wmWindow::eventstate, float, uiPopover::is_once, KM_PRESS, LEFTMOUSE, wmWindow::modalhandlers, uiPopover::panel_type, uiFontStyle::points, uiPopover::popover_func, 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 869 of file interface_region_popup.cc.
References uiBlock::bounds_type, copy_v2_v2_int(), create_func(), CTX_wm_area(), CTX_wm_region(), CTX_wm_region_popup(), CTX_wm_region_popup_set(), CTX_wm_screen(), CTX_wm_window(), wmWindow::eventstate, uiBlock::handle, RGN_TYPE_TEMPORARY, 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 961 of file interface_region_popup.cc.
References BKE_panel_free(), ED_workspace_status_text(), LISTBASE_FOREACH, MEM_freeN(), uiPopupBlockHandle::menuretval, 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 628 of file interface_region_popup.cc.
References uiBlock::aspect, BLI_addhead(), BLI_assert, BLI_rctf_recenter(), BLI_rctf_size_x(), BLI_rctf_size_y(), uiBut::block, uiBlock::bounds_type, uiBlock::buttons, copy_v2_v2(), create_func(), CTX_wm_window(), uiBlock::direction, ED_region_floating_init(), ED_region_tag_redraw(), ED_region_update_rect(), ELEM, uiBlock::endblock, wmWindow::event_last_handled, wmWindow::eventstate, uiBlock::flag, PieMenuData::flags, FLT_MAX, uiBlock::handle, LISTBASE_FOREACH, max_ff(), MEM_freeN(), min_ff(), uiBlock::oldblock, uiBlock::panel, PieMenuData::pie_center_init, PieMenuData::pie_center_spawned, uiBlock::pie_data, uiBlock::rect, uiBlock::saferct, uiBlock::safety, uiSafetyRct::safety, 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, WM_window_native_pixel_size(), wmGetProjectionMatrix(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by ui_block_region_refresh(), and ui_popup_block_create().
| void ui_popup_block_scrolltest | ( | uiBlock * | block | ) |
Definition at line 515 of file interface_region_popup.cc.
References uiBlock::buttons, ListBase::first, uiBlock::flag, ListBase::last, LISTBASE_FOREACH, uiBlock::rect, UI_BLOCK_CLIPBOTTOM, UI_BLOCK_CLIPTOP, UI_MENU_SCROLL_ARROW, UI_SCROLLED, rctf::ymax, and rctf::ymin.
Referenced by ui_menu_scroll_apply_offset_y(), and ui_popup_block_refresh().
Definition at line 528 of file interface_context_menu.cc.
References ANIM_driver_can_paste(), uiBut::apply_func, BLI_assert, BLI_exists(), BLI_path_split_dir_part(), uiBut::block, BLT_I18NCONTEXT_OPERATOR_DEFAULT, blender::ui::AbstractViewItem::build_context_menu(), uiBut::context, CTX_data_main(), CTX_data_pointer_get_type(), CTX_IFACE_, CTX_store_get(), CTX_store_set(), CTX_wm_region(), CTX_wm_region_popup(), PointerRNA::data, 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(), ED_screens_region_flip_menu_create(), ELEM, EVT_TYPE_MASK_ALL, FILE_MAX, FILE_MAXDIR, uiBut::flag, wmOperatorType::flag, IFACE_, is_disabled, ISKEYBOARD, ISNDOF_BUTTON, bUserMenu::items, MEM_freeN(), uiButTab::menu, menu_add_shortcut(), menu_add_shortcut_cancel(), menu_change_shortcut(), uiBut::menu_create_func, uiBut::opcontext, uiBut::opptr, uiBut::optype, ot, PointerRNA::owner_id, MenuType::poll, PROP_BOOLEAN, PROP_DIRPATH, PROP_ENUM, PROP_FILEPATH, PROP_FLOAT, PROP_INT, PROP_POINTER, PROP_STRING, ptr, 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, set_layout_context_from_button(), shortcut_free_operator_property(), shortcut_get_operator_property(), TIP_, PointerRNA::type, uiBut::type, wmKeyMapItem::type, ui_block_is_menu(), ui_block_is_popup_any(), UI_BTYPE_BUT, UI_BTYPE_IMAGE, UI_BTYPE_LABEL, UI_BTYPE_SEARCH_MENU, UI_BTYPE_TAB, UI_BTYPE_VIEW_ITEM, 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(), uiItemBooleanO(), uiItemFullO(), uiItemFullO_ptr(), uiItemM_ptr(), uiItemMenuF(), uiItemO(), uiItemS(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutGetWidth(), uiLayoutSetContextFromBut(), uiLayoutSetEnabled(), uiLayoutSetOperatorContext(), USER_DEVELOPER_UI, uiButViewItem::view_item, w(), WM_key_event_operator(), WM_keymap_guess_opname(), WM_menutype_find(), WM_OP_EXEC_DEFAULT, WM_OP_INVOKE_DEFAULT, WM_operatortype_find(), and wmEvent::xy.
Referenced by ui_do_button(), and ui_search_menu_create_context_menu().
menu to show when right clicking on the panel header
Definition at line 1420 of file interface_context_menu.cc.
References uiBlock::buttons, CTX_wm_screen(), uiBut::flag, IFACE_, ListBase::last, PanelType::parent, ptr, RNA_pointer_create(), SNPRINTF, 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(), UI_SEP_CHAR_S, uiItemR(), and uiLayoutGetBlock().
Referenced by ui_handler_panel_region().
| uiPopupBlockHandle * ui_popup_menu_create | ( | bContext * | C, |
| ARegion * | butregion, | ||
| uiBut * | but, | ||
| uiMenuCreateFunc | menu_func, | ||
| void * | arg ) |
Definition at line 431 of file interface_region_menu_popup.cc.
References ui_popup_menu_create_impl().
Referenced by ui_block_open_begin().
Definition at line 145 of file interface_region_menu_popup.cc.
References ui_popup_menu_memory__internal().
Referenced by ui_block_func_POPUP().
Definition at line 150 of file interface_region_menu_popup.cc.
References ui_popup_menu_memory__internal().
Referenced by button_activate_exit().
Translate any popup regions (so we can drag them).
Definition at line 41 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, and UNPACK2.
Referenced by ui_handle_menu_event().
Referenced by ui_handle_button_event(), ui_handle_menu_button(), and UI_region_view_find_at().
Definition at line 818 of file interface_query.cc.
References BLI_rcti_isect(), View2D::mask, ui_region_winrct_get_no_margin(), UI_view2d_rect_in_scrollers(), and ui_window_to_region_rcti().
Referenced by ui_but_find_rect_over().
Definition at line 759 of file interface_query.cc.
References LISTBASE_FOREACH, and ui_block_active_but_get().
Referenced by button_activate_init(), drop_color_invoke(), 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 771 of file interface_query.cc.
References LISTBASE_FOREACH.
Referenced by ui_handle_menu_event().
Definition at line 254 of file interface.cc.
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 334 of file interface.cc.
References BLI_rcti_rctf_copy_floor(), BLI_rcti_translate(), uiBlock::flag, uiBlock::rect, UI_BLOCK_LOOP, UI_BLOCK_PIE_MENU, and rcti::xmin.
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 403 of file interface_utils.cc.
References b, BKE_id_full_name_ui_prefix_get(), BLI_assert, BLI_STATIC_ASSERT, ELEM, flag, G, StringPropertySearchVisitParams::icon_id, ID_IS_LINKED, StringPropertySearchVisitParams::info, MAX_ID_FULL_NAME_UI, MEM_freeN(), 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(), str, ui_id_icon_get(), UI_MAX_DRAW_STR, and UI_SEP_CHAR.
Referenced by jump_to_target_button(), template_search_menu(), ui_but_add_search(), and ui_popup_context_menu_for_button().
Definition at line 123 of file interface_region_color_picker.cc.
References IMB_colormanagement_scene_linear_to_color_picking_v3(), ui_but_is_color_gamma(), and ui_color_picker_rgb_round().
Referenced by ui_color_picker_update_hsv(), ui_colorpicker_wheel_cb(), 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 861 of file interface_query.cc.
References ui_screen_region_find_mouse_over_ex(), and wmEvent::xy.
Referenced by ui_handler_region_menu().
Check if the cursor is over any popups.
References ot.
String validated to be of correct length (but->hardmax).
Definition at line 279 of file interface_region_search.cc.
References BLI_assert, BLI_strdup(), BLI_strncpy(), uiBut::editstr, uiBut::hardmax, uiButSearch::item_active, uiButSearch::item_active_str, MEM_SAFE_FREE, uiBut::type, UI_BTYPE_SEARCH_MENU, and UI_SEP_CHAR.
Referenced by ui_textedit_end().
Definition at line 529 of file interface_region_search.cc.
References AUTOCOMPLETE_NO_MATCH, BLI_assert, uiBut::editstr, str, uiBut::type, UI_autocomplete_begin(), UI_autocomplete_end(), UI_BTYPE_SEARCH_MENU, 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 933 of file interface_region_search.cc.
References 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 1072 of file interface_region_search.cc.
References 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 1053 of file interface_region_search.cc.
References 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 343 of file interface_region_search.cc.
References uiButSearch::arg, BLI_assert, BLI_rcti_isect_pt(), CTX_wm_area(), CTX_wm_window(), EVT_DOWNARROWKEY, EVT_UPARROWKEY, is_inside(), uiButSearch::item_active, uiButSearch::item_context_menu_fn, MOUSEMOVE, MOUSEPAN, RIGHTMOUSE, uiBut::type, UI_BTYPE_SEARCH_MENU, ui_pan_to_scroll(), ui_searchbox_butrect(), ui_searchbox_select(), USER_TOOLTIPS, WHEELDOWNMOUSE, WHEELUPMOUSE, wm_searchbox_tooltip_init(), WM_tooltip_clear(), WM_tooltip_timer_init(), and wmEvent::xy.
Referenced by ui_do_but_textedit().
Definition at line 266 of file interface_region_search.cc.
References UI_search_items_find_index().
Referenced by ui_textedit_end().
Definition at line 1062 of file interface_region_search.cc.
References CTX_wm_screen(), and ui_region_temp_remove().
Referenced by ui_textedit_end().
x and y in screen-coords.
Referenced by ui_do_but_textedit().
Region is the search box itself.
Definition at line 451 of file interface_region_search.cc.
References BLI_assert, uiBut::changed, ED_region_tag_redraw(), uiBut::editstr, uiButSearch::item_active, uiButSearch::items_update_fn, reset(), STREQLEN, uiBut::type, UI_BTYPE_SEARCH_MENU, 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 658 of file interface_templates.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(), 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, 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_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, 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 2047 of file interface.cc.
References BLI_rcti_rctf_copy_round(), BLI_rcti_translate(), ui_block_to_window_rctf(), and rcti::xmin.
Referenced by ui_but_to_pixelrect(), and ui_draw_layout_panels_backdrop().
| const uiWidgetColors * ui_tooltip_get_theme | ( | ) |
Definition at line 5441 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_asset_view | ( | ) |
Definition at line 166 of file interface_template_asset_view.cc.
References asset_view_draw_item(), asset_view_filter_items(), asset_view_listener(), uiListType::draw_item, uiListType::filter_items, uiListType::idname, uiListType::listener, MEM_callocN, and STRNCPY.
Referenced by ED_uilisttypes_ui().
| uiListType * UI_UL_cache_file_layers | ( | ) |
Definition at line 7335 of file interface_templates.cc.
References cache_file_layer_item(), uiListType::draw_item, uiListType::idname, MEM_callocN, and STRNCPY.
Referenced by ED_uilisttypes_ui().
Definition at line 509 of file interface_query.cc.
References ui_but_find(), and ui_but_is_active_view_item().
Referenced by UI_region_views_find_active_item(), and UI_region_views_find_active_item_but().
Definition at line 514 of file interface_query.cc.
References uiBut::type, UI_BTYPE_VIEW_ITEM, and ui_but_find().
Referenced by ui_handle_view_item_event(), and ui_handle_viewlist_items_hover().
| void ui_view_item_swap_button_pointers | ( | blender::ui::AbstractViewItem & | a, |
| blender::ui::AbstractViewItem & | b ) |
Definition at line 368 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 221 of file interface.cc.
References int, 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 184 of file interface.cc.
References b, BLI_rcti_size_x(), BLI_rcti_size_y(), e, float, Panel::ofsx, Panel::ofsy, uiBlock::panel, and uiBlock::winmat.
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 211 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().
Definition at line 232 of file interface.cc.
Referenced by ui_region_contains_point_px().
Definition at line 246 of file interface.cc.
References rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Definition at line 238 of file interface.cc.
References 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 368 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_RENDER_SUBPIXELAA, BLF_unload_all(), BLI_addtail(), BLI_assert, CLAMP, uiFont::filepath, G, G_DEBUG, LISTBASE_FOREACH, uiFontStyle::points, printf, STRNCPY, 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 1468 of file interface_intern.hh.
|
extern |
Definition at line 289 of file interface_widgets.cc.
Referenced by widget_progress_type_ring().
|
extern |
Definition at line 1522 of file interface.cc.
Referenced by ui_get_radialbut_vec().
|
extern |
Definition at line 1534 of file interface.cc.
Referenced by ui_but_pie_dir().
|
extern |
Definition at line 1533 of file interface.cc.
Referenced by ui_but_pie_direction_string().