|
Blender V4.5
|
#include <functional>#include <optional>#include <string>#include "BLI_compiler_attrs.h"#include "BLI_string_ref.hh"#include "BLI_string_utf8_symbols.h"#include "BLI_sys_types.h"#include "BLI_utildefines.h"#include "DNA_userdef_types.h"#include "UI_interface_icons.hh"#include "UI_interface_layout.hh"#include "UI_interface_types.hh"#include "WM_types.hh"#include "MEM_guardedalloc.h"Go to the source code of this file.
Classes | |
| struct | uiBlockInteraction_Params |
| struct | uiBlockInteraction_CallbackData |
| struct | uiTooltipImage |
| struct | uiDragColorHandle |
| struct | uiFontStyleDraw_Params |
Namespaces | |
| namespace | blender |
| namespace | blender::ed |
| namespace | blender::ed::asset |
| namespace | blender::ui |
Typedefs | |
| using | uiButHandleFunc = void (*)(bContext *C, void *arg1, void *arg2) |
| using | uiButHandleRenameFunc = void (*)(bContext *C, void *arg, char *origstr) |
| using | uiButHandleNFunc = void (*)(bContext *C, void *argN, void *arg2) |
| using | uiButHandleHoldFunc = void (*)(bContext *C, ARegion *butregion, uiBut *but) |
| using | uiButCompleteFunc = int (*)(bContext *C, char *str, void *arg) |
| using | uiButArgNFree = void (*)(void *argN) |
| using | uiButArgNCopy = void *(*)(const void *argN) |
| using | uiButIdentityCompareFunc = bool (*)(const uiBut *a, const uiBut *b) |
| using | uiButSearchCreateFn = ARegion *(*)(bContext *C, ARegion *butregion, uiButSearch *search_but) |
| using | uiButSearchUpdateFn |
| using | uiButSearchContextMenuFn |
| using | uiButSearchTooltipFn |
| using | uiButSearchListenFn = void (*)(const wmRegionListenerParams *params, void *arg) |
| using | uiButToolTipCustomFunc = void (*)(bContext &C, uiTooltipData &data, void *argN) |
| using | uiBlockHandleFunc = void (*)(bContext *C, void *arg, int event) |
| using | uiBlockCreateFunc = uiBlock *(*)(bContext *C, ARegion *region, void *arg1) |
| using | uiBlockCancelFunc = void (*)(bContext *C, void *arg1) |
| using | uiListPanelIDFromDataFunc = void (*)(void *data_link, char *r_idname) |
Custom Interaction | |
Sometimes it's useful to create data that remains available while the user interacts with a button. A common case is dragging a number button or slider however this could be used in other cases too. | |
| using | uiBlockInteractionBeginFn |
| using | uiBlockInteractionEndFn |
| using | uiBlockInteractionUpdateFn |
| void | UI_block_interaction_set (uiBlock *block, uiBlockInteraction_CallbackData *callbacks) |
| #define AUTOCOMPLETE_FULL_MATCH 1 |
Definition at line 1979 of file UI_interface_c.hh.
Referenced by autocomplete_directory(), UI_autocomplete_end(), and ui_do_but_textedit().
| #define AUTOCOMPLETE_NO_MATCH 0 |
Definition at line 1978 of file UI_interface_c.hh.
Referenced by autocomplete_directory(), autocomplete_file(), UI_autocomplete_end(), ui_do_but_textedit(), and ui_searchbox_autocomplete().
| #define AUTOCOMPLETE_PARTIAL_MATCH 2 |
Definition at line 1980 of file UI_interface_c.hh.
Referenced by UI_autocomplete_end().
| #define BUTTYPE (63 << 9) |
Definition at line 478 of file UI_interface_c.hh.
Referenced by ui_def_but().
| #define INSTANCED_PANEL_UNIQUE_STR_SIZE 16 |
Definition at line 2129 of file UI_interface_c.hh.
Referenced by ed_panel_draw(), ED_region_panels_layout_ex(), and UI_list_panel_unique_str().
| #define UI_ALPHA_CHECKER_DARK 100 |
Definition at line 2205 of file UI_interface_c.hh.
Referenced by draw_widgetbase_batch(), ED_image_draw_info(), blender::ed::space_node::node_draw_preview_background(), ui_draw_but_COLORBAND(), ui_tooltip_region_draw_cb(), and UI_widgetbase_draw_cache_flush().
| #define UI_ALPHA_CHECKER_LIGHT 160 |
Definition at line 2206 of file UI_interface_c.hh.
Referenced by draw_widgetbase_batch(), ED_image_draw_info(), blender::ed::space_node::node_draw_preview_background(), ui_draw_but_COLORBAND(), ui_tooltip_region_draw_cb(), and UI_widgetbase_draw_cache_flush().
| #define UI_AZONESPOTH (0.6f * U.widget_unit) /* Height of corner action zone #AZone. */ |
Definition at line 2182 of file UI_interface_c.hh.
Referenced by area_azone_init(), and view2d_masks().
| #define UI_AZONESPOTW UI_HEADER_OFFSET /* Width of corner action zone #AZone. */ |
Definition at line 2181 of file UI_interface_c.hh.
Referenced by area_actionzone_refresh_xy(), area_azone_init(), and view2d_masks().
| #define UI_but_is_decorator | ( | but | ) |
Definition at line 686 of file UI_interface_c.hh.
Referenced by UI_block_end_ex(), ui_but_anim_decorate_find_attached_button(), UI_context_update_anim_flag(), and ui_drag_toggle_but_is_supported().
| #define UI_BUT_POIN_TYPES (UI_BUT_POIN_FLOAT | UI_BUT_POIN_SHORT | UI_BUT_POIN_CHAR) |
Definition at line 405 of file UI_interface_c.hh.
Referenced by ui_but_range_set_soft(), ui_but_update_ex(), and ui_def_but().
| #define UI_BUTTON_SECTION_MERGE_DISTANCE (UI_UNIT_X * 3) |
Definition at line 948 of file UI_interface_c.hh.
Referenced by button_section_bounds_calc().
| #define UI_BUTTON_SECTION_SEPERATOR_LINE_WITH (U.pixelsize * 2) |
Definition at line 950 of file UI_interface_c.hh.
Referenced by blender::ed::asset::shelf::header_region_size(), ui_draw_button_sections_alignment_separator(), and ui_draw_button_sections_background().
| #define UI_COMPACT_PANEL_WIDTH 160 |
Definition at line 302 of file UI_interface_c.hh.
Referenced by ED_spacetype_clip(), blender::ed::vse::ED_spacetype_sequencer(), and ED_spacetype_text().
| #define UI_DEFAULT_TEXT_POINTS 11.0f |
Default font size for normal text.
Definition at line 293 of file UI_interface_c.hh.
Referenced by blender::ed::spreadsheet::ColumnValues::fit_column_values_width_px(), blender::ed::spreadsheet::ColumnValues::fit_column_width_px(), ui_popover_panel_create(), ui_style_new(), view3d_draw_region_info(), WM_operator_confirm_ex(), and WM_operator_props_dialog_popup().
| #define UI_DEFAULT_TITLE_POINTS 11.0f |
Larger size used for title text.
Definition at line 296 of file UI_interface_c.hh.
Referenced by ui_style_new().
| #define UI_DEFAULT_TOOLTIP_POINTS 11.0f |
Size of tooltip text.
Definition at line 299 of file UI_interface_c.hh.
Referenced by screen_draw_area_drag_tip(), and ui_style_new().
| #define UI_FLOAT_VALUE_DISPLAY_MAX 3.402820000e+38F |
Definition at line 2977 of file UI_interface_c.hh.
Referenced by ui_but_build_drawstr_float().
| #define UI_FLOAT_VALUE_DISPLAY_MIN -3.402820000e+38F |
Definition at line 2978 of file UI_interface_c.hh.
Referenced by ui_but_build_drawstr_float().
| #define UI_FSTYLE_TOOLTIP (const uiFontStyle *)&(UI_style_get()->tooltip) |
Definition at line 2985 of file UI_interface_c.hh.
Referenced by screen_draw_area_drag_tip().
| #define UI_FSTYLE_WIDGET (const uiFontStyle *)&(UI_style_get()->widget) |
Definition at line 2984 of file UI_interface_c.hh.
Referenced by ANIM_channel_draw(), draw_current_frame(), ED_markers_draw(), eyedropper_draw_cursor_text_region(), icon_draw_size(), blender::ed::outliner::outliner_draw_tree(), template_ID(), template_id_def_new_but(), template_search_textbut_width(), ui_item_menu(), ui_item_with_label(), ui_pie_menu_title_width(), ui_text_icon_width(), uiItemL_(), uiTemplateRunningJobs(), view3d_draw_region_info(), wm_drag_draw_item_name(), wm_drop_operator_draw(), and wm_drop_redalert_draw().
| #define UI_HEADER_OFFSET ((void)0, 0.4f * UI_UNIT_X) |
Definition at line 2179 of file UI_interface_c.hh.
Referenced by ED_region_header_layout(), blender::ed::spreadsheet::spreadsheet_footer_region_draw(), and ui_update_flexible_spacing().
| #define UI_MENU_ARROW_SEP BLI_STR_UTF8_BLACK_RIGHT_POINTING_SMALL_TRIANGLE |
Separator for text in search menus (right pointing arrow). keep in sync with string_search.cc.
Definition at line 112 of file UI_interface_c.hh.
| #define UI_NARROW_NAVIGATION_REGION_WIDTH 100 |
Definition at line 305 of file UI_interface_c.hh.
Referenced by userpref_create().
| #define UI_NAVIGATION_REGION_WIDTH UI_COMPACT_PANEL_WIDTH |
Definition at line 304 of file UI_interface_c.hh.
Referenced by ED_spacetype_userpref(), userpref_create(), and userpref_show_exec().
| #define UI_PANEL_CATEGORY_MARGIN_WIDTH (U.widget_unit * 1.0f) |
Definition at line 314 of file UI_interface_c.hh.
Referenced by ED_region_panel_category_gutter_calc_rect(), ED_region_panels_draw(), ED_region_panels_layout_ex(), panel_region_offset_x_get(), and UI_panel_category_draw_all().
| #define UI_PANEL_MARGIN_X (U.widget_unit * 0.4f) |
Definition at line 318 of file UI_interface_c.hh.
Referenced by panel_draw_width_from_max_width_get(), and uiAlignPanelStep().
| #define UI_PANEL_MARGIN_Y (U.widget_unit * 0.1f) |
Definition at line 319 of file UI_interface_c.hh.
Referenced by ui_panels_size(), and uiAlignPanelStep().
| #define UI_PANEL_WIDTH 340 |
Definition at line 301 of file UI_interface_c.hh.
Referenced by ui_panels_size().
| #define UI_PRECISION_FLOAT_MAX 6 |
Definition at line 2970 of file UI_interface_c.hh.
Referenced by blender::ed::space_node::NODE_OT_link(), RNA_def_property_ui_range(), ui_but_calc_float_precision(), ui_but_copy_numeric_value(), ui_but_string_get_ex(), UI_calc_float_precision(), ui_do_but_text_value_cycle(), ui_get_but_string_unit(), and ui_textedit_begin().
| #define UI_PRECISION_FLOAT_SCALE 0.01f |
Definition at line 2981 of file UI_interface_c.hh.
Referenced by ui_but_hide_fraction(), ui_do_but_NUM(), ui_get_but_step_unit(), and ui_numedit_begin().
| #define UI_REGION_OVERLAP_MARGIN (U.widget_unit / 3) |
For ARegion.overlap regions, pass events though if they don't overlap the regions contents (the usable part of the View2D and buttons).
The margin is needed so it's not possible to accidentally click in between buttons.
Definition at line 120 of file UI_interface_c.hh.
Referenced by azone_clipped_rect_calc(), and ED_region_contains_xy().
| #define UI_SCREEN_MARGIN 10 |
Use for clamping popups within the screen.
Definition at line 123 of file UI_interface_c.hh.
Referenced by ui_block_bounds_calc_popup(), ui_popup_block_clip(), ui_popup_block_position(), and ui_popup_block_refresh().
| #define UI_SEARCHBOX_BOUNDS (6.0f * UI_SCALE_FAC) |
Definition at line 1786 of file UI_interface_c.hh.
Referenced by blender::ed::outliner::merged_element_search_menu(), blender::ed::space_node::node_find_menu(), template_common_search_menu(), ui_searchbox_region_layout_fn(), wm_block_search_menu(), and wm_enum_search_menu().
| #define UI_SEARCHBOX_TRIA_H (12.0f * UI_SCALE_FAC) |
Definition at line 1787 of file UI_interface_c.hh.
Referenced by template_common_search_menu(), ui_searchbox_butrect(), ui_searchbox_draw_clip_tri_down(), ui_searchbox_draw_clip_tri_up(), and UI_searchbox_size_y().
| #define UI_SEP_CHAR '|' |
Character used for splitting labels (right align text after this character). Users should never see this character. Only applied when UI_BUT_HAS_SEP_CHAR flag is enabled, see it's doc-string for details.
Definition at line 100 of file UI_interface_c.hh.
Referenced by add_collection_search_item(), id_search_add(), menu_items_from_ui_create(), menu_items_from_ui_create_item_from_button(), menu_items_to_ui_button(), operator_search_update_fn(), ui_but_add_shortcut(), ui_but_drawstr_len_without_sep_char(), UI_but_string_get_label(), ui_draw_menu_item(), ui_popup_string_hash(), ui_rna_collection_search_update_fn(), ui_searchbox_apply(), ui_searchbox_update(), widget_draw_text(), and widget_draw_text_icon().
| #define UI_SEP_CHAR_S "|" |
Definition at line 101 of file UI_interface_c.hh.
Referenced by blender::ui::attribute_search_item_add(), ui_but_add_shortcut(), and ui_popup_context_menu_for_panel().
| #define UI_SIDEBAR_PANEL_WIDTH 280 |
Definition at line 303 of file UI_interface_c.hh.
Referenced by ED_spacetype_action(), ED_spacetype_clip(), ED_spacetype_image(), ED_spacetype_ipo(), ED_spacetype_nla(), ED_spacetype_node(), blender::ed::vse::ED_spacetype_sequencer(), ED_spacetype_view3d(), and blender::ed::spreadsheet::register_spacetype().
| #define UI_TOOLBAR_COLUMN (1.25f * ICON_DEFAULT_HEIGHT_TOOLBAR) |
The width of one icon column of the Toolbar.
Definition at line 308 of file UI_interface_c.hh.
Referenced by ED_region_generic_tools_region_snap_size().
| #define UI_TOOLBAR_MARGIN (0.5f * ICON_DEFAULT_HEIGHT_TOOLBAR) |
The space between the Toolbar and the area's edge.
Definition at line 310 of file UI_interface_c.hh.
Referenced by ED_region_generic_tools_region_snap_size().
| #define UI_TOOLBAR_WIDTH UI_TOOLBAR_MARGIN + UI_TOOLBAR_COLUMN |
Total width of Toolbar showing one icon column.
Definition at line 312 of file UI_interface_c.hh.
Referenced by ED_spacetype_image(), ED_spacetype_node(), blender::ed::vse::ED_spacetype_sequencer(), and ED_spacetype_view3d().
| #define UI_TOOLTIP_DELAY 0.5 |
Definition at line 2962 of file UI_interface_c.hh.
Referenced by button_tooltip_timer_reset(), ui_but_tooltip_init(), and WM_tooltip_timer_init().
| #define UI_TOOLTIP_DELAY_QUICK 0.2 |
Definition at line 2963 of file UI_interface_c.hh.
Referenced by button_tooltip_timer_reset(), and ui_but_tooltip_init().
| #define UI_UL_DEFAULT_CLASS_NAME "UI_UL_list" |
Default UIList class name, keep in sync with its declaration in bl_ui/__init__.py.
Definition at line 2532 of file UI_interface_c.hh.
Referenced by RNA_api_ui_layout(), and ui_template_list_data_retrieve().
| #define UI_UNIT_X ((void)0, U.widget_unit) |
Definition at line 2176 of file UI_interface_c.hh.
Referenced by blender::nodes::add_attribute_search_button(), blender::nodes::add_layer_name_search_button(), blender::ui::AbstractViewItem::add_rename_button(), blender::ed::asset::shelf::add_tab_button(), ANIM_channel_draw_widgets(), blender::ui::TreeViewLayoutBuilder::build_from_tree(), blender::ui::GridViewLayoutBuilder::build_from_view(), blender::ed::asset::shelf::AssetCatalogSelectorTree::Item::build_row(), blender::ui::TreeViewLayoutBuilder::build_row(), channel_ui_data_init(), clip_draw_dopesheet_channels(), colorband_buttons_layout(), colorband_tools_fn(), blender::ed::spreadsheet::SpreadsheetDrawer::column_width(), component_menu(), curve_profile_presets_fn(), curve_profile_tools_fn(), curvemap_buttons_layout(), curvemap_clipping_func(), curvemap_tools_func(), CurveProfile_buttons_layout(), blender::ed::spreadsheet::draw_column_reorder_destination(), draw_keylist_block_gpencil(), blender::ed::space_node::draw_link_errors(), draw_view_axis(), ED_file_path_button(), ED_fileselect_init_layout(), ED_image_draw_info(), ed_panel_draw(), ED_region_panels_layout_ex(), ED_spacetype_statusbar(), ED_spacetype_topbar(), envelope_panel_draw(), file_attribute_columns_widths(), file_draw_invalid_asset_library_hint(), file_draw_invalid_library_hint(), file_draw_list(), file_panel_execution_buttons_draw(), blender::ed::sculpt_paint::find_curves_brush_position(), blender::ed::space_node::find_visible_center_of_link(), blender::ed::spreadsheet::ColumnValues::fit_column_values_width_px(), fmodifier_panel_header(), blender::ed::spreadsheet::get_index_column_width(), graph_draw_driven_property_enabled_btn(), graph_draw_driver_settings_panel(), icon_draw_size(), info_textview_draw_rect_calc(), blender::ed::asset::shelf::layout_width_units_clamped(), blender::ed::outliner::merged_element_search_menu(), metadata_draw_imbuf(), blender::ed::sculpt_paint::min_distance_edit::min_distance_edit_modal(), modifier_panel_header(), blender::ed::space_node::node_draw_panels(), blender::ed::space_node::node_geometry_add_attribute_search_button(), blender::ed::space_node::node_geometry_add_layer_search_button(), blender::ed::outliner::outliner_buttons(), blender::ed::outliner::outliner_draw_active_indicator(), blender::ed::outliner::outliner_draw_hierarchy_lines_recursive(), blender::ed::outliner::outliner_draw_iconrow_doit(), blender::ed::outliner::outliner_draw_mode_column_toggle(), blender::ed::outliner::outliner_draw_overrides_restrictbuts(), blender::ed::outliner::outliner_draw_restrictbuts(), blender::ed::outliner::outliner_draw_tree(), blender::ed::outliner::outliner_draw_tree_element(), blender::ed::outliner::outliner_draw_userbuts(), blender::ed::outliner::outliner_draw_warning_tree_element(), blender::ed::outliner::outliner_dropzone_element(), blender::ed::outliner::outliner_is_co_within_mode_column(), blender::ed::outliner::outliner_item_is_co_over_icon(), blender::ed::outliner::outliner_item_is_co_over_name(), blender::ed::outliner::outliner_item_is_co_over_name_icons(), blender::ed::outliner::outliner_item_is_co_within_close_toggle(), blender::ed::outliner::outliner_right_columns_width(), panel_draw_aligned_widgets(), region_rect_recursive(), region_scale_modal(), shaderfx_panel_header(), blender::ed::spreadsheet::SpreadsheetDrawer::SpreadsheetDrawer(), template_add_button_search_menu(), template_ID(), template_id_def_new_but(), template_ID_tabs(), template_keymap_item_properties(), template_operator_property_buts_draw_single(), template_search_textbut_width(), template_texture_user_menu(), blender::ed::outliner::tselem_draw_icon(), ui_block_bounds_calc_popup(), ui_block_colorpicker(), ui_block_func_COLOR(), ui_block_func_POPOVER(), ui_block_func_POPUP(), UI_block_layout(), UI_but_ensure_in_view(), ui_but_update_ex(), ui_def_but_rna__menu(), ui_draw_menu_item(), ui_icon_view_menu_cb(), ui_imageuser_layer_menu(), ui_imageuser_pass_menu(), ui_imageuser_slot_menu(), ui_imageuser_view_menu_multiview(), ui_imageuser_view_menu_rr(), ui_item_array(), ui_item_estimate(), ui_item_rna_size(), ui_item_with_label(), ui_litem_layout_radial(), ui_litem_min_width(), blender::ed::space_node::ui_node_menu_column(), UI_panel_label_offset(), ui_pie_menu_level_create(), ui_pie_menu_title_width(), ui_popup_block_position(), UI_popup_block_template_confirm_op(), UI_preview_tile_size_x(), ui_searchbox_region_draw_fn(), UI_searchbox_size_x(), ui_template_list_layout_draw(), blender::ed::space_node::ui_template_node_link_menu(), ui_text_icon_width_ex(), uiItemDecoratorR_prop(), uiItemPointerR_prop(), uiItemProgressIndicator(), uiItemsFullEnumO_items(), uiItemSpacer(), uiTemplateColorRamp(), uiTemplateComponentMenu(), uiTemplateCryptoPicker(), uiTemplateHistogram(), uiTemplateIcon(), uiTemplateIconView(), uiTemplateLayers(), uiTemplateMarker(), uiTemplateMenuSearch(), uiTemplateNodeLink(), uiTemplateNodeSocket(), uiTemplateOperatorSearch(), uiTemplatePalette(), uiTemplatePreview(), uiTemplateReportsBanner(), uiTemplateRunningJobs(), uiTemplateStatusInfo(), uiTemplateTextureShow(), uiTemplateTextureUser(), uiTemplateTrack(), uiTemplateVectorscope(), uiTemplateWaveform(), blender::ed::spreadsheet::update_view2d_tot_rect(), view3d_panel_vgroup(), widget_progress_type_ring(), WIDGETGROUP_navigate_draw_prepare(), wm_block_create_redo(), and wm_block_dialog_create().
| #define UI_UNIT_Y ((void)0, U.widget_unit) |
Definition at line 2177 of file UI_interface_c.hh.
Referenced by blender::nodes::add_attribute_search_button(), blender::nodes::add_layer_name_search_button(), blender::ui::AbstractViewItem::add_rename_button(), blender::ed::asset::shelf::add_tab_button(), block_create__close_file_dialog(), block_create_autorun_warning(), blender::ui::TreeViewLayoutBuilder::build_from_tree(), blender::ed::asset::shelf::AssetCatalogSelectorTree::Item::build_row(), clip_draw_dopesheet_channels(), colorband_buttons_layout(), colorband_tools_fn(), component_menu(), blender::ed::space_node::create_search_popup_block(), create_title_button(), curve_profile_presets_fn(), curve_profile_tools_fn(), curvemap_buttons_layout(), curvemap_clipping_func(), curvemap_tools_func(), CurveProfile_buttons_layout(), blender::ed::space_node::draw_tree_path(), draw_view_axis(), ED_file_path_button(), ED_fileselect_init_layout(), ED_image_draw_info(), ed_panel_draw(), ED_region_header_layout(), ED_region_info_draw_multiline(), ED_time_scrub_channel_search_draw(), envelope_panel_draw(), file_draw_invalid_asset_library_hint(), file_draw_invalid_library_hint(), file_draw_list(), file_panel_execution_buttons_draw(), fmodifier_panel_header(), graph_draw_driven_property_enabled_btn(), graph_draw_driver_settings_panel(), graph_panel_key_properties(), blender::ed::asset::shelf::header_region_size(), blender::ed::outliner::merged_element_search_menu(), modifier_panel_header(), blender::ed::space_node::node_add_error_message_button(), blender::ed::space_node::node_add_unsupported_compositor_operation_error_message_button(), blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_extra_info_row(), blender::ed::space_node::node_find_menu(), blender::ed::space_node::node_geometry_add_attribute_search_button(), blender::ed::space_node::node_geometry_add_layer_search_button(), blender::ed::outliner::outliner_back(), blender::ed::outliner::outliner_box_select(), blender::ed::outliner::outliner_buttons(), blender::ed::outliner::outliner_draw_active_indicator(), blender::ed::outliner::outliner_draw_hierarchy_line(), blender::ed::outliner::outliner_draw_hierarchy_lines_recursive(), blender::ed::outliner::outliner_draw_highlights(), blender::ed::outliner::outliner_draw_iconrow_doit(), blender::ed::outliner::outliner_draw_mode_column_toggle(), blender::ed::outliner::outliner_draw_overrides_restrictbuts(), blender::ed::outliner::outliner_draw_overrides_rna_buts(), blender::ed::outliner::outliner_draw_restrictbuts(), blender::ed::outliner::outliner_draw_rnabuts(), blender::ed::outliner::outliner_draw_struct_marks(), blender::ed::outliner::outliner_draw_tree(), blender::ed::outliner::outliner_draw_tree_element(), blender::ed::outliner::outliner_draw_userbuts(), blender::ed::outliner::outliner_draw_warning_tree_element(), blender::ed::outliner::outliner_drop_insert_find(), blender::ed::outliner::outliner_dropzone_element(), blender::ed::outliner::outliner_find_first_desired_element_at_y(), blender::ed::outliner::outliner_find_item_at_y(), blender::ed::outliner::outliner_id_delete_tag(), blender::ed::outliner::outliner_id_remap_find_tree_element(), blender::ed::outliner::outliner_is_element_in_view(), blender::ed::outliner::outliner_lib_relocate_invoke_do(), blender::ed::outliner::outliner_scroll_view(), blender::ed::outliner::outliner_set_coordinates(), blender::ed::outliner::outliner_tree_dimensions_impl(), blender::ed::outliner::outliner_walk_scroll(), uiLayout::panel_prop(), uiLayout::prop(), region_draw_status_text(), region_rect_recursive(), region_scale_modal(), region_scale_validate_size(), save_file_overwrite_cancel_button(), save_file_overwrite_confirm_button(), save_file_overwrite_saveas_button(), uiLayout::separator(), blender::ed::spreadsheet::spreadsheet_footer_region_draw(), blender::ed::spreadsheet::SpreadsheetDrawer::SpreadsheetDrawer(), template_add_button_search_menu(), template_common_search_menu(), template_ID(), template_ID_tabs(), template_keymap_item_properties(), template_operator_property_buts_draw_single(), template_texture_user_menu(), blender::ed::outliner::tselem_draw_icon(), ui_block_colorpicker(), ui_block_func_POPOVER(), ui_block_func_POPUP(), UI_block_layout(), ui_but_drag_init(), ui_def_but_rna__menu(), ui_draw_preview_item_stateless(), ui_handle_menu_event(), ui_imageuser_layer_menu(), ui_imageuser_pass_menu(), ui_imageuser_slot_menu(), ui_imageuser_view_menu_multiview(), ui_imageuser_view_menu_rr(), ui_item_array(), ui_item_disabled(), ui_item_estimate(), ui_item_menu(), ui_item_rna_size(), ui_menu_scroll_apply_offset_y(), ui_menu_scroll_step(), ui_menu_scroll_to_y(), blender::ed::space_node::ui_node_menu_column(), ui_pan_to_scroll(), UI_panel_label_offset(), UI_pie_menu_begin(), ui_pie_menu_level_create(), ui_popup_block_position(), ui_popup_block_refresh(), UI_popup_block_template_confirm_op(), ui_popup_context_menu_for_button(), UI_preview_tile_size_y(), UI_preview_tile_size_y_no_label(), ui_search_menu_create_tooltip(), UI_searchbox_size_y(), ui_template_list_layout_draw(), blender::ed::space_node::ui_template_node_link_menu(), UI_tooltip_create_from_button_or_extra_icon(), uiblock_layer_pass_buttons(), uiItemDecoratorR_prop(), uiItemFullO_ptr_ex(), uiItemL_(), uiItemProgressIndicator(), uiItemsFullEnumO_items(), uiItemSpacer(), uiItemTabsEnumR_prop(), uilist_resize_update(), uiTemplateComponentMenu(), uiTemplateCryptoPicker(), uiTemplateHistogram(), uiTemplateIcon(), uiTemplateIconView(), uiTemplateImage(), uiTemplateLayers(), uiTemplateMarker(), uiTemplateMenuSearch(), uiTemplateNodeLink(), uiTemplateNodeSocket(), uiTemplateOperatorSearch(), uiTemplatePalette(), uiTemplatePreview(), uiTemplateReportsBanner(), uiTemplateRunningJobs(), uiTemplateStatusInfo(), uiTemplateTextureShow(), uiTemplateTextureUser(), uiTemplateTrack(), uiTemplateVectorscope(), uiTemplateWaveform(), blender::ui::unpadded_item_height(), uvedit_vertex_buttons(), view3d_panel_vgroup(), widget_draw_text_icon(), wm_block_create_redo(), wm_block_dialog_create(), wm_block_file_close_cancel_button(), wm_block_file_close_discard_button(), wm_block_file_close_save_button(), wm_block_insert_unicode_create(), wm_block_search_menu(), wm_block_splash_add_label(), and wm_enum_search_menu().
| #define UI_VALUE_INDETERMINATE_CHAR BLI_STR_UTF8_EM_DASH |
Character used when value is indeterminate (multiple, unknown, unset).
Definition at line 106 of file UI_interface_c.hh.
Referenced by widget_draw_text().
| #define USE_UI_POPOVER_ONCE |
Support click-drag motion which presses the button and closes a popover (like a menu).
Definition at line 3014 of file UI_interface_c.hh.
| #define USE_UI_TOOLBAR_HACK |
Special drawing for toolbar, mainly workarounds for inflexible icon sizing.
Definition at line 3011 of file UI_interface_c.hh.
| using uiBlockCancelFunc = void (*)(bContext *C, void *arg1) |
Definition at line 812 of file UI_interface_c.hh.
| using uiBlockCreateFunc = uiBlock *(*)(bContext *C, ARegion *region, void *arg1) |
Definition at line 811 of file UI_interface_c.hh.
| using uiBlockHandleFunc = void (*)(bContext *C, void *arg, int event) |
Definition at line 630 of file UI_interface_c.hh.
Returns 'user_data', freed by uiBlockInteractionEndFn.
Definition at line 657 of file UI_interface_c.hh.
| using uiBlockInteractionEndFn |
Definition at line 660 of file UI_interface_c.hh.
Definition at line 664 of file UI_interface_c.hh.
| using uiButArgNCopy = void *(*)(const void *argN) |
Definition at line 603 of file UI_interface_c.hh.
| using uiButArgNFree = void (*)(void *argN) |
Signatures of callbacks used to free or copy some 'owned' void pointer data (like e.g. #func_argN in uiBut or uiBlock).
Definition at line 602 of file UI_interface_c.hh.
| using uiButCompleteFunc = int (*)(bContext *C, char *str, void *arg) |
Definition at line 596 of file UI_interface_c.hh.
| using uiButHandleFunc = void (*)(bContext *C, void *arg1, void *arg2) |
Definition at line 592 of file UI_interface_c.hh.
| using uiButHandleHoldFunc = void (*)(bContext *C, ARegion *butregion, uiBut *but) |
Definition at line 595 of file UI_interface_c.hh.
| using uiButHandleNFunc = void (*)(bContext *C, void *argN, void *arg2) |
Definition at line 594 of file UI_interface_c.hh.
| using uiButHandleRenameFunc = void (*)(bContext *C, void *arg, char *origstr) |
Definition at line 593 of file UI_interface_c.hh.
| using uiButIdentityCompareFunc = bool (*)(const uiBut *a, const uiBut *b) |
Function to compare the identity of two buttons over redraws, to check if they represent the same data, and thus should be considered the same button over redraws.
Definition at line 609 of file UI_interface_c.hh.
| using uiButSearchContextMenuFn |
Definition at line 620 of file UI_interface_c.hh.
| using uiButSearchCreateFn = ARegion *(*)(bContext *C, ARegion *butregion, uiButSearch *search_but) |
Definition at line 612 of file UI_interface_c.hh.
| using uiButSearchListenFn = void (*)(const wmRegionListenerParams *params, void *arg) |
Definition at line 626 of file UI_interface_c.hh.
| using uiButSearchTooltipFn |
Definition at line 624 of file UI_interface_c.hh.
| using uiButSearchUpdateFn |
is_first is typically used to ignore search filtering when the menu is first opened in order to display the full list of options. The value will be false after the button's text is edited (for every call except the first).
Definition at line 618 of file UI_interface_c.hh.
| using uiButToolTipCustomFunc = void (*)(bContext &C, uiTooltipData &data, void *argN) |
Definition at line 628 of file UI_interface_c.hh.
| using uiListPanelIDFromDataFunc = void (*)(void *data_link, char *r_idname) |
Definition at line 2136 of file UI_interface_c.hh.
| anonymous enum |
| Enumerator | |
|---|---|
| UI_BLOCK_THEME_STYLE_REGULAR | |
| UI_BLOCK_THEME_STYLE_POPUP | |
Definition at line 905 of file UI_interface_c.hh.
| anonymous enum |
| Enumerator | |
|---|---|
| UI_DIR_UP | |
| UI_DIR_DOWN | |
| UI_DIR_LEFT | |
| UI_DIR_RIGHT | |
| UI_DIR_CENTER_X | |
| UI_DIR_CENTER_Y | |
| UI_DIR_ALL | |
Definition at line 148 of file UI_interface_c.hh.
| anonymous enum |
Special Buttons
Buttons with a more specific purpose:
| Enumerator | |
|---|---|
| UI_ID_NOP | |
| UI_ID_RENAME | |
| UI_ID_BROWSE | |
| UI_ID_ADD_NEW | |
| UI_ID_ALONE | |
| UI_ID_OPEN | |
| UI_ID_DELETE | |
| UI_ID_LOCAL | |
| UI_ID_AUTO_NAME | |
| UI_ID_FAKE_USER | |
| UI_ID_PIN | |
| UI_ID_PREVIEWS | |
| UI_ID_OVERRIDE | |
| UI_ID_FULL | |
Definition at line 1534 of file UI_interface_c.hh.
| anonymous enum |
Definition at line 2185 of file UI_interface_c.hh.
| anonymous enum |
Definition at line 197 of file UI_interface_c.hh.
| anonymous enum |
Ways to limit what is displayed in ID-search popup.
| Enumerator | |
|---|---|
| UI_TEMPLATE_ID_FILTER_ALL | |
| UI_TEMPLATE_ID_FILTER_AVAILABLE | |
Definition at line 1556 of file UI_interface_c.hh.
| anonymous enum |
| Enumerator | |
|---|---|
| UI_BUT2_ACTIVATE_ON_INIT_NO_SELECT | This is used when UI_BUT_ACTIVATE_ON_INIT is used, which is used to activate e.g. a search box as soon as a popup opens. Usually, the text in the search box is selected by default. However, sometimes this behavior is not desired, so it can be disabled with this flag. |
| UI_BUT2_FORCE_SEMI_MODAL_ACTIVE | Force the button as active in a semi-modal state. For example, text buttons can continuously capture text input, while leaving the remaining UI interactive. Only supported well for text buttons currently. |
Definition at line 266 of file UI_interface_c.hh.
| anonymous enum |
uiBlock.flag (controls)
Definition at line 160 of file UI_interface_c.hh.
| anonymous enum |
| Enumerator | |
|---|---|
| UI_BUT_DRAG_FULL_BUT | By default only the left part of a button triggers dragging. A questionable design to make the icon but not other parts of the button draggable. Set this flag so the entire button can be dragged. |
| UI_BUT_DRAGPOIN_FREE | |
Definition at line 282 of file UI_interface_c.hh.
| anonymous enum |
| Enumerator | |
|---|---|
| UI_CNR_TOP_LEFT | |
| UI_CNR_TOP_RIGHT | |
| UI_CNR_BOTTOM_RIGHT | |
| UI_CNR_BOTTOM_LEFT | |
| UI_CNR_NONE | |
| UI_CNR_ALL | |
Definition at line 2214 of file UI_interface_c.hh.
| anonymous enum |
uiBut.flag general state flags.
| Enumerator | |
|---|---|
| UI_BUT_ICON_SUBMENU | |
| UI_BUT_ICON_PREVIEW | |
| UI_BUT_NODE_LINK | |
| UI_BUT_NODE_ACTIVE | |
| UI_BUT_DRAG_LOCK | |
| UI_BUT_DISABLED | Grayed out and un-editable. |
| UI_BUT_ANIMATED | |
| UI_BUT_ANIMATED_KEY | |
| UI_BUT_DRIVEN | |
| UI_BUT_REDALERT | |
| UI_BUT_INACTIVE | Grayed out but still editable. |
| UI_BUT_LAST_ACTIVE | |
| UI_BUT_UNDO | |
| UI_BUT_NO_UTF8 | |
| UI_BUT_ACTIVE_DEFAULT | For popups, pressing return activates this button, overriding the highlighted button. For non-popups this is just used as a display hint for the user to let them know the action which is activated when pressing return (file selector for eg). |
| UI_BUT_LIST_ITEM | This but is "inside" a list item (currently used to change theme colors). |
| UI_BUT_DRAG_MULTI | edit this button as well as the active button (not just dragging) |
| UI_BUT_ACTIVATE_ON_INIT | Use for popups to start editing the button on initialization. |
| UI_BUT_HAS_SEP_CHAR | uiBut.str contains UI_SEP_CHAR, used to show key-shortcuts right aligned. Since a label may contain UI_SEP_CHAR, it's important to split on the last occurrence (meaning the right aligned text can't contain this character). |
| UI_BUT_UPDATE_DELAY | Don't run updates while dragging (needed in rare cases). |
| UI_BUT_TEXTEDIT_UPDATE | When widget is in text-edit mode, update value on each char stroke. |
| UI_BUT_VALUE_CLEAR | Show 'x' icon to clear/unlink value of text or search button. |
| UI_BUT_OVERRIDDEN | RNA property of the button is overridden from linked reference data. |
Definition at line 213 of file UI_interface_c.hh.
| anonymous enum |
| Enumerator | |
|---|---|
| UI_TEMPLATE_ASSET_DRAW_NO_NAMES | |
| UI_TEMPLATE_ASSET_DRAW_NO_FILTER | |
| UI_TEMPLATE_ASSET_DRAW_NO_LIBRARY | |
Definition at line 2617 of file UI_interface_c.hh.
| anonymous enum |
State for scroll-drawing.
| Enumerator | |
|---|---|
| UI_SCROLL_PRESSED | |
| UI_SCROLL_ARROWS | |
Definition at line 536 of file UI_interface_c.hh.
| anonymous enum |
uiBut::drawflag, these flags should only affect how the button is drawn.
| Enumerator | |
|---|---|
| UI_BUT_TEXT_LEFT | Text and icon alignment (by default, they are centered). |
| UI_BUT_ICON_LEFT | |
| UI_BUT_TEXT_RIGHT | |
| UI_BUT_NO_TOOLTIP | Prevent the button to show any tool-tip. |
| UI_BUT_HAS_QUICK_TOOLTIP | |
| UI_BUT_NO_TEXT_PADDING | Do not add the usual horizontal padding for text drawing. |
| UI_BUT_NO_PREVIEW_PADDING | Do not add the usual padding around preview image drawing, use the size of the button. |
| UI_BUT_ALIGN_TOP | |
| UI_BUT_ALIGN_LEFT | |
| UI_BUT_ALIGN_RIGHT | |
| UI_BUT_ALIGN_DOWN | |
| UI_BUT_ALIGN | |
| UI_BUT_ALIGN_STITCH_TOP | Warning - HACK! Needed for buttons which are not TOP/LEFT aligned, but have some top/left corner stitched to some other TOP/LEFT-aligned button, because of "corrective" hack in widget_roundbox_set(). |
| UI_BUT_ALIGN_STITCH_LEFT | |
| UI_BUT_ALIGN_ALL | |
| UI_BUT_BOX_ITEM | This but is "inside" a box item (currently used to change theme colors). |
| UI_BUT_HOVER_LEFT | Mouse is hovering left part of number button |
| UI_BUT_HOVER_RIGHT | Mouse is hovering right part of number button |
| UI_BUT_ICON_REVERSE | Reverse order of consecutive off/on icons |
| UI_BUT_ANIMATED_CHANGED | Value is animated, but the current value differs from the animated one. |
| UI_BUT_CHECKBOX_INVERT | Draw the checkbox buttons inverted. |
| UI_BUT_INDETERMINATE | Drawn in a way that indicates that the state/value is unknown. |
| UI_BUT_ICON_INVERT | Draw icon inverted to indicate a special state. |
Definition at line 327 of file UI_interface_c.hh.
| enum eAutoPropButsReturn |
Return info for uiDefAutoButsRNA.
| Enumerator | |
|---|---|
| UI_PROP_BUTS_NONE_ADDED | Returns when no buttons were added |
| UI_PROP_BUTS_ANY_FAILED_CHECK | Returned when any property failed the custom check callback (check_prop) |
Definition at line 1677 of file UI_interface_c.hh.
| enum eBlockBoundsCalc |
Block bounds/position calculation.
| Enumerator | |
|---|---|
| UI_BLOCK_BOUNDS_NONE | |
| UI_BLOCK_BOUNDS | |
| UI_BLOCK_BOUNDS_TEXT | |
| UI_BLOCK_BOUNDS_POPUP_MOUSE | |
| UI_BLOCK_BOUNDS_POPUP_MENU | |
| UI_BLOCK_BOUNDS_POPUP_CENTER | |
| UI_BLOCK_BOUNDS_PIE_CENTER | |
Definition at line 974 of file UI_interface_c.hh.
| enum eButGradientType |
Gradient types, for color picker UI_BTYPE_HSVCUBE etc.
| Enumerator | |
|---|---|
| UI_GRAD_NONE | |
| UI_GRAD_SV | |
| UI_GRAD_HV | |
| UI_GRAD_HS | |
| UI_GRAD_H | |
| UI_GRAD_S | |
| UI_GRAD_V | |
| UI_GRAD_V_ALT | |
| UI_GRAD_L_ALT | |
Definition at line 481 of file UI_interface_c.hh.
| enum eButLabelAlign |
For uiDefAutoButsRNA.
Definition at line 1667 of file UI_interface_c.hh.
| enum eButPointerType |
Button types, bits stored in 1 value... and a short even!
| Enumerator | |
|---|---|
| UI_BUT_POIN_NONE | |
| UI_BUT_POIN_CHAR | |
| UI_BUT_POIN_SHORT | |
| UI_BUT_POIN_INT | |
| UI_BUT_POIN_FLOAT | |
| UI_BUT_POIN_BIT | |
Definition at line 393 of file UI_interface_c.hh.
| enum eButType |
uiBut::type OR'd with eButPointerType when passing as an argument.
| Enumerator | |
|---|---|
| UI_BTYPE_BUT | |
| UI_BTYPE_ROW | |
| UI_BTYPE_TEXT | |
| UI_BTYPE_MENU | Drop-down list. |
| UI_BTYPE_BUT_MENU | |
| UI_BTYPE_NUM | number button |
| UI_BTYPE_NUM_SLIDER | number slider |
| UI_BTYPE_TOGGLE | |
| UI_BTYPE_TOGGLE_N | |
| UI_BTYPE_ICON_TOGGLE | |
| UI_BTYPE_ICON_TOGGLE_N | |
| UI_BTYPE_BUT_TOGGLE | same as regular toggle, but no on/off state displayed |
| UI_BTYPE_CHECKBOX | similar to toggle, display a 'tick' |
| UI_BTYPE_CHECKBOX_N | |
| UI_BTYPE_COLOR | |
| UI_BTYPE_TAB | |
| UI_BTYPE_POPOVER | |
| UI_BTYPE_SCROLL | |
| UI_BTYPE_BLOCK | |
| UI_BTYPE_LABEL | |
| UI_BTYPE_KEY_EVENT | |
| UI_BTYPE_HSVCUBE | |
| UI_BTYPE_PULLDOWN | Menu (often used in headers), *_MENU with different draw-type. |
| UI_BTYPE_ROUNDBOX | |
| UI_BTYPE_COLORBAND | |
| UI_BTYPE_UNITVEC | sphere widget (used to input a unit-vector, aka normal) |
| UI_BTYPE_CURVE | |
| UI_BTYPE_CURVEPROFILE | Profile editing widget |
| UI_BTYPE_LISTBOX | |
| UI_BTYPE_LISTROW | |
| UI_BTYPE_HSVCIRCLE | |
| UI_BTYPE_TRACK_PREVIEW | |
| UI_BTYPE_SEARCH_MENU | Buttons with value >= UI_BTYPE_SEARCH_MENU don't get undo pushes. |
| UI_BTYPE_EXTRA | |
| UI_BTYPE_PREVIEW_TILE | A preview image (PreviewImage), with text under it. Typically bigger than normal buttons and laid out in a grid, e.g. like the File Browser in thumbnail display mode. |
| UI_BTYPE_HOTKEY_EVENT | |
| UI_BTYPE_IMAGE | Non-interactive image, used for splash screen |
| UI_BTYPE_HISTOGRAM | |
| UI_BTYPE_WAVEFORM | |
| UI_BTYPE_VECTORSCOPE | |
| UI_BTYPE_PROGRESS | |
| UI_BTYPE_NODE_SOCKET | |
| UI_BTYPE_SEPR | |
| UI_BTYPE_SEPR_LINE | |
| UI_BTYPE_SEPR_SPACER | Dynamically fill available space. |
| UI_BTYPE_GRIP | Resize handle (resize UI-list). |
| UI_BTYPE_DECORATOR | |
| UI_BTYPE_VIEW_ITEM | An item a view (see #ui::AbstractViewItem). |
Definition at line 411 of file UI_interface_c.hh.
| enum eFontStyle_Align |
#uiFontStyle.align
| Enumerator | |
|---|---|
| UI_STYLE_TEXT_LEFT | |
| UI_STYLE_TEXT_CENTER | |
| UI_STYLE_TEXT_RIGHT | |
Definition at line 2773 of file UI_interface_c.hh.
|
strong |
| Enumerator | |
|---|---|
| None | |
| Top | |
| Bottom | |
Definition at line 952 of file UI_interface_c.hh.
| enum uiTemplateListFlags |
| Enumerator | |
|---|---|
| UI_TEMPLATE_LIST_FLAG_NONE | |
| UI_TEMPLATE_LIST_SORT_REVERSE | |
| UI_TEMPLATE_LIST_SORT_LOCK | |
| UI_TEMPLATE_LIST_NO_GRIP | Don't allow resizing the list, i.e. don't add the grip button. |
| UI_TEMPLATE_LIST_NO_FILTER_OPTIONS | Do not show filtering options, not even the button to expand/collapse them. Also hides the grip button. |
| UI_TEMPLATE_LIST_NO_NAMES | For UILST_LAYOUT_BIG_PREVIEW_GRID, don't reserve space for the name label. |
| UI_TEMPLATE_LIST_FLAGS_LAST | |
Definition at line 2533 of file UI_interface_c.hh.
| enum uiTooltipColorID |
| Enumerator | |
|---|---|
| UI_TIP_LC_MAIN | |
| UI_TIP_LC_VALUE | |
| UI_TIP_LC_ACTIVE | |
| UI_TIP_LC_NORMAL | |
| UI_TIP_LC_PYTHON | |
| UI_TIP_LC_ALERT | |
| UI_TIP_LC_MAX | |
Definition at line 1883 of file UI_interface_c.hh.
|
strong |
| Enumerator | |
|---|---|
| None | |
| Checkerboard_Themed | |
| Checkerboard_Fixed | |
Definition at line 1893 of file UI_interface_c.hh.
| enum uiTooltipStyle |
| Enumerator | |
|---|---|
| UI_TIP_STYLE_NORMAL | |
| UI_TIP_STYLE_HEADER | |
| UI_TIP_STYLE_MONO | |
| UI_TIP_STYLE_IMAGE | |
| UI_TIP_STYLE_SPACER | |
Definition at line 1875 of file UI_interface_c.hh.
| void ED_dropboxes_ui | ( | ) |
Definition at line 157 of file interface_dropboxes.cc.
References RGN_TYPE_WINDOW, SPACE_EMPTY, ui_drop_material_copy(), ui_drop_material_poll(), ui_drop_material_tooltip(), ui_drop_name_copy(), ui_drop_name_poll(), ui_view_drop_poll(), ui_view_drop_tooltip(), WM_drag_free_imported_drag_ID(), WM_dropbox_add(), and WM_dropboxmap_find().
Referenced by ED_spacemacros_init().
| void ED_keymap_ui | ( | wmKeyConfig * | keyconf | ) |
User Interface Keymap.
Definition at line 2928 of file interface_ops.cc.
References eyedropper_colorband_modal_keymap(), eyedropper_modal_keymap(), RGN_TYPE_WINDOW, SPACE_EMPTY, and WM_keymap_ensure().
Referenced by ED_spacetypes_keymap().
| void ED_operatortypes_ui | ( | ) |
Definition at line 2881 of file interface_ops.cc.
References override_idtemplate_menu(), UI_OT_assign_default_button(), UI_OT_button_execute(), UI_OT_button_string_clear(), UI_OT_copy_as_driver_button(), UI_OT_copy_data_path_button(), UI_OT_copy_driver_to_selected_button(), UI_OT_copy_python_command_button(), UI_OT_copy_to_selected_button(), UI_OT_drop_color(), UI_OT_drop_material(), UI_OT_drop_name(), blender::ui::UI_OT_eyedropper_bone(), UI_OT_eyedropper_color(), blender::ui::UI_OT_eyedropper_colorramp(), blender::ui::UI_OT_eyedropper_colorramp_point(), UI_OT_eyedropper_depth(), UI_OT_eyedropper_driver(), UI_OT_eyedropper_grease_pencil_color(), UI_OT_eyedropper_id(), UI_OT_jump_to_target_button(), UI_OT_list_start_filter(), UI_OT_override_idtemplate_clear(), UI_OT_override_idtemplate_make(), UI_OT_override_idtemplate_reset(), UI_OT_override_remove_button(), UI_OT_override_type_set_button(), UI_OT_reloadtranslation(), UI_OT_reset_default_button(), UI_OT_unset_property_button(), UI_OT_view_drop(), UI_OT_view_item_rename(), UI_OT_view_scroll(), UI_OT_view_start_filter(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
| void ED_uilisttypes_ui | ( | ) |
Definition at line 1344 of file interface_template_list.cc.
References UI_UL_asset_view(), UI_UL_cache_file_layers(), and WM_uilisttype_add().
Referenced by ED_spacetypes_init().
| ENUM_OPERATORS | ( | eAutoPropButsReturn | , |
| UI_PROP_BUTS_ANY_FAILED_CHECK | ) |
References active, ptr, UI_PROP_BUTS_ANY_FAILED_CHECK, x, and y.
| ENUM_OPERATORS | ( | uiTemplateListFlags | , |
| UI_TEMPLATE_LIST_FLAGS_LAST | ) |
References C, input, params, ptr, and UI_TEMPLATE_LIST_FLAGS_LAST.
| AutoComplete * UI_autocomplete_begin | ( | const char * | startname, |
| size_t | maxncpy ) |
Definition at line 5136 of file interface.cc.
References AutoComplete::matches, AutoComplete::maxncpy, MEM_calloc_arrayN(), MEM_callocN(), AutoComplete::startname, and AutoComplete::truncate.
Referenced by autocomplete_directory(), autocomplete_file(), and ui_searchbox_autocomplete().
| int UI_autocomplete_end | ( | AutoComplete * | autocpl, |
| char * | autoname ) |
Definition at line 5183 of file interface.cc.
References AUTOCOMPLETE_FULL_MATCH, AUTOCOMPLETE_NO_MATCH, AUTOCOMPLETE_PARTIAL_MATCH, BLI_strncpy(), AutoComplete::matches, AutoComplete::maxncpy, MEM_freeN(), AutoComplete::startname, and AutoComplete::truncate.
Referenced by autocomplete_directory(), autocomplete_file(), and ui_searchbox_autocomplete().
| void UI_autocomplete_update_name | ( | AutoComplete * | autocpl, |
| blender::StringRef | name ) |
Definition at line 5149 of file interface.cc.
References blender::StringRefBase::copy_utf8_truncated(), AutoComplete::matches, AutoComplete::maxncpy, blender::StringRefBase::size(), AutoComplete::startname, and AutoComplete::truncate.
Referenced by autocomplete_directory(), autocomplete_file(), and UI_search_item_add().
Definition at line 1188 of file interface.cc.
References BLI_assert, uiBlock::buttons, C, uiBlock::endblock, UI_BUT_ACTIVATE_ON_INIT, UI_but_active_only_ex(), and ui_but_is_editable().
Referenced by UI_popover_panel_invoke(), UI_popup_block_ex(), and UI_popup_block_invoke_ex().
| void UI_block_align_begin | ( | uiBlock * | block | ) |
Automatic aligning, horizontal or vertical.
Definition at line 4160 of file interface.cc.
References uiBlock::alignnr, uiBlock::flag, UI_block_align_end(), UI_BUT_ALIGN, and UI_BUT_ALIGN_DOWN.
Referenced by colorband_buttons_layout(), curvemap_clipping_func(), ED_time_scrub_channel_search_draw(), envelope_panel_draw(), template_ID(), template_search_buttons(), ui_block_colorpicker(), ui_item_array(), uiDefAutoButsArrayR(), uiTemplateComponentMenu(), uiTemplateMarker(), uiTemplateNodeSocket(), uiTemplateReportsBanner(), uiTemplateStatusInfo(), uvedit_vertex_buttons(), v3d_editvertex_buts(), and v3d_object_dimension_buts().
| void UI_block_align_end | ( | uiBlock * | block | ) |
Definition at line 4173 of file interface.cc.
References uiBlock::flag, and UI_BUT_ALIGN.
Referenced by colorband_buttons_layout(), ED_time_scrub_channel_search_draw(), blender::ed::space_node::node_update_basis_buttons(), blender::ed::space_node::node_update_basis_from_declaration(), blender::ed::space_node::node_update_basis_socket(), blender::ed::spreadsheet::spreadsheet_footer_region_draw(), template_ID(), template_search_buttons(), UI_block_align_begin(), ui_block_colorpicker(), UI_block_end_ex(), ui_item_array(), uiDefAutoButsArrayR(), uiTemplateComponentMenu(), uiTemplateMarker(), uiTemplateNodeSocket(), uiTemplateReportsBanner(), uiTemplateStatusInfo(), uvedit_vertex_buttons(), v3d_editvertex_buts(), and v3d_object_dimension_buts().
| uiBlock * UI_block_begin | ( | const bContext * | C, |
| ARegion * | region, | ||
| std::string | name, | ||
| blender::ui::EmbossType | emboss ) |
Definition at line 3878 of file interface.cc.
References C, CTX_data_scene(), CTX_wm_window(), and UI_block_begin().
Referenced by block_create__close_file_dialog(), block_create_autorun_warning(), block_create_gpu_backend_fallback(), block_create_opengl_usage_warning(), block_create_save_file_overwrite_dialog(), clip_draw_dopesheet_channels(), colorband_tools_fn(), component_menu(), blender::ed::space_node::create_search_popup_block(), curve_profile_presets_fn(), curve_profile_tools_fn(), curvemap_clipping_func(), curvemap_tools_func(), blender::ed::spreadsheet::draw_cell_contents(), blender::ed::vse::draw_channel_headers(), draw_channel_names(), blender::ed::spreadsheet::draw_left_column_content(), draw_nla_track_list(), blender::ed::outliner::draw_outliner(), blender::ed::spreadsheet::draw_top_row_content(), blender::ed::space_node::draw_tree_path(), ed_panel_draw(), ED_region_header_layout(), ED_time_scrub_channel_search_draw(), file_draw_invalid_asset_library_hint(), file_draw_list(), graph_draw_channel_names(), blender::ed::space_node::invalid_links_uiblock_init(), menu_add_shortcut(), menu_change_shortcut(), menu_items_from_ui_create(), blender::ed::outliner::merged_element_search_menu(), blender::ed::space_node::node_find_menu(), blender::ed::space_node::node_uiblocks_init(), panel_property_search(), blender::ed::asset::shelf::region_layout(), blender::ed::spreadsheet::spreadsheet_footer_region_draw(), template_common_search_menu(), ui_block_func_COLOR(), ui_icon_view_menu_cb(), UI_pie_menu_begin(), ui_popover_create_block(), ui_popup_menu_create_block(), wm_block_about_create(), wm_block_create_redo(), wm_block_dialog_create(), wm_block_insert_unicode_create(), wm_block_search_menu(), wm_block_splash_create(), wm_enum_search_menu(), and wm_operator_ui_create().
| uiBlock * UI_block_begin | ( | const bContext * | C, |
| Scene * | scene, | ||
| wmWindow * | window, | ||
| ARegion * | region, | ||
| std::string | name, | ||
| blender::ui::EmbossType | emboss ) |
Definition at line 3826 of file interface.cc.
References uiBlock::active, uiBlock::auto_open, uiBlock::buttons, C, ColorManagedDisplaySettings::display_device, uiBlock::display_device, Scene::display_settings, uiBlock::emboss, uiBlock::evil_C, uiBlock::flag, IMB_colormanagement_display_get_default_name(), MEM_callocN(), uiBlock::name, uiBlock::oldblock, Vector< T, InlineBufferCapacity, Allocator >::reserve(), ARegion::runtime, Vector< T, InlineBufferCapacity, Allocator >::size(), STRNCPY(), UI_BLOCK_LOOP, UI_block_region_set(), ui_update_window_matrix(), Scene::unit, and uiBlock::unit.
Referenced by UI_block_begin().
| void UI_block_bounds_set_centered | ( | uiBlock * | block, |
| int | addval ) |
Used for centered popups, i.e. splash.
Definition at line 667 of file interface.cc.
References uiBlock::bounds, uiBlock::bounds_type, and UI_BLOCK_BOUNDS_POPUP_CENTER.
Referenced by block_create__close_file_dialog(), block_create_autorun_warning(), block_create_gpu_backend_fallback(), block_create_opengl_usage_warning(), block_create_save_file_overwrite_dialog(), wm_block_about_create(), wm_block_dialog_create(), and wm_block_splash_create().
| void UI_block_bounds_set_explicit | ( | uiBlock * | block, |
| int | minx, | ||
| int | miny, | ||
| int | maxx, | ||
| int | maxy ) |
Definition at line 673 of file interface.cc.
References uiBlock::bounds_type, uiBlock::rect, UI_BLOCK_BOUNDS_NONE, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by blender::ed::space_node::node_update_basis(), and blender::ed::space_node::node_update_hidden().
| void UI_block_bounds_set_menu | ( | uiBlock * | block, |
| int | addval, | ||
| const int | bounds_offset[2] ) |
Used for menu popups.
Definition at line 655 of file interface.cc.
References uiBlock::bounds, uiBlock::bounds_offset, uiBlock::bounds_type, copy_v2_v2_int(), UI_BLOCK_BOUNDS_POPUP_MENU, and zero_v2_int().
Referenced by ui_block_func_POPUP().
| void UI_block_bounds_set_normal | ( | uiBlock * | block, |
| int | addval ) |
Used for various cases.
Definition at line 625 of file interface.cc.
References uiBlock::bounds, uiBlock::bounds_type, and UI_BLOCK_BOUNDS.
Referenced by component_menu(), curvemap_clipping_func(), ED_time_scrub_channel_search_draw(), template_common_search_menu(), UI_block_end_ex(), ui_block_func_COLOR(), ui_block_func_POPOVER(), and ui_icon_view_menu_cb().
| void UI_block_bounds_set_popup | ( | uiBlock * | block, |
| int | addval, | ||
| const int | bounds_offset[2] ) |
Used for block popups.
Definition at line 641 of file interface.cc.
References uiBlock::bounds, uiBlock::bounds_offset, uiBlock::bounds_type, and UI_BLOCK_BOUNDS_POPUP_MOUSE.
Referenced by blender::ed::space_node::create_search_popup_block(), menu_add_shortcut(), menu_change_shortcut(), blender::ed::outliner::merged_element_search_menu(), blender::ed::space_node::node_find_menu(), ui_block_func_POPOVER(), wm_block_create_redo(), wm_block_dialog_create(), wm_block_insert_unicode_create(), wm_block_search_menu(), wm_enum_search_menu(), and wm_operator_ui_create().
| void UI_block_bounds_set_text | ( | uiBlock * | block, |
| int | addval ) |
Used for pull-downs.
Definition at line 635 of file interface.cc.
References uiBlock::bounds, uiBlock::bounds_type, and UI_BLOCK_BOUNDS_TEXT.
Referenced by colorband_tools_fn(), curve_profile_presets_fn(), curve_profile_tools_fn(), curvemap_tools_func(), and ui_block_func_POPUP().
| bool UI_block_can_add_separator | ( | const uiBlock * | block | ) |
Definition at line 725 of file interface_query.cc.
References ELEM, uiBlock::last_but(), uiBut::type, ui_block_is_menu(), ui_block_is_pie_menu(), UI_BTYPE_SEPR, and UI_BTYPE_SEPR_LINE.
Referenced by uiLayout::separator().
| void UI_block_direction_set | ( | uiBlock * | block, |
| char | direction ) |
Definition at line 6010 of file interface.cc.
References uiBlock::direction.
Referenced by colorband_tools_fn(), component_menu(), curve_profile_presets_fn(), curve_profile_tools_fn(), curvemap_clipping_func(), curvemap_tools_func(), menu_add_shortcut(), menu_change_shortcut(), menu_item_enum_opname_menu(), template_common_search_menu(), ui_block_func_POPOVER(), ui_block_func_POPUP(), ui_icon_view_menu_cb(), and ui_item_menu_hold().
Uses local copy of style, to scale things down, and allow widgets to change stuff.
Definition at line 2212 of file interface.cc.
References uiBlock::aspect, BLF_batch_draw_begin(), BLF_batch_draw_end(), Panel_Runtime::block, uiBlock::buttons, C, CTX_wm_region(), CTX_wm_region_popup(), ELEM, uiBlock::endblock, ARegion::flag, uiBlock::flag, GPU_blend(), GPU_BLEND_ALPHA, GPU_matrix_identity_set(), GPU_matrix_pop(), GPU_matrix_pop_projection(), GPU_matrix_push(), GPU_matrix_push_projection(), uiStyle::grouplabel, uiBlock::panel, ThemeUI::panel_roundness, uiStyle::paneltitle, uiFontStyle::points, ARegion::regiontype, RGN_FLAG_SEARCH_FILTER_ACTIVE, RGN_TYPE_HUD, RGN_TYPE_TEMPORARY, Panel::runtime, uiStyle::tooltip, bTheme::tui, Panel::type, U, UI_block_end(), UI_BLOCK_LOOP, UI_BLOCK_PIE_MENU, UI_BLOCK_POPOVER, ui_block_views_draw_overlays(), ui_but_pixelrect_in_view(), ui_but_to_pixelrect(), ui_draw_aligned_panel(), ui_draw_but(), ui_draw_layout_panels_backdrop(), ui_draw_menu_back(), ui_draw_pie_center(), ui_draw_popover_back(), ui_fontscale(), UI_GetTheme(), UI_HIDDEN, UI_panel_category_is_visible(), UI_panel_should_show_background(), UI_SCROLLED, UI_style_get_dpi(), UI_widgetbase_draw_cache_begin(), UI_widgetbase_draw_cache_end(), uiStyle::widget, wmOrtho2_region_pixelspace(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by clip_draw_dopesheet_channels(), blender::ed::spreadsheet::draw_cell_contents(), blender::ed::vse::draw_channel_headers(), draw_channel_names(), blender::ed::spreadsheet::draw_left_column_content(), draw_nla_track_list(), blender::ed::outliner::draw_outliner(), blender::ed::spreadsheet::draw_top_row_content(), blender::ed::space_node::draw_tree_path(), ED_time_scrub_channel_search_draw(), file_draw_invalid_asset_library_hint(), file_draw_list(), blender::ed::space_node::frame_node_draw_overlay(), graph_draw_channel_names(), blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_hidden(), blender::ed::space_node::node_draw_nodetree(), blender::ed::space_node::reroute_node_draw(), blender::ed::spreadsheet::spreadsheet_footer_region_draw(), ui_block_region_draw(), UI_blocklist_draw(), and UI_panels_draw().
| blender::ui::EmbossType UI_block_emboss_get | ( | uiBlock * | block | ) |
Definition at line 3895 of file interface.cc.
References uiBlock::emboss.
Referenced by blender::ui::TreeViewLayoutBuilder::build_row(), uiTemplateReportsBanner(), and uiTemplateStatusInfo().
| void UI_block_emboss_set | ( | uiBlock * | block, |
| blender::ui::EmbossType | emboss ) |
Definition at line 3900 of file interface.cc.
References uiBlock::emboss.
Referenced by ANIM_channel_draw_widgets(), blender::ed::asset::shelf::asset_shelf_header_draw(), block_create_autorun_warning(), block_create_gpu_backend_fallback(), block_create_opengl_usage_warning(), blender::ui::TreeViewLayoutBuilder::build_row(), clip_draw_dopesheet_channels(), colorband_buttons_layout(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), blender::ed::vse::draw_channel_labels(), blender::ed::vse::draw_channel_widget_lock(), blender::ed::vse::draw_channel_widget_mute(), draw_constraint_header(), draw_grease_pencil_layer_widgets(), blender::ed::space_node::draw_link_errors(), blender::ed::outliner::draw_outliner(), graph_draw_driver_settings_panel(), nla_panel_stripname(), blender::ed::space_node::node_add_error_message_button(), blender::ed::space_node::node_add_unsupported_compositor_operation_error_message_button(), blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_extra_info_row(), blender::ed::space_node::node_draw_hidden(), blender::ed::space_node::node_draw_panels(), blender::ed::space_node::node_file_output_socket_draw(), blender::ed::outliner::outliner_draw_mode_column_toggle(), blender::ed::outliner::outliner_draw_warning_tree_element(), template_keymap_item_properties(), blender::ed::space_node::ui_node_draw_input(), ui_template_list_layout_draw(), uiTemplateReportsBanner(), uiTemplateStatusInfo(), and wm_block_splash_add_label().
Definition at line 2168 of file interface.cc.
References C, CTX_data_depsgraph_pointer(), CTX_data_main(), CTX_data_scene(), CTX_wm_region(), CTX_wm_window(), wmWindow::eventstate, UI_block_end_ex(), and wmEvent::xy.
Referenced by clip_draw_dopesheet_channels(), blender::ed::spreadsheet::draw_cell_contents(), blender::ed::vse::draw_channel_headers(), draw_channel_names(), blender::ed::spreadsheet::draw_left_column_content(), draw_nla_track_list(), blender::ed::outliner::draw_outliner(), blender::ed::spreadsheet::draw_top_row_content(), blender::ed::space_node::draw_tree_path(), ed_panel_draw(), ED_region_header_layout(), ED_time_scrub_channel_search_draw(), file_draw_invalid_asset_library_hint(), file_draw_list(), graph_draw_channel_names(), menu_items_from_ui_create(), blender::ed::space_node::node_draw_nodetree(), blender::ed::asset::shelf::region_layout(), blender::ed::spreadsheet::spreadsheet_footer_region_draw(), and UI_block_draw().
| void UI_block_end_ex | ( | const bContext * | C, |
| Main * | bmain, | ||
| wmWindow * | window, | ||
| Scene * | scene, | ||
| ARegion * | region, | ||
| Depsgraph * | depsgraph, | ||
| uiBlock * | block, | ||
| const int | xy[2] = nullptr, | ||
| int | r_xy[2] = nullptr ) |
Definition at line 2054 of file interface.cc.
References uiBlock::active, BKE_animsys_eval_context_construct(), BKE_scene_frame_get(), BLI_assert, uiBlock::bounds_type, uiBlock::buttons, C, depsgraph, uiBlock::endblock, ListBase::first, uiBlock::flag, uiPopupBlockHandle::grab_xy_prev, uiBlock::handle, uiBlock::layouts, LISTBASE_FOREACH, ot, uiBlock::panel, uiBlock::rect, ui_block_align_calc(), UI_block_align_end(), UI_BLOCK_BOUNDS, ui_block_bounds_calc(), ui_block_bounds_calc_centered(), ui_block_bounds_calc_centered_pie(), ui_block_bounds_calc_popup(), ui_block_bounds_calc_post_centered(), ui_block_bounds_calc_text(), UI_BLOCK_BOUNDS_NONE, UI_BLOCK_BOUNDS_PIE_CENTER, UI_BLOCK_BOUNDS_POPUP_CENTER, UI_BLOCK_BOUNDS_POPUP_MENU, UI_BLOCK_BOUNDS_POPUP_MOUSE, UI_block_bounds_set_normal(), UI_BLOCK_BOUNDS_TEXT, UI_block_layout_resolve(), UI_BLOCK_LOOP, UI_BLOCK_NO_ACCELERATOR_KEYS, UI_BLOCK_NUMSELECT, UI_BLOCK_SHOW_SHORTCUT_ALWAYS, UI_block_update_from_old(), ui_block_views_end(), UI_BUT_ALIGN, ui_but_anim_decorate_update_from_flag(), ui_but_anim_flag(), ui_but_context_poll_operator(), ui_but_context_poll_operator_ex(), UI_BUT_DISABLED, UI_but_is_decorator, ui_but_override_flag(), ui_but_predefined_extra_operator_icons_add(), ui_but_validate(), ui_menu_block_set_keyaccels(), ui_menu_block_set_keymaps(), ui_update_flexible_spacing(), rctf::xmax, rctf::xmin, and xy.
Referenced by blender::ed::space_node::frame_node_draw_overlay(), blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_hidden(), blender::ed::space_node::reroute_node_draw(), UI_block_end(), and ui_popup_block_refresh().
| void UI_block_flag_disable | ( | uiBlock * | block, |
| int | flag ) |
Definition at line 6020 of file interface.cc.
References flag, and uiBlock::flag.
Referenced by blender::ui::TreeViewBuilder::build_tree_view(), UI_popover_end(), ui_template_list_layout_draw(), wm_block_create_redo(), wm_block_dialog_create(), and wm_operator_ui_create().
| void UI_block_flag_enable | ( | uiBlock * | block, |
| int | flag ) |
This call escapes if there's alignment flags.
Definition at line 6015 of file interface.cc.
References flag, and uiBlock::flag.
Referenced by block_create__close_file_dialog(), block_create_autorun_warning(), block_create_save_file_overwrite_dialog(), blender::ui::TreeViewBuilder::build_tree_view(), component_menu(), blender::ed::space_node::create_search_popup_block(), curvemap_clipping_func(), blender::ed::outliner::draw_outliner(), ED_time_scrub_channel_search_draw(), menu_change_shortcut(), menu_items_from_ui_create(), blender::ed::outliner::merged_element_search_menu(), blender::ed::space_node::node_find_menu(), blender::ed::space_node::node_uiblocks_init(), template_common_search_menu(), ui_block_func_PIE(), ui_block_func_POPOVER(), ui_block_func_POPUP(), ui_def_but_rna__menu(), ui_icon_view_menu_cb(), UI_menutype_draw(), ui_popover_create_block(), UI_popover_end(), ui_template_list_layout_draw(), wm_block_about_create(), wm_block_create_redo(), wm_block_dialog_create(), wm_block_insert_unicode_create(), wm_block_search_menu(), wm_block_splash_create(), wm_enum_search_menu(), and wm_operator_ui_create().
Can be called with C==NULL.
Definition at line 3703 of file interface.cc.
References BLI_freelistN(), uiBlock::buttons, C, Vector< T, InlineBufferCapacity, Allocator >::clear(), uiBlock::color_pickers, uiBlock::dynamic_listeners, uiBlock::func_argN, uiBlock::func_argN_free_fn, ColorPickerData::list, MEM_freeN(), uiBlock::saferct, ui_block_free_active_operator(), ui_block_free_views(), ui_but_free(), UI_butstore_clear(), and uiBlock::unit.
Referenced by menu_items_from_ui_create(), UI_blocklist_free(), UI_blocklist_free_inactive(), and UI_popup_menu_end_or_cancel().
| void UI_block_func_handle_set | ( | uiBlock * | block, |
| uiBlockHandleFunc | func, | ||
| void * | arg ) |
Definition at line 6205 of file interface.cc.
References uiBlock::handle_func, and uiBlock::handle_func_arg.
Referenced by graph_draw_driver_settings_panel(), graph_panel_modifiers(), image_panel_uv(), menu_add_shortcut(), menu_change_shortcut(), nla_panel_actclip(), nla_panel_animated_influence_header(), nla_panel_animated_strip_time(), nla_panel_animated_strip_time_header(), nla_panel_animdata(), nla_panel_evaluation(), nla_panel_modifiers(), nla_panel_properties(), nla_panel_stripname(), ui_layout_end(), uiTemplateMarker(), uiTemplateOperatorRedoProperties(), uiTemplatePreview(), uiTemplateRunningJobs(), view3d_panel_transform(), view3d_panel_vgroup(), and wm_block_create_redo().
| void UI_block_func_set | ( | uiBlock * | block, |
| uiButHandleFunc | func, | ||
| void * | arg1, | ||
| void * | arg2 ) |
Definition at line 6211 of file interface.cc.
References uiBlock::func, uiBlock::func_arg1, and uiBlock::func_arg2.
Referenced by draw_constraint_header(), ED_file_path_button(), file_panel_execution_buttons_draw(), file_panel_operator(), wm_block_dialog_create(), wm_block_insert_unicode_create(), wm_block_splash_create(), and wm_operator_ui_create().
| void UI_block_funcN_set | ( | uiBlock * | block, |
| uiButHandleNFunc | funcN, | ||
| void * | argN, | ||
| void * | arg2, | ||
| uiButArgNFree | func_argN_free_fn = MEM_freeN, | ||
| uiButArgNCopy | func_argN_copy_fn = MEM_dupallocN ) |
Definition at line 6218 of file interface.cc.
References uiBlock::func_arg2, uiBlock::func_argN, uiBlock::func_argN_copy_fn, uiBlock::func_argN_free_fn, and uiBlock::funcN.
Referenced by curvemap_buttons_layout(), CurveProfile_buttons_layout(), uiTemplateImage(), and uiTemplateMarker().
| bool UI_block_has_active_default_button | ( | const uiBlock * | block | ) |
Return true when the block has a default button. Use this for popups to detect when pressing "Return" will run an action.
Definition at line 734 of file interface_query.cc.
References uiBlock::buttons, UI_BUT_ACTIVE_DEFAULT, and UI_HIDDEN.
Referenced by UI_popup_block_template_confirm(), and wm_block_dialog_create().
| void UI_block_interaction_set | ( | uiBlock * | block, |
| uiBlockInteraction_CallbackData * | callbacks ) |
Definition at line 12614 of file interface_handlers.cc.
References uiBlock::custom_interaction_callbacks.
Referenced by v3d_editvertex_buts().
| bool UI_block_is_empty | ( | const uiBlock * | block | ) |
Definition at line 720 of file interface_query.cc.
References UI_block_is_empty_ex().
| bool UI_block_is_empty_ex | ( | const uiBlock * | block, |
| bool | skip_title ) |
Definition at line 706 of file interface_query.cc.
References uiBlock::first_but(), uiBlock::next_but(), uiBut::type, UI_BTYPE_LABEL, and ui_but_next_non_separator().
Referenced by UI_block_is_empty(), and UI_popup_menu_end_or_cancel().
| bool UI_block_is_search_only | ( | const uiBlock * | block | ) |
Definition at line 3910 of file interface.cc.
References uiBlock::flag, and UI_BLOCK_SEARCH_ONLY.
Referenced by UI_panels_draw().
| void UI_block_listen | ( | const uiBlock * | block, |
| const wmRegionListenerParams * | listener_params ) |
Definition at line 3731 of file interface.cc.
References uiBlock::dynamic_listeners, LISTBASE_FOREACH, and ui_block_views_listen().
Referenced by ED_region_do_listen().
| void UI_block_lock_clear | ( | uiBlock * | block | ) |
Definition at line 2465 of file interface.cc.
References uiBlock::lock, and uiBlock::lockstr.
Referenced by draw_constraint_header(), panel_draw(), template_operator_property_buts_draw_single(), uiTemplateColorRamp(), uiTemplateCurveMapping(), and uiTemplateCurveProfile().
| void UI_block_lock_set | ( | uiBlock * | block, |
| bool | val, | ||
| const char * | lockstr ) |
Definition at line 2457 of file interface.cc.
References uiBlock::lock, and uiBlock::lockstr.
Referenced by modifier_panel_get_property_pointers(), panel_draw(), shaderfx_panel_header(), template_operator_property_buts_draw_single(), uiTemplateColorRamp(), uiTemplateConstraintHeader(), uiTemplateCurveMapping(), and uiTemplateCurveProfile().
Definition at line 3802 of file interface.cc.
References uiBlock::active, BLI_addhead(), uiBlock::handle, uiBlock::name, uiBlock::oldblock, uiBlock::panel, and ARegion::runtime.
Referenced by UI_block_begin(), ui_block_func_PIE(), ui_block_func_POPOVER(), and ui_block_func_POPUP().
| void UI_block_set_active_operator | ( | uiBlock * | block, |
| wmOperator * | op, | ||
| const bool | free ) |
Used for operator presets.
Definition at line 3693 of file interface.cc.
References free(), ui_block_free_active_operator(), uiBlock::ui_operator, and uiBlock::ui_operator_free.
Referenced by template_operator_property_buts_draw_single(), and uiTemplateCollectionExporters().
| void UI_block_set_search_only | ( | uiBlock * | block, |
| bool | search_only ) |
Use when a block must be searched to give accurate results for the whole region but shouldn't be displayed.
Definition at line 3915 of file interface.cc.
References uiBlock::flag, SET_FLAG_FROM_TEST, and UI_BLOCK_SEARCH_ONLY.
Referenced by panel_property_search(), and panel_remove_invisible_layouts_recursive().
| void UI_block_theme_style_set | ( | uiBlock * | block, |
| char | theme_style ) |
Definition at line 3905 of file interface.cc.
References uiBlock::theme_style.
Referenced by block_create__close_file_dialog(), block_create_autorun_warning(), block_create_gpu_backend_fallback(), block_create_opengl_usage_warning(), block_create_save_file_overwrite_dialog(), blender::ed::space_node::create_search_popup_block(), curvemap_clipping_func(), blender::ed::outliner::merged_element_search_menu(), blender::ed::space_node::node_find_menu(), template_common_search_menu(), ui_block_func_COLOR(), ui_block_func_PIE(), ui_block_func_POPOVER(), ui_block_func_POPUP(), ui_icon_view_menu_cb(), UI_panel_begin(), ui_popup_block_refresh(), wm_block_about_create(), wm_block_create_redo(), wm_block_dialog_create(), wm_block_insert_unicode_create(), wm_block_search_menu(), wm_block_splash_create(), wm_enum_search_menu(), and wm_operator_ui_create().
| void UI_block_translate | ( | uiBlock * | block, |
| float | x, | ||
| float | y ) |
Definition at line 390 of file interface.cc.
References BLI_rctf_translate(), uiBlock::buttons, uiBlock::rect, x, and y.
Referenced by ed_panel_draw(), ui_block_bounds_calc_centered(), ui_block_bounds_calc_centered_pie(), ui_block_bounds_calc_popup(), ui_block_bounds_calc_post_centered(), and ui_popup_block_refresh().
Definition at line 1953 of file interface.cc.
References uiBlock::auto_open, uiBlock::auto_open_last, BLI_listbase_is_empty(), BLI_movelisttolist(), uiBlock::butstore, uiBlock::buttons, C, Vector< T, InlineBufferCapacity, Allocator >::clear_and_shrink(), uiBlock::color_pickers, Vector< T, InlineBufferCapacity, Allocator >::is_empty(), ColorPickerData::list, uiBlock::oldblock, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::reserve(), Vector< T, InlineBufferCapacity, Allocator >::size(), uiBlock::tooltipdisabled, ui_but_free(), UI_but_tooltip_refresh(), ui_but_update(), ui_but_update_from_old_block(), and UI_butstore_update().
Referenced by UI_block_end_ex(), and ui_popup_block_refresh().
Definition at line 3764 of file interface.cc.
References C, LISTBASE_FOREACH, and UI_block_draw().
Referenced by blender::ed::asset::shelf::region_draw(), and region_draw_blocks_in_view2d().
Can be called with C==NULL.
Definition at line 3773 of file interface.cc.
References BLI_pophead(), C, ARegion::runtime, and UI_block_free().
Referenced by ED_area_init(), ED_region_property_search(), ED_screen_state_toggle(), property_search_all_tabs(), and ui_region_handler_remove().
Definition at line 3782 of file interface.cc.
References BLI_remlink(), C, LISTBASE_FOREACH_MUTABLE, ARegion::runtime, and UI_block_free().
Referenced by ED_region_do_draw(), and ui_popup_block_refresh().
| int UI_blocklist_min_y_get | ( | ListBase * | lb | ) |
Definition at line 5997 of file interface.cc.
References ListBase::first, LISTBASE_FOREACH, min, uiBlock::rect, and rctf::ymin.
Definition at line 3755 of file interface.cc.
References C, LISTBASE_FOREACH, and ui_but_update_view_for_active().
Referenced by ED_region_panels_layout_ex().
Definition at line 3743 of file interface.cc.
References C, CTX_wm_region(), CTX_wm_window(), LISTBASE_FOREACH, and ui_update_window_matrix().
Referenced by ED_region_panels_draw(), blender::ed::asset::shelf::region_draw(), region_draw_blocks_in_view2d(), and blender::ed::asset::shelf::region_layout().
| bool UI_but_active_drop_color | ( | bContext * | C | ) |
Definition at line 12593 of file interface_handlers.cc.
References C, CTX_wm_region(), uiBut::type, UI_BTYPE_COLOR, and ui_region_find_active_but().
Referenced by blender::ed::space_node::node_color_drop_poll(), and UI_drop_color_poll().
| bool UI_but_active_drop_name | ( | const bContext * | C | ) |
Returns true if highlighted button allows drop of names. called in region context.
Definition at line 12588 of file interface_handlers.cc.
References C, and UI_but_active_drop_name_button().
Referenced by blender::ed::space_node::node_collection_drop_poll(), blender::ed::space_node::node_material_drop_poll(), blender::ed::space_node::node_object_drop_poll(), and ui_drop_name_poll().
Definition at line 12574 of file interface_handlers.cc.
References C, CTX_wm_region(), ELEM, uiBut::type, UI_BTYPE_SEARCH_MENU, UI_BTYPE_TEXT, and ui_region_find_active_but().
Referenced by drop_name_invoke(), drop_name_poll(), and UI_but_active_drop_name().
Definition at line 1183 of file interface.cc.
References C, and UI_but_active_only_ex().
Referenced by blender::ui::AbstractViewItem::add_rename_button(), ANIM_channel_draw_widgets(), blender::ed::vse::draw_channel_labels(), file_draw_list(), blender::ed::outliner::outliner_buttons(), UI_textbutton_activate_but(), and UI_textbutton_activate_rna().
| bool UI_but_active_only_ex | ( | const bContext * | C, |
| ARegion * | region, | ||
| uiBlock * | block, | ||
| uiBut * | but, | ||
| bool | remove_on_failure ) |
Special button case, only draw it when used actively, for outliner etc.
Needed for temporarily rename buttons, such as in outliner or file-select, they should keep calling uiDefBut to keep them alive.
Definition at line 1141 of file interface.cc.
References activate(), uiBut::active, C, uiBut::layout, uiBlock::oldblock, uiBlock::remove_but(), ui_but_activate_event(), ui_but_active_free(), ui_but_find_old(), ui_but_free(), ui_layout_remove_but(), and ui_region_find_active_but().
Referenced by UI_block_active_only_flagged_buttons(), and UI_but_active_only().
| std::optional< blender::StringRefNull > UI_but_asset_shelf_type_idname_get | ( | const uiBut * | but | ) |
This is a bit of a hack but best keep it in one place at least.
Definition at line 6045 of file interface_layout.cc.
References UI_asset_shelf_idname_from_button_context().
Referenced by shortcut_get_operator_property().
Sets the button's color, normally only used to recolor the icon. In the special case of UI_BTYPE_LABEL without icon this is used as text color.
Definition at line 6077 of file interface.cc.
References uiBut::col, and copy_v4_v4_uchar().
Referenced by file_add_overlay_icon_but(), and wm_block_splash_add_label().
| const bContextStore * UI_but_context_get | ( | const uiBut * | but | ) |
Definition at line 6181 of file interface.cc.
References uiBut::context.
Referenced by blender::ed::asset::shelf::context(), and wm_drop_ui_context_create().
| std::optional< int64_t > UI_but_context_int_get | ( | const uiBut * | but, |
| blender::StringRef | name ) |
Definition at line 6173 of file interface.cc.
References uiBut::context, and CTX_store_int_lookup().
Referenced by blender::ed::outliner::outliner_but_identity_cmp_context_id_fn().
| void UI_but_context_int_set | ( | uiBlock * | block, |
| uiBut * | but, | ||
| blender::StringRef | name, | ||
| int64_t | value ) |
Definition at line 6150 of file interface.cc.
References uiBut::context, uiBlock::contexts, CTX_store_add(), and bContextStore::used.
Referenced by blender::ed::outliner::outliner_draw_overrides_restrictbuts().
| std::string UI_but_context_menu_title_from_button | ( | uiBut & | but | ) |
Definition at line 6882 of file interface.cc.
References blender::ui::AbstractView::get_context_menu_title(), blender::ui::AbstractViewItem::get_view(), IFACE_, uiBut::type, UI_BTYPE_VIEW_ITEM, UI_but_string_get_label(), and uiButViewItem::view_item.
Referenced by ui_popup_context_menu_for_button().
| const PointerRNA * UI_but_context_ptr_get | ( | const uiBut * | but, |
| blender::StringRef | name, | ||
| const StructRNA * | type = nullptr ) |
Definition at line 6157 of file interface.cc.
References uiBut::context, and CTX_store_ptr_lookup().
| void UI_but_context_ptr_set | ( | uiBlock * | block, |
| uiBut * | but, | ||
| blender::StringRef | name, | ||
| const PointerRNA * | ptr ) |
Definition at line 6140 of file interface.cc.
References uiBut::context, uiBlock::contexts, CTX_store_add(), ptr, and bContextStore::used.
Referenced by blender::ed::asset::shelf::AssetViewItem::build_grid_tile().
| std::optional< blender::StringRefNull > UI_but_context_string_get | ( | const uiBut * | but, |
| blender::StringRef | name ) |
Definition at line 6164 of file interface.cc.
References uiBut::context, and CTX_store_string_lookup().
Referenced by UI_asset_shelf_idname_from_button_context().
| void UI_but_disable | ( | uiBut * | but, |
| const char * | disabled_hint ) |
Definition at line 6065 of file interface.cc.
References uiBut::disabled_info, UI_BUT_DISABLED, and UI_but_flag_enable().
Referenced by curvemap_buttons_layout(), CurveProfile_buttons_layout(), draw_setting_widget(), modifier_panel_header(), blender::ed::outliner::outliner_draw_mode_column_toggle(), ui_def_but_operator_ptr(), ui_def_but_rna(), ui_def_but_rna_propname(), ui_item_disabled(), uiTemplateTextureShow(), and v3d_object_dimension_buts().
Set an image to display while dragging. This works for any drag type (WM_DRAG_XXX). Not to be confused with UI_but_drag_set_image(), which sets up dragging of an image.
Sets UI_BUT_DRAG_FULL_BUT so the full button can be dragged.
Definition at line 29 of file interface_drag.cc.
References uiBut::imb, uiBut::imb_scale, UI_BUT_DRAG_FULL_BUT, and UI_but_dragflag_enable().
Referenced by file_but_enable_drag(), and UI_but_drag_set_image().
| void UI_but_drag_set_asset | ( | uiBut * | but, |
| const blender::asset_system::AssetRepresentation * | asset, | ||
| const AssetImportSettings & | import_settings, | ||
| int | icon, | ||
| int | preview_icon ) |
Sets UI_BUT_DRAG_FULL_BUT so the full button can be dragged.
| asset | May be passed from a temporary variable, drag data only stores a copy of this. |
| icon | Small icon that will be drawn while dragging. |
| preview_icon | Bigger preview size icon that will be drawn while dragging instead of icon. |
Definition at line 36 of file interface_drag.cc.
References uiBut::drag_preview_icon_id, uiBut::dragflag, uiBut::dragpoin, uiBut::dragtype, UI_BUT_DRAGPOIN_FREE, ui_def_but_icon(), WM_DRAG_ASSET, WM_drag_create_asset_data(), and WM_drag_data_free().
Referenced by asset_view_item_but_drag_set(), and file_but_enable_drag().
Definition at line 19 of file interface_drag.cc.
References uiBut::dragflag, uiBut::dragpoin, uiBut::dragtype, UI_BUT_DRAGPOIN_FREE, WM_drag_data_free(), and WM_DRAG_ID.
Referenced by asset_view_item_but_drag_set(), file_but_enable_drag(), template_add_button_search_menu(), template_ID_tabs(), and uiItemLDrag().
| void UI_but_drag_set_image | ( | uiBut * | but, |
| const char * | path, | ||
| int | icon, | ||
| const ImBuf * | imb, | ||
| float | scale ) |
Sets UI_BUT_DRAG_FULL_BUT so the full button can be dragged.
| path | The path to drag. The passed string may be destructed, button keeps a copy. |
Definition at line 84 of file interface_drag.cc.
References UI_but_drag_attach_image(), UI_but_drag_set_path(), and ui_def_but_icon().
Referenced by file_but_enable_drag().
| void UI_but_drag_set_name | ( | uiBut * | but, |
| const char * | name ) |
Definition at line 74 of file interface_drag.cc.
References uiBut::dragflag, uiBut::dragpoin, uiBut::dragtype, UI_BUT_DRAGPOIN_FREE, WM_drag_data_free(), and WM_DRAG_NAME.
| void UI_but_drag_set_path | ( | uiBut * | but, |
| const char * | path ) |
Enable dragging a path from this button.
| path | The path to drag. The passed string may be destructed, button keeps a copy. |
Definition at line 64 of file interface_drag.cc.
References uiBut::dragflag, uiBut::dragpoin, uiBut::dragtype, UI_BUT_DRAGPOIN_FREE, WM_drag_create_path_data(), WM_drag_data_free(), and WM_DRAG_PATH.
Referenced by file_but_enable_drag(), and UI_but_drag_set_image().
| void UI_but_drag_set_rna | ( | uiBut * | but, |
| PointerRNA * | ptr ) |
Definition at line 54 of file interface_drag.cc.
References uiBut::dragflag, uiBut::dragpoin, uiBut::dragtype, ptr, UI_BUT_DRAGPOIN_FREE, WM_drag_data_free(), and WM_DRAG_RNA.
| void UI_but_dragflag_disable | ( | uiBut * | but, |
| int | flag ) |
Definition at line 6060 of file interface.cc.
References uiBut::dragflag, and flag.
| void UI_but_dragflag_enable | ( | uiBut * | but, |
| int | flag ) |
Definition at line 6055 of file interface.cc.
References uiBut::dragflag, and flag.
Referenced by asset_view_item_but_drag_set(), file_draw_list(), and UI_but_drag_attach_image().
| void UI_but_drawflag_disable | ( | uiBut * | but, |
| int | flag ) |
Definition at line 6050 of file interface.cc.
References uiBut::drawflag, and flag.
Referenced by block_create_autorun_warning(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_byte_color(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_content_cell(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_float4x4(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_float_vector(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_int_vector(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_left_column_cell(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_top_row_cell(), file_add_icon_but(), file_add_overlay_icon_but(), blender::ed::space_node::reroute_node_draw_label(), save_file_overwrite_cancel_button(), save_file_overwrite_confirm_button(), save_file_overwrite_saveas_button(), ui_block_colorpicker(), UI_but_type_set_menu_from_pulldown(), uiItemFullO_ptr_ex(), widget_draw_extra_icons(), wm_block_file_close_cancel_button(), wm_block_file_close_discard_button(), wm_block_file_close_save_button(), wm_block_insert_unicode_create(), and wm_block_splash_add_label().
| void UI_but_drawflag_enable | ( | uiBut * | but, |
| int | flag ) |
Definition at line 6045 of file interface.cc.
References uiBut::drawflag, and flag.
Referenced by blender::ed::asset::shelf::add_tab_button(), blender::ed::asset::shelf::AssetCatalogSelectorTree::Item::build_row(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_byte_color(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_content_cell(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_float_vector(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_int_vector(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_left_column_cell(), blender::ed::outliner::outliner_draw_restrictbuts(), template_add_button_search_menu(), template_ID_tabs(), UI_but_func_quick_tooltip_set(), UI_but_type_set_menu_from_pulldown(), ui_def_but_operator_ptr(), ui_item_enum_expand_tabs(), ui_item_menu(), ui_template_list_layout_draw(), uiTemplateMarker(), uiTemplateNodeLink(), view3d_panel_vgroup(), and wm_block_splash_add_label().
Adjust the view so the rectangle of but is in view, with some extra margin.
It's important that this is only executed after buttons received their final uiBut.rect. E.g. UI_panels_end() modifies them, so if that is executed, this function must not be called before it.
| region | The region the button is placed in. Make sure this is actually the one the button is placed in, not just the context region. |
Definition at line 859 of file interface_utils.cc.
References BLI_rctf_pad(), C, ED_region_tag_redraw_no_rebuild(), View2D::flag, ui_but_rect_to_view(), UI_UNIT_X, ui_view2d_cur_ensure_rect_in_view(), UI_view2d_curRect_changed(), ARegion::v2d, and V2D_IS_INIT.
Referenced by ui_but_update_view_for_active(), and ui_textedit_begin().
Simulate button click.
Definition at line 1218 of file interface.cc.
References C, ui_but_execute_begin(), and ui_but_execute_end().
Referenced by force_activate_view_item_but(), ui_button_press_invoke(), ui_drag_toggle_set_xy_xy(), ui_handle_menu_event(), ui_list_activate_hovered_row(), and ui_list_activate_row_from_index().
| std::string UI_but_extra_icon_string_get_label | ( | const uiButExtraOpIcon & | extra_icon | ) |
Definition at line 7000 of file interface.cc.
References UI_but_extra_operator_icon_opptr_get(), UI_but_extra_operator_icon_optype_get(), and WM_operatortype_name().
Referenced by ui_tooltip_data_from_button_or_extra_icon().
| std::string UI_but_extra_icon_string_get_operator_keymap | ( | const bContext & | C, |
| const uiButExtraOpIcon & | extra_icon ) |
Definition at line 7014 of file interface.cc.
References C, and ui_but_extra_icon_event_operator_string().
Referenced by ui_tooltip_data_from_button_or_extra_icon().
| std::string UI_but_extra_icon_string_get_tooltip | ( | bContext & | C, |
| const uiButExtraOpIcon & | extra_icon ) |
Definition at line 7007 of file interface.cc.
References C, UI_but_extra_operator_icon_opptr_get(), UI_but_extra_operator_icon_optype_get(), and WM_operatortype_description().
Referenced by ui_tooltip_data_from_button_or_extra_icon().
| PointerRNA * UI_but_extra_operator_icon_add | ( | uiBut * | but, |
| blender::StringRefNull | opname, | ||
| wmOperatorCallContext | opcontext, | ||
| int | icon ) |
Definition at line 1788 of file interface.cc.
References blender::StringRefNull::c_str(), ui_but_extra_operator_icon_add_ptr(), and WM_operatortype_find().
Referenced by blender::ed::asset_browser::AssetCatalogTreeViewItem::build_row(), file_panel_execution_buttons_draw(), and template_id_workspace_pin_extra_icon().
| PointerRNA * UI_but_extra_operator_icon_opptr_get | ( | const uiButExtraOpIcon * | extra_icon | ) |
Definition at line 1807 of file interface.cc.
References wmOperatorCallParams::opptr, and uiButExtraOpIcon::optype_params.
Referenced by UI_but_extra_icon_string_get_label(), UI_but_extra_icon_string_get_tooltip(), and ui_tooltip_data_from_button_or_extra_icon().
| wmOperatorType * UI_but_extra_operator_icon_optype_get | ( | const uiButExtraOpIcon * | extra_icon | ) |
Definition at line 1802 of file interface.cc.
References wmOperatorCallParams::optype, and uiButExtraOpIcon::optype_params.
Referenced by ui_but_extra_icon_event_operator_string(), UI_but_extra_icon_string_get_label(), UI_but_extra_icon_string_get_tooltip(), and ui_tooltip_data_from_button_or_extra_icon().
| void UI_but_flag2_enable | ( | uiBut * | but, |
| int | flag ) |
Definition at line 6030 of file interface.cc.
References flag, and uiBut::flag2.
Referenced by uiLayout::prop(), and wm_block_search_menu().
| void UI_but_flag_disable | ( | uiBut * | but, |
| int | flag ) |
Definition at line 6035 of file interface.cc.
References flag, and uiBut::flag.
Referenced by blender::ui::AbstractViewItem::add_rename_button(), blender::ed::asset::shelf::add_tab_button(), blender::ed::asset::shelf::AssetCatalogSelectorTree::Item::build_row(), file_draw_list(), blender::ed::outliner::outliner_buttons(), blender::ed::outliner::outliner_draw_mode_column_toggle(), blender::ed::outliner::outliner_draw_warning_tree_element(), template_ID(), template_operator_property_buts_draw_single(), ui_block_colorpicker(), ui_template_list_layout_draw(), and ui_update_color_picker_buts_rgba().
| void UI_but_flag_enable | ( | uiBut * | but, |
| int | flag ) |
Definition at line 6025 of file interface.cc.
References flag, and uiBut::flag.
Referenced by blender::nodes::add_attribute_search_button(), block_create_autorun_warning(), blender::ui::bonecollections::BoneCollectionItem::build_row(), blender::ed::space_node::create_search_popup_block(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), draw_setting_widget(), ED_file_path_button(), file_draw_list(), file_panel_execution_buttons_draw(), blender::ed::outliner::merged_element_search_menu(), blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_extra_info_row(), blender::ed::space_node::node_draw_hidden(), blender::ed::space_node::node_draw_panels(), blender::ed::space_node::node_find_menu(), blender::ed::outliner::outliner_draw_mode_column_toggle(), blender::ed::outliner::outliner_draw_overrides_restrictbuts(), blender::ed::outliner::outliner_draw_overrides_rna_buts(), blender::ed::outliner::outliner_draw_restrictbuts(), blender::ed::outliner::outliner_draw_rnabuts(), blender::ed::outliner::outliner_draw_userbuts(), uiLayout::prop(), blender::ed::space_node::reroute_node_draw_label(), save_file_overwrite_confirm_button(), save_file_overwrite_saveas_button(), template_add_button_search_menu(), template_ID(), template_id_def_new_but(), UI_but_disable(), ui_but_search_refresh(), ui_item_with_label(), ui_layout_list_set_labels_active(), UI_popup_block_template_confirm(), ui_popup_context_menu_for_button(), ui_template_list_layout_draw(), uiDefAutoButR(), uiItemFullO_ptr_ex(), uiItemL_(), uiItemL_ex(), uiTemplateKeymapItemProperties(), view3d_panel_vgroup(), wm_block_dialog_create(), wm_block_file_close_save_button(), wm_block_insert_unicode_create(), and wm_block_search_menu().
| bool UI_but_flag_is_set | ( | uiBut * | but, |
| int | flag ) |
Definition at line 6040 of file interface.cc.
References flag, and uiBut::flag.
Referenced by blender::ui::bonedropper_init(), datadropper_init(), depthdropper_init(), driverdropper_init(), drop_color_invoke(), ED_file_path_button(), blender::ui::eyedropper_colorband_init(), eyedropper_init(), file_panel_execution_buttons_draw(), and insert_key_button_exec().
push a new event onto event queue to activate the given button (usually a text-field) upon entering a popup
Definition at line 6775 of file interface.cc.
References EVT_BUT_OPEN, KM_PRESS, WM_event_add(), and wm_event_init_from_window().
Referenced by template_common_search_menu(), template_operator_property_buts_draw_single(), and wm_enum_search_menu().
| void UI_but_func_complete_set | ( | uiBut * | but, |
| uiButCompleteFunc | func, | ||
| void * | arg ) |
Definition at line 6284 of file interface.cc.
References uiBut::autocomplete_func, and uiBut::autofunc_arg.
Referenced by ED_file_path_button(), and file_panel_execution_buttons_draw().
| void UI_but_func_drawextra_set | ( | uiBlock * | block, |
| std::function< void(const bContext *C, rcti *rect)> | func ) |
Definition at line 6248 of file interface.cc.
References C, and uiBlock::drawextra.
Referenced by uiTemplatePreview().
| void UI_but_func_hold_set | ( | uiBut * | but, |
| uiButHandleHoldFunc | func, | ||
| void * | argN ) |
Definition at line 6789 of file interface.cc.
References uiBut::hold_argN, and uiBut::hold_func.
Referenced by uiItemFullOMenuHold_ptr().
| void UI_but_func_identity_compare_set | ( | uiBut * | but, |
| uiButIdentityCompareFunc | cmp_fn ) |
Callback to compare the identity of two buttons, used to identify buttons over redraws. If the callback returns true, the given buttons are considered to be matching and relevant state is preserved (copied from the old to the new button). If it returns false, it's considered non-matching and no further checks are done.
If this is set, it is always executed instead of the default comparisons. However it is only executed for buttons that have the same type and the same callback. So callbacks can assume the button types match.
Definition at line 437 of file interface_utils.cc.
References uiBut::identity_cmp_func.
Referenced by blender::ed::outliner::outliner_draw_overrides_restrictbuts().
Definition at line 1107 of file interface_template_search_menu.cc.
References uiBut::block, C, CTX_wm_area(), CTX_wm_region(), CTX_wm_window(), data, uiBlock::evil_C, menu_items_from_ui_create(), menu_search_arg_free_fn(), menu_search_exec_fn(), menu_search_update_fn(), SPACE_TOPBAR, ScrArea::spacetype, UI_but_func_search_set(), UI_but_func_search_set_context_menu(), UI_but_func_search_set_sep_string(), UI_but_func_search_set_tooltip(), UI_MENU_ARROW_SEP, ui_search_menu_create_context_menu(), ui_search_menu_create_tooltip(), and ui_searchbox_create_menu().
Referenced by uiTemplateMenuSearch(), and wm_block_search_menu().
| void UI_but_func_menu_step_set | ( | uiBut * | but, |
| uiMenuStepFunc | func ) |
Definition at line 6290 of file interface.cc.
References uiBut::menu_step_func.
Referenced by uiblock_layer_pass_buttons().
| void UI_but_func_operator_search | ( | uiBut * | but | ) |
Definition at line 86 of file interface_template_search_operator.cc.
References operator_search_exec_fn(), operator_search_update_fn(), UI_but_func_search_set(), and ui_searchbox_create_operator().
Referenced by uiTemplateOperatorSearch(), and wm_block_search_menu().
| void UI_but_func_quick_tooltip_set | ( | uiBut * | but, |
| std::function< std::string(const uiBut *but)> | func ) |
Enable a tooltip that appears faster than the usual tooltip. If the button has both a quick and a normal tooltip, the quick one is shown first, and expanded to the full one after the usual tooltip delay. Quick tooltips are useful in cases like:
Definition at line 6300 of file interface.cc.
References uiBut::tip_quick_func, UI_but_drawflag_enable(), and UI_BUT_HAS_QUICK_TOOLTIP.
Referenced by blender::ui::PreviewGridItem::build_grid_tile_button(), blender::ed::space_node::draw_link_errors(), and blender::ed::space_node::node_add_error_message_button().
| void UI_but_func_rename_full_set | ( | uiBut * | but, |
| std::function< void(std::string &new_name)> | rename_full_func ) |
Definition at line 6242 of file interface.cc.
References uiBut::rename_full_func.
Referenced by uiLayout::prop(), and template_ID().
| void UI_but_func_rename_set | ( | uiBut * | but, |
| uiButHandleRenameFunc | func, | ||
| void * | arg1 ) |
Definition at line 6236 of file interface.cc.
References uiBut::rename_arg1, and uiBut::rename_func.
Referenced by blender::ui::AbstractViewItem::add_rename_button(), file_draw_list(), and blender::ed::outliner::outliner_buttons().
| void UI_but_func_search_set | ( | uiBut * | but, |
| uiButSearchCreateFn | search_create_fn, | ||
| uiButSearchUpdateFn | search_update_fn, | ||
| void * | arg, | ||
| bool | free_arg, | ||
| uiFreeArgFunc | search_arg_free_fn, | ||
| uiButHandleFunc | search_exec_fn, | ||
| void * | active ) |
| search_create_fn | Function to create the menu. |
| search_update_fn | Function to refresh search content after the search text has changed. |
| arg | user value. |
| free_arg | Set to true if the argument is newly allocated memory for every redraw and should be freed when the button is destroyed. |
| search_arg_free_fn | When non-null, use this function to free arg. |
| search_exec_fn | Function that executes the action, gets arg as the first argument. The second argument as the active item-pointer |
| active | When non-null, this item-pointer item will be visible and selected, otherwise the first item will be selected. |
Definition at line 6487 of file interface.cc.
References active, uiButSearch::arg, uiButSearch::arg_free_fn, BLI_assert, uiBut::block, uiBut::drawstr, uiBlock::flag, uiBut::func, uiButSearch::item_active, uiButSearch::items_update_fn, uiButSearch::popup_create_fn, printf, uiButSearch::results_are_suggestions, uiBut::type, UI_BLOCK_LOOP, UI_BTYPE_SEARCH_MENU, UI_but_func_set(), UI_but_funcN_set(), ui_but_search_refresh(), and ui_searchbox_create_generic().
Referenced by blender::nodes::add_attribute_search_button(), blender::nodes::add_layer_name_search_button(), blender::ed::space_node::create_search_popup_block(), blender::ed::outliner::merged_element_search_menu(), blender::ed::space_node::node_find_menu(), blender::ed::space_node::node_geometry_add_attribute_search_button(), blender::ed::space_node::node_geometry_add_layer_search_button(), template_common_search_menu(), ui_but_add_search(), UI_but_func_menu_search(), UI_but_func_operator_search(), and uiDefSearchButO_ptr().
| void UI_but_func_search_set_context_menu | ( | uiBut * | but, |
| uiButSearchContextMenuFn | context_menu_fn ) |
Definition at line 6545 of file interface.cc.
References BLI_assert, uiButSearch::item_context_menu_fn, uiBut::type, and UI_BTYPE_SEARCH_MENU.
Referenced by UI_but_func_menu_search().
| void UI_but_func_search_set_listen | ( | uiBut * | but, |
| uiButSearchListenFn | listen_fn ) |
Definition at line 6569 of file interface.cc.
References BLI_assert, uiButSearch::listen_fn, uiBut::type, and UI_BTYPE_SEARCH_MENU.
Referenced by blender::ed::space_node::create_search_popup_block().
| void UI_but_func_search_set_results_are_suggestions | ( | uiBut * | but, |
| bool | value ) |
Definition at line 6576 of file interface.cc.
References BLI_assert, uiButSearch::results_are_suggestions, uiBut::type, and UI_BTYPE_SEARCH_MENU.
Referenced by blender::nodes::add_attribute_search_button(), blender::nodes::add_layer_name_search_button(), blender::ed::space_node::node_geometry_add_attribute_search_button(), blender::ed::space_node::node_geometry_add_layer_search_button(), and ui_but_add_search().
| void UI_but_func_search_set_sep_string | ( | uiBut * | but, |
| const char * | search_sep_string ) |
| search_sep_string | when not NULL, this string is used as a separator, showing the icon and highlighted text after the last instance of this string. |
Definition at line 6553 of file interface.cc.
References BLI_assert, uiButSearch::item_sep_string, uiBut::type, and UI_BTYPE_SEARCH_MENU.
Referenced by blender::nodes::add_attribute_search_button(), blender::nodes::add_layer_name_search_button(), blender::ed::space_node::create_search_popup_block(), blender::ed::space_node::node_geometry_add_attribute_search_button(), blender::ed::space_node::node_geometry_add_layer_search_button(), and UI_but_func_menu_search().
| void UI_but_func_search_set_tooltip | ( | uiBut * | but, |
| uiButSearchTooltipFn | tooltip_fn ) |
Definition at line 6561 of file interface.cc.
References BLI_assert, uiButSearch::item_tooltip_fn, uiBut::type, and UI_BTYPE_SEARCH_MENU.
Referenced by template_common_search_menu(), and UI_but_func_menu_search().
| void UI_but_func_set | ( | uiBut * | but, |
| uiButHandleFunc | func, | ||
| void * | arg1, | ||
| void * | arg2 ) |
Definition at line 6254 of file interface.cc.
References uiBut::func, uiBut::func_arg1, and uiBut::func_arg2.
Referenced by UI_but_func_search_set().
| void UI_but_func_tooltip_custom_set | ( | uiBut * | but, |
| uiButToolTipCustomFunc | func, | ||
| void * | arg, | ||
| uiFreeArgFunc | free_arg ) |
Definition at line 6316 of file interface.cc.
References uiBut::tip_arg, uiBut::tip_arg_free, and uiBut::tip_custom_func.
Referenced by blender::ed::asset::shelf::AssetViewItem::build_grid_tile(), file_but_tooltip_func_set(), ui_block_colorpicker(), and uiTemplateRecentFiles().
| void UI_but_func_tooltip_set | ( | uiBut * | but, |
| uiButToolTipFunc | func, | ||
| void * | arg, | ||
| uiFreeArgFunc | free_arg ) |
Definition at line 6306 of file interface.cc.
References uiBut::tip_arg, uiBut::tip_arg_free, and uiBut::tip_func.
Referenced by blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_byte_color(), blender::ed::vse::draw_channel_widget_lock(), blender::ed::vse::draw_channel_widget_mute(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_content_cell(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_float4x4(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_float_vector(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_int_vector(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_top_row_cell(), blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_extra_info_row(), blender::ed::space_node::node_socket_tooltip_set(), ui_def_but_rna__menu(), ui_template_list_layout_draw(), uiLayoutSetTooltipFunc(), uiTemplateRunningJobs(), and uiTemplateStatusInfo().
| void UI_but_funcN_set | ( | uiBut * | but, |
| uiButHandleNFunc | funcN, | ||
| void * | argN, | ||
| void * | arg2, | ||
| uiButArgNFree | func_argN_free_fn = MEM_freeN, | ||
| uiButArgNCopy | func_argN_copy_fn = MEM_dupallocN ) |
Definition at line 6266 of file interface.cc.
References uiBut::func_arg2, uiBut::func_argN, uiBut::func_argN_copy_fn, uiBut::func_argN_free_fn, and uiBut::funcN.
Referenced by colorband_buttons_layout(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), draw_setting_widget(), ED_file_path_button(), file_panel_execution_buttons_draw(), fmodifier_panel_header(), template_ID(), template_id_def_new_but(), template_ID_tabs(), template_texture_user_menu(), UI_but_func_search_set(), blender::ed::space_node::ui_node_menu_column(), ui_pie_menu_level_create(), blender::ed::space_node::ui_template_node_link_menu(), uiblock_layer_pass_buttons(), and uiTemplateMarker().
| bool UI_but_has_quick_tooltip | ( | const uiBut * | but | ) |
Definition at line 155 of file interface_query.cc.
References uiBut::drawflag, and UI_BUT_HAS_QUICK_TOOLTIP.
Referenced by button_activate_init(), button_tooltip_timer_reset(), and UI_tooltip_create_from_button_or_extra_icon().
| void UI_but_hint_drawstr_set | ( | uiBut * | but, |
| const char * | string ) |
Adds a hint to the button which draws right aligned, grayed out and never clipped.
Definition at line 6685 of file interface.cc.
References ui_but_add_shortcut().
Referenced by blender::ed::spreadsheet::draw_row_suffix().
Definition at line 6700 of file interface.cc.
References IconTextOverlay::color, copy_v4_v4_uchar(), and uiBut::icon_overlay_text.
Referenced by blender::ed::outliner::outliner_draw_userbuts(), and uiTemplateStatusInfo().
| void UI_but_icon_indicator_number_set | ( | uiBut * | but, |
| const int | indicator_number ) |
Definition at line 6690 of file interface.cc.
References uiBut::icon_overlay_text, and UI_icon_text_overlay_init_from_count().
Referenced by blender::ed::space_node::node_draw_basis(), and blender::ui::template_breadcrumbs().
| void UI_but_icon_indicator_set | ( | uiBut * | but, |
| const char * | string ) |
Definition at line 6695 of file interface.cc.
References uiBut::icon_overlay_text, STRNCPY(), and IconTextOverlay::text.
Referenced by blender::ed::outliner::outliner_draw_userbuts().
| bool UI_but_is_tool | ( | const uiBut * | but | ) |
Definition at line 141 of file interface_query.cc.
References g_ot_tool_set_by_id, uiBut::optype, and WM_operatortype_find().
Referenced by ui_but_user_menu_add(), ui_def_but_operator_ptr(), ui_draw_but(), ui_menu_block_set_keymaps(), UI_tooltip_create_from_button_or_extra_icon(), widget_draw_icon(), and widget_draw_text_icon().
| bool UI_but_is_userdef | ( | const uiBut * | but | ) |
Definition at line 750 of file interface_handlers.cc.
References uiBut::rnapoin, uiBut::rnaprop, and ui_rna_is_userdef().
Referenced by UI_context_active_but_prop_get_filebrowser().
| bool UI_but_is_utf8 | ( | const uiBut * | but | ) |
File selectors are exempt from UTF8 checks.
Definition at line 119 of file interface_query.cc.
References ELEM, uiBut::flag, PROP_BYTESTRING, PROP_DIRPATH, PROP_FILENAME, PROP_FILEPATH, RNA_property_subtype(), uiBut::rnaprop, and UI_BUT_NO_UTF8.
Referenced by ED_file_path_button(), file_panel_execution_buttons_draw(), ui_but_paste(), ui_but_string_get_ex(), ui_but_string_set(), ui_do_but_TEX(), ui_textedit_copypaste(), ui_textedit_end(), ui_textedit_insert_buf(), and ui_textedit_string_set().
| void UI_but_label_alpha_factor_set | ( | uiBut * | but, |
| float | alpha_factor ) |
Definition at line 6750 of file interface.cc.
References uiButLabel::alpha_factor, BLI_assert, uiBut::type, and UI_BTYPE_LABEL.
Referenced by file_add_icon_but(), file_add_overlay_icon_but(), and blender::ed::outliner::tselem_draw_icon().
| void UI_but_menu_disable_hover_open | ( | uiBut * | but | ) |
When a button displays a menu, hovering another button that can display one will switch to that menu instead. In some cases that's unexpected, so the feature can be disabled here (as in, this button will not spawn its menu on hover and the previously spawned menu will remain open).
Definition at line 6295 of file interface.cc.
References uiBut::menu_no_hover_open.
Referenced by blender::ui::template_asset_shelf_popover().
This is a bit of a hack but best keep it in one place at least.
Definition at line 6029 of file interface_layout.cc.
References uiBut::menu_create_func, uiBut::poin, and ui_item_menutype_func().
Referenced by menu_items_from_ui_create(), shortcut_get_operator_property(), ui_block_open_begin(), ui_but_copy_menu(), ui_but_event_operator_string(), ui_but_event_operator_string_from_menu(), ui_but_is_user_menu_compatible(), UI_but_string_get_rna_label(), UI_but_string_get_rna_label_context(), UI_but_string_get_rna_struct_identifier(), UI_but_string_get_rna_tooltip(), ui_but_user_menu_add(), and ui_but_user_menu_find().
| void UI_but_node_link_set | ( | uiBut * | but, |
| bNodeSocket * | socket, | ||
| const float | draw_color[4] ) |
Definition at line 6705 of file interface.cc.
References uiBut::col, uiBut::custom_data, uiBut::flag, rgba_float_to_uchar(), and UI_BUT_NODE_LINK.
Referenced by uiTemplateNodeLink().
| void UI_but_number_precision_set | ( | uiBut * | but, |
| float | precision ) |
Definition at line 6721 of file interface.cc.
References BLI_assert, uiButNumber::precision, uiBut::type, and UI_BTYPE_NUM.
Referenced by curvemap_buttons_layout(), curvemap_clipping_func(), CurveProfile_buttons_layout(), ui_def_but_rna(), uiTemplateMarker(), uvedit_vertex_buttons(), v3d_editvertex_buts(), v3d_object_dimension_buts(), and view3d_panel_vgroup().
| void UI_but_number_slider_precision_set | ( | uiBut * | but, |
| float | precision ) |
Definition at line 6740 of file interface.cc.
References BLI_assert, uiButNumberSlider::precision, uiBut::type, and UI_BTYPE_NUM_SLIDER.
Referenced by ui_block_colorpicker(), and ui_def_but_rna().
| void UI_but_number_slider_step_size_set | ( | uiBut * | but, |
| float | step_size ) |
Definition at line 6731 of file interface.cc.
References BLI_assert, uiButNumberSlider::step_size, uiBut::type, and UI_BTYPE_NUM_SLIDER.
Referenced by ui_block_colorpicker(), and ui_def_but_rna().
| void UI_but_number_step_size_set | ( | uiBut * | but, |
| float | step_size ) |
Definition at line 6712 of file interface.cc.
References BLI_assert, uiButNumber::step_size, uiBut::type, and UI_BTYPE_NUM.
Referenced by colorband_buttons_layout(), curvemap_buttons_layout(), curvemap_clipping_func(), CurveProfile_buttons_layout(), ui_def_but_rna(), uiTemplateMarker(), uvedit_vertex_buttons(), v3d_editvertex_buts(), v3d_object_dimension_buts(), and view3d_panel_vgroup().
| std::optional< std::string > UI_but_online_manual_id | ( | const uiBut * | but | ) |
Definition at line 774 of file interface_utils.cc.
References PointerRNA::data, wmOperatorType::idname, OP_MAX_TYPENAME, uiBut::optype, RNA_property_identifier(), RNA_struct_identifier(), uiBut::rnapoin, uiBut::rnaprop, PointerRNA::type, and WM_operator_py_idname().
Referenced by UI_but_online_manual_id_from_active(), and ui_popup_context_menu_for_button().
| std::optional< std::string > UI_but_online_manual_id_from_active | ( | const bContext * | C | ) |
Definition at line 789 of file interface_utils.cc.
References C, UI_but_online_manual_id(), and UI_context_active_but_get().
Referenced by doc_view_manual_ui_context_exec().
| PointerRNA * UI_but_operator_ptr_ensure | ( | uiBut * | but | ) |
For passing inputs to ButO buttons.
Definition at line 6130 of file interface.cc.
References uiBut::opptr, uiBut::optype, and WM_operator_properties_create_ptr().
Referenced by ANIM_channel_draw_widgets(), copy_python_command_button_exec(), file_draw_invalid_asset_library_hint(), operator_enum_search_exec_fn(), operator_enum_search_update_fn(), template_ID(), ui_but_copy_operator(), UI_but_rna_enum_item_get(), UI_but_string_get_rna_label(), UI_but_string_get_rna_tooltip(), ui_tooltip_data_from_button_or_extra_icon(), uiDefSearchButO_ptr(), uiItemFullO_ptr_ex(), uiTemplatePalette(), and view3d_panel_vgroup().
| void UI_but_operator_set | ( | uiBut * | but, |
| wmOperatorType * | optype, | ||
| wmOperatorCallContext | opcontext, | ||
| const PointerRNA * | opptr = nullptr ) |
Definition at line 5970 of file interface.cc.
References uiBut::flag, uiBut::opcontext, uiBut::opptr, uiBut::optype, and UI_BUT_UNDO.
Referenced by blender::ed::asset::shelf::AssetViewItem::build_grid_tile(), and ui_def_but_operator_ptr().
| void UI_but_operator_set_never_call | ( | uiBut * | but | ) |
Disable calling operators from but in button handling. Useful to attach an operator to a button for tooltips, "Assign Shortcut", etc. without actually making the button execute the operator.
Definition at line 5988 of file interface.cc.
References uiBut::operator_never_call.
Referenced by blender::ed::asset::shelf::AssetViewItem::build_grid_tile().
| wmOperatorType * UI_but_operatortype_get_from_enum_menu | ( | uiBut * | but, |
| PropertyRNA ** | r_prop ) |
This is a bit of a hack but best keep it in one place at least.
Definition at line 6012 of file interface_layout.cc.
References uiBut::func_argN, uiBut::menu_create_func, menu_item_enum_opname_menu(), MenuItemLevel::opname, ot, MenuItemLevel::propname, RNA_struct_type_find_property(), and WM_operatortype_find().
Referenced by ui_but_is_user_menu_compatible(), UI_but_string_get_rna_label(), UI_but_string_get_rna_tooltip(), ui_but_user_menu_add(), ui_but_user_menu_find(), and ui_layout_introspect_button().
This is a bit of a hack but best keep it in one place at least.
Definition at line 6037 of file interface_layout.cc.
References uiBut::menu_create_func, uiBut::poin, and ui_item_paneltype_func().
Referenced by button_activate_state(), menu_items_from_ui_create(), shortcut_get_operator_property(), ui_but_copy_popover(), ui_but_event_operator_string(), ui_but_event_operator_string_from_panel(), UI_but_string_get_rna_label(), and UI_but_string_get_rna_struct_identifier().
| void UI_but_placeholder_set | ( | uiBut * | but, |
| blender::StringRef | placeholder_text ) |
Set at hint that describes the expected value when empty.
Definition at line 6082 of file interface.cc.
References BLI_strdupn(), blender::StringRefBase::data(), blender::StringRefBase::is_empty(), MEM_SAFE_FREE, uiBut::placeholder, and blender::StringRefBase::size().
Referenced by blender::nodes::add_layer_name_search_button(), blender::ed::space_node::node_geometry_add_attribute_search_button(), blender::ed::space_node::node_geometry_add_layer_search_button(), and uiLayout::prop().
| int UI_but_return_value_get | ( | uiBut * | but | ) |
Definition at line 6125 of file interface.cc.
References uiBut::retval.
| std::optional< EnumPropertyItem > UI_but_rna_enum_item_get | ( | bContext & | C, |
| uiBut & | but ) |
Definition at line 6795 of file interface.cc.
References C, ELEM, uiBut::hardmax, uiBut::optype, ot, PROP_ENUM, ptr, RNA_property_enum_get(), RNA_property_enum_item_from_value_gettexted(), RNA_property_type(), RNA_struct_contains_property(), uiBut::rnapoin, uiBut::rnaprop, uiBut::type, UI_BTYPE_ROW, UI_BTYPE_TAB, UI_but_operator_ptr_ensure(), ui_but_value_get(), and WM_operator_properties_sanitize().
Referenced by ui_tooltip_data_from_button_or_extra_icon().
| void UI_but_search_preview_grid_size_set | ( | uiBut * | but, |
| int | rows, | ||
| int | cols ) |
Definition at line 6757 of file interface.cc.
References BLI_assert, uiButSearch::preview_cols, uiButSearch::preview_rows, uiBut::type, and UI_BTYPE_SEARCH_MENU.
Referenced by template_common_search_menu().
| std::string UI_but_string_get_label | ( | uiBut & | but | ) |
Definition at line 6866 of file interface.cc.
References uiBut::flag, uiBut::str, UI_BUT_HAS_SEP_CHAR, UI_but_string_get_rna_label(), and UI_SEP_CHAR.
Referenced by UI_but_context_menu_title_from_button(), and ui_tooltip_data_from_button_or_extra_icon().
Buttons assigned to an operator (common case).
Definition at line 6990 of file interface.cc.
References C, and ui_but_event_operator_string().
Referenced by ui_tooltip_data_from_button_or_extra_icon(), and ui_tooltip_data_from_tool().
Use for properties that are bound to one of the context cycle, etc. keys.
Definition at line 6995 of file interface.cc.
References C, and ui_but_event_property_operator_string().
Referenced by ui_tooltip_data_from_button_or_extra_icon().
| std::string UI_but_string_get_rna_label | ( | uiBut & | but | ) |
Definition at line 6903 of file interface.cc.
References CTX_TIP_, ELEM, uiBut::optype, ot, RNA_property_ui_name(), uiBut::rnaprop, uiBut::type, UI_BTYPE_MENU, UI_BTYPE_POPOVER, UI_BTYPE_PULLDOWN, UI_but_menutype_get(), UI_but_operator_ptr_ensure(), UI_but_operatortype_get_from_enum_menu(), UI_but_paneltype_get(), and WM_operatortype_name().
Referenced by UI_but_string_get_label().
| std::string UI_but_string_get_rna_label_context | ( | const uiBut & | but | ) |
Context specified in CTX_*_ macros are just unreachable!
Definition at line 6928 of file interface.cc.
References BLT_I18NCONTEXT_DEFAULT_BPYRNA, ELEM, uiBut::optype, RNA_property_translation_context(), RNA_struct_translation_context(), uiBut::rnaprop, wmOperatorType::srna, uiBut::type, UI_BTYPE_MENU, UI_BTYPE_PULLDOWN, and UI_but_menutype_get().
| std::string UI_but_string_get_rna_property_identifier | ( | const uiBut & | but | ) |
Definition at line 6837 of file interface.cc.
References RNA_property_identifier(), and uiBut::rnaprop.
Referenced by ui_tooltip_data_from_button_or_extra_icon().
| std::string UI_but_string_get_rna_struct_identifier | ( | const uiBut & | but | ) |
Definition at line 6845 of file interface.cc.
References PointerRNA::data, ELEM, wmOperatorType::idname, uiBut::optype, RNA_struct_identifier(), uiBut::rnapoin, uiBut::rnaprop, PointerRNA::type, uiBut::type, UI_BTYPE_MENU, UI_BTYPE_POPOVER, UI_BTYPE_PULLDOWN, UI_but_menutype_get(), and UI_but_paneltype_get().
Referenced by ui_tooltip_data_from_button_or_extra_icon().
Definition at line 6955 of file interface.cc.
References C, uiBut::context, CTX_store_get(), CTX_store_set(), ELEM, uiBut::optype, ot, RNA_property_ui_description(), RNA_struct_ui_description(), uiBut::rnaprop, uiBut::type, UI_BTYPE_MENU, UI_BTYPE_POPOVER, UI_BTYPE_PULLDOWN, UI_but_menutype_get(), UI_but_operator_ptr_ensure(), UI_but_operatortype_get_from_enum_menu(), and WM_operatortype_description().
Referenced by UI_but_string_get_tooltip().
Definition at line 6944 of file interface.cc.
References C, blender::StringRefBase::is_empty(), uiBut::tip, uiBut::tip_arg, uiBut::tip_func, and UI_but_string_get_rna_tooltip().
Referenced by ui_tooltip_data_from_button_or_extra_icon().
| std::string UI_but_string_get_tooltip_label | ( | const uiBut & | but | ) |
Query the result of #uiBut::tip_label_func(). Meant to allow overriding the label to be displayed in the tool-tip.
Definition at line 6895 of file interface.cc.
References uiBut::tip_quick_func.
Referenced by ui_tooltip_data_from_button_or_extra_icon().
Recreate tool-tip (use to update dynamic tips)
Definition at line 8607 of file interface_handlers.cc.
References uiBut::active, C, data, wmTooltipState::region, bScreen::tool_tip, WM_tooltip_refresh(), and WM_window_get_active_screen().
Referenced by UI_block_update_from_old().
Removes tool-tip timer from active but (meaning tool-tip is disabled until it's re-enabled again).
Definition at line 8618 of file interface_handlers.cc.
References uiBut::active, C, data, WM_event_timer_remove(), and WM_tooltip_clear().
Referenced by button_activate_state(), blender::ed::outliner::outliner_operation_invoke(), ui_handle_button_event(), ui_handle_menu_event(), ui_popup_block_create(), and ui_region_handler().
| void UI_but_type_set_menu_from_pulldown | ( | uiBut * | but | ) |
Definition at line 6117 of file interface.cc.
References BLI_assert, uiBut::type, UI_BTYPE_MENU, UI_BTYPE_PULLDOWN, UI_but_drawflag_disable(), UI_but_drawflag_enable(), UI_BUT_TEXT_LEFT, and UI_BUT_TEXT_RIGHT.
Referenced by ui_item_menu(), uiblock_layer_pass_buttons(), uiTemplateNodeLink(), and uiTemplateTextureUser().
| int UI_but_unit_type_get | ( | const uiBut * | but | ) |
Definition at line 6191 of file interface.cc.
References RNA_property_subtype(), RNA_SUBTYPE_UNIT, uiBut::rnaprop, and uiBut::unit_type.
Referenced by ui_but_convert_to_unit_alt_name(), ui_but_hide_fraction(), ui_but_is_unit(), ui_but_is_unit_radians(), ui_get_but_scale_unit(), ui_get_but_step_unit(), ui_get_but_string_unit(), ui_number_from_string_units_with_but(), ui_numedit_apply_snapf(), and ui_tooltip_data_from_button_or_extra_icon().
| void UI_but_unit_type_set | ( | uiBut * | but, |
| int | unit_type ) |
Definition at line 6186 of file interface.cc.
References RNA_SUBTYPE_UNIT_VALUE, and uiBut::unit_type.
Referenced by graph_panel_key_properties(), ui_item_array(), v3d_editvertex_buts(), and v3d_object_dimension_buts().
| void UI_but_view_item_draw_size_set | ( | uiBut * | but, |
| const std::optional< int > | draw_width = std::nullopt, | ||
| const std::optional< int > | draw_height = std::nullopt ) |
Definition at line 6765 of file interface.cc.
References BLI_assert, uiButViewItem::draw_height, uiButViewItem::draw_width, uiBut::type, and UI_BTYPE_VIEW_ITEM.
Referenced by blender::ed::asset::shelf::AssetViewItem::build_grid_tile().
| void UI_butstore_clear | ( | uiBlock * | block | ) |
NULL all pointers, don't free since the owner needs to be able to inspect.
Definition at line 988 of file interface_utils.cc.
References uiBlock::butstore, and LISTBASE_FOREACH.
Referenced by UI_block_free().
| uiButStore * UI_butstore_create | ( | uiBlock * | block | ) |
Create a new button store, the caller must manage and run UI_butstore_free
Definition at line 902 of file interface_utils.cc.
References BLI_addtail(), uiButStore::block, uiBlock::butstore, and MEM_callocN().
Referenced by ui_but_add_search(), and ui_multibut_states_create().
| void UI_butstore_free | ( | uiBlock * | block, |
| uiButStore * | bs_handle ) |
Definition at line 912 of file interface_utils.cc.
References BLI_assert, BLI_findindex(), BLI_freelistN(), BLI_remlink(), uiButStore::block, uiBlock::butstore, uiButStore::items, and MEM_freeN().
Referenced by ui_multibut_free(), and ui_rna_collection_search_arg_free_fn().
Definition at line 938 of file interface_utils.cc.
References uiBlock::butstore, and LISTBASE_FOREACH.
Referenced by ui_but_free().
| bool UI_butstore_is_valid | ( | uiButStore * | bs_handle | ) |
Definition at line 933 of file interface_utils.cc.
References uiButStore::block.
| void UI_butstore_register | ( | uiButStore * | bs_handle, |
| uiBut ** | but_p ) |
Definition at line 951 of file interface_utils.cc.
References BLI_addtail(), BLI_assert, uiButStoreElem::but_p, uiButStore::items, and MEM_callocN().
Referenced by ui_but_add_search(), and ui_multibut_add().
Update the pointer for a registered button.
Definition at line 972 of file interface_utils.cc.
References uiBlock::butstore, and LISTBASE_FOREACH.
Referenced by ui_but_update_from_old_block().
| void UI_butstore_unregister | ( | uiButStore * | bs_handle, |
| uiBut ** | but_p ) |
Definition at line 960 of file interface_utils.cc.
References BLI_assert, BLI_remlink(), uiButStore::items, LISTBASE_FOREACH_MUTABLE, and MEM_freeN().
| void UI_butstore_update | ( | uiBlock * | block | ) |
Map freed buttons from the old block and update pointers.
Definition at line 998 of file interface_utils.cc.
References BLI_assert, BLI_movelisttolist(), uiBlock::butstore, ELEM, ListBase::first, LIKELY, LISTBASE_FOREACH, uiBlock::oldblock, and ui_but_find_new().
Referenced by UI_block_update_from_old().
| int UI_calc_float_precision | ( | int | prec, |
| double | value ) |
Returns the best "UI" precision for given floating value, so that e.g. 10.000001 rather gets drawn as '10'...
Definition at line 724 of file interface_utils.cc.
References BLI_assert, CLAMP, e, fabs(), i, pow, and UI_PRECISION_FLOAT_MAX.
Referenced by outputNumInput(), and ui_but_calc_float_precision().
Definition at line 9311 of file interface_handlers.cc.
References C, and wm_event_handler_ui_cancel_ex().
Referenced by blender::ui::bonedropper_invoke(), datadropper_invoke(), depthdropper_invoke(), driverdropper_invoke(), blender::ui::eyedropper_colorband_invoke(), and eyedropper_invoke().
Definition at line 9225 of file interface_handlers.cc.
References C, CTX_wm_region(), and ui_context_button_active().
Referenced by copy_python_command_button_exec(), copy_python_command_button_poll(), blender::ui::eyedropper_colorband_init(), blender::ui::eyedropper_colorband_poll(), blender::ed::outliner::outliner_operation_invoke(), UI_but_online_manual_id_from_active(), ui_button_press_invoke(), UI_context_active_but_get_tab_ID(), UI_context_active_but_prop_get_templateID(), and ui_popup_block_create().
Version of #UI_context_active_get() that uses the result of CTX_wm_region_popup() if set. Does not traverse into parent menus, which may be wanted in some cases.
Definition at line 9230 of file interface_handlers.cc.
References C, CTX_wm_region(), CTX_wm_region_popup(), and ui_context_button_active().
Referenced by button_string_clear_exec(), and UI_context_active_but_prop_handle().
Definition at line 1412 of file interface_template_id.cc.
References C, uiBut::custom_data, uiBut::type, UI_BTYPE_TAB, and UI_context_active_but_get().
Referenced by workspace_context_get().
| uiBut * UI_context_active_but_prop_get | ( | const bContext * | C, |
| PointerRNA * | r_ptr, | ||
| PropertyRNA ** | r_prop, | ||
| int * | r_index ) |
Version of UI_context_active_but_get that also returns RNA property info. Helper function for insert keyframe, reset to default, etc operators.
Definition at line 9272 of file interface_handlers.cc.
References C, CTX_wm_region(), CTX_wm_region_popup(), and UI_region_active_but_prop_get().
Referenced by achannel_setting_slider_nla_curve_cb(), add_driver_button_invoke(), add_driver_button_none(), add_driver_button_poll(), add_keyingset_button_exec(), assign_default_button_exec(), assign_default_button_poll(), blender::ui::bonedropper_init(), blender::ui::bonedropper_poll(), clear_key_button_exec(), copy_as_driver_button_exec(), copy_as_driver_button_poll(), copy_data_path_button_exec(), copy_data_path_button_poll(), copy_driver_button_exec(), copy_driver_to_selected_button(), copy_to_selected_button(), datadropper_init(), datadropper_poll(), delete_key_button_exec(), depthdropper_init(), depthdropper_poll(), depthdropper_test(), driver_mapping_type_itemf(), driverdropper_init(), drivers_editor_show_exec(), edit_driver_button_exec(), eyedropper_init(), insert_key_button_exec(), jump_to_target_button(), override_remove_button_exec(), override_remove_button_poll(), override_type_set_button_exec(), override_type_set_button_poll(), paste_driver_button_exec(), remove_driver_button_exec(), remove_keyingset_button_exec(), reset_default_button_exec(), reset_default_button_poll(), screen_ctx_property(), unset_property_button_exec(), and view_curve_in_graph_editor_exec().
| void UI_context_active_but_prop_get_filebrowser | ( | const bContext * | C, |
| PointerRNA * | r_ptr, | ||
| PropertyRNA ** | r_prop, | ||
| bool * | r_is_undo, | ||
| bool * | r_is_userdef ) |
Definition at line 1154 of file interface_layout.cc.
References C, CTX_wm_region(), CTX_wm_region_popup(), uiBut::flag, LISTBASE_FOREACH, PROP_STRING, RNA_property_type(), uiBut::rnapoin, uiBut::rnaprop, ARegion::runtime, UI_but_is_userdef(), UI_BUT_LAST_ACTIVE, and UI_BUT_UNDO.
Referenced by file_browse_invoke().
| void UI_context_active_but_prop_get_templateID | ( | const bContext * | C, |
| PointerRNA * | r_ptr, | ||
| PropertyRNA ** | r_prop ) |
For new/open operators.
This is for browsing and editing the ID-blocks used.
Definition at line 270 of file interface_template_id.cc.
References C, uiBut::func_argN, uiBut::funcN, TemplateID::prop, TemplateID::ptr, template_id_cb(), and UI_context_active_but_get().
Referenced by action_new_exec(), action_new_poll(), cachefile_init(), ED_actedit_animdata_from_context(), font_ui_template_init(), font_unlink_exec(), image_new_init(), image_new_invoke(), image_open_init(), image_open_invoke(), lib_id_fake_user_toggle_exec(), lib_id_unlink_exec(), new_material_exec(), blender::ed::space_node::new_node_tree_exec(), new_texture_exec(), new_world_exec(), blender::ed::object::object_unlink_data_exec(), open_init(), override_idtemplate_ids_get(), sound_open_init(), text_new_exec(), and text_open_init().
| void UI_context_active_but_prop_handle | ( | bContext * | C, |
| bool | handle_undo ) |
Definition at line 9282 of file interface_handlers.cc.
References uiBut::block, C, uiBut::func, uiBut::func_arg1, uiBut::func_arg2, uiBlock::handle_func, uiBlock::handle_func_arg, uiBut::retval, ui_apply_but_undo(), ui_but_update(), and UI_context_active_but_get_respect_popup().
Referenced by operator_button_property_finish(), and operator_button_property_finish_with_undo().
| wmOperator * UI_context_active_operator_get | ( | const bContext * | C | ) |
Definition at line 9316 of file interface_handlers.cc.
References C, CTX_wm_region(), CTX_wm_screen(), LISTBASE_FOREACH, bScreen::regionbase, and ARegion::runtime.
Referenced by screen_ctx_active_operator().
| bool UI_context_copy_to_selected_check | ( | PointerRNA * | ptr, |
| PointerRNA * | ptr_link, | ||
| PropertyRNA * | prop, | ||
| const char * | path, | ||
| bool | use_path_from_id, | ||
| PointerRNA * | r_ptr, | ||
| PropertyRNA ** | r_prop ) |
Definition at line 1425 of file interface_ops.cc.
References BLI_assert, PointerRNA::data, NodesModifierData::node_group, PointerRNA::owner_id, ptr, RNA_id_pointer_create(), RNA_path_resolve_property(), RNA_property_editable(), RNA_property_is_idprop(), RNA_property_type(), RNA_struct_is_a(), and PointerRNA::type.
Referenced by copy_driver_to_selected_button(), copy_to_selected_button(), and ui_selectcontext_begin().
| bool UI_context_copy_to_selected_list | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| blender::Vector< PointerRNA > * | r_lb, | ||
| bool * | r_use_path_from_id, | ||
| std::optional< std::string > * | r_path ) |
Definition at line 1091 of file interface_ops.cc.
References BKE_idtype_idcode_to_name(), BLI_assert, BLI_assert_msg, C, CTX_data_collection_get(), CTX_data_collection_remap_property(), CTX_data_pointer_get_type(), CTX_data_pointer_get_type_silent(), Object::data, PointerRNA::data, bArmature::edbo, GS, ID_AR, ID_IS_EDITABLE, ID_OB, ID_SCE, ID_TAG_DOIT, bNode::idname, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), mod, ID::name, new_lb, blender::bke::node_find_node(), NOT_RNA_NULL, OB_DATA_SUPPORT_ID, printf, ptr, blender::Vector< T, InlineBufferCapacity, Allocator >::remove_if(), RNA_id_pointer_create(), RNA_path_from_ID_to_property(), RNA_path_from_ptr_to_property_index(), RNA_path_from_struct_to_idproperty(), RNA_path_resolve_from_type_to_property(), RNA_path_resolve_property(), RNA_property_array_check(), RNA_property_array_length(), RNA_property_identifier(), RNA_property_is_idprop(), RNA_property_type(), RNA_PropertyGroup, RNA_struct_is_a(), RNA_struct_type_find_property(), rnapointer_pchan_to_bone(), STREQ, ID::tag, PointerRNA::type, ui_context_fcurve_modifiers_via_fcurve(), and ui_context_selected_bones_via_pose().
Referenced by copy_driver_to_selected_button(), copy_to_selected_button(), ui_selectcontext_begin(), and view_curve_in_graph_editor_exec().
| void UI_context_update_anim_flag | ( | const bContext * | C | ) |
Helper function for insert keyframe, reset to default, etc operators.
Definition at line 9357 of file interface_handlers.cc.
References uiBut::active, BKE_animsys_eval_context_construct(), BKE_scene_frame_get(), C, CTX_data_depsgraph_pointer(), CTX_data_main(), CTX_data_scene(), CTX_wm_region(), data, depsgraph, ED_region_tag_redraw(), LISTBASE_FOREACH, ARegion::runtime, ui_but_anim_decorate_update_from_flag(), ui_but_anim_flag(), UI_but_is_decorator, UI_BUT_LAST_ACTIVE, and ui_but_override_flag().
Referenced by add_driver_button_invoke(), add_driver_button_none(), clear_key_button_exec(), copy_driver_button_exec(), delete_key_button_exec(), driverdropper_sample(), insert_key_button_exec(), paste_driver_button_exec(), and remove_driver_button_exec().
| void ui_draw_dropshadow | ( | const rctf * | rct, |
| float | radius, | ||
| float | width, | ||
| float | aspect, | ||
| float | alpha ) |
Definition at line 2355 of file interface_draw.cc.
References uiWidgetBaseParameters::alpha_discard, batch, BLI_rctf_size_y(), GPU_batch_draw(), GPU_batch_program_set_builtin(), GPU_batch_uniform_1f, GPU_batch_uniform_4fv_array, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_SHADER_2D_WIDGET_SHADOW, max_ff(), min_ff(), uiWidgetBaseParameters::rad, uiWidgetBaseParameters::radi, uiWidgetBaseParameters::rect, uiWidgetBaseParameters::recti, uiWidgetBaseParameters::round_corners, roundboxtype, smoothminf(), U, ui_batch_roundbox_shadow_get(), UI_CNR_BOTTOM_LEFT, UI_CNR_BOTTOM_RIGHT, UI_CNR_TOP_LEFT, UI_CNR_TOP_RIGHT, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by blender::ed::space_node::draw_link_errors(), draw_suggestion_list(), blender::ed::space_node::node_draw_shadow(), and widget_softshadow().
| void UI_draw_icon_tri | ( | float | x, |
| float | y, | ||
| char | dir, | ||
| const float | color[4] ) |
Triangle 'icon' for panel header and other cases.
Definition at line 549 of file interface_widgets.cc.
References draw_anti_tria(), U, x, and y.
Referenced by draw_columnheader_columns(), and ui_draw_clip_tri().
| void UI_draw_roundbox_3fv_alpha | ( | const rctf * | rect, |
| bool | filled, | ||
| float | rad, | ||
| const float | col[3], | ||
| float | alpha ) |
Definition at line 126 of file interface_draw.cc.
References col, U, and UI_draw_roundbox_4fv_ex().
Referenced by acf_generic_root_backdrop(), acf_group_backdrop(), acf_nla_controls_backdrop(), and acf_summary_backdrop().
| void UI_draw_roundbox_3ub_alpha | ( | const rctf * | rect, |
| bool | filled, | ||
| float | rad, | ||
| const unsigned char | col[3], | ||
| unsigned char | alpha ) |
Definition at line 114 of file interface_draw.cc.
References col, U, and UI_draw_roundbox_4fv_ex().
Referenced by draw_backdrop(), draw_main_line(), draw_ticks(), slider_draw(), and ui_draw_but_UNITVEC().
| void UI_draw_roundbox_4fv | ( | const rctf * | rect, |
| bool | filled, | ||
| float | rad, | ||
| const float | col[4] ) |
Definition at line 145 of file interface_draw.cc.
References col, U, and UI_draw_roundbox_4fv_ex().
Referenced by acf_nlaaction_backdrop(), blender::ed::spreadsheet::draw_column_reorder_destination(), draw_keylist_block_gpencil(), draw_keylist_block_interpolation_line(), draw_keylist_block_moving_hold(), draw_keylist_block_standard(), blender::ed::space_node::draw_link_errors(), draw_scope_end(), blender::ed::space_node::frame_node_draw_background(), gizmo_axis_draw(), nla_draw_strip(), blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_hidden(), blender::ed::space_node::node_draw_link_end_marker(), blender::ed::space_node::node_draw_panels_background(), blender::ed::space_node::node_draw_preview(), blender::ed::space_node::node_draw_shadow(), panel_draw_aligned_backdrop(), panel_draw_highlight_border(), region_draw_status_text(), screen_draw_area_drag_tip(), screen_draw_dock_preview(), screen_draw_split_preview(), textview_draw_string(), ui_draw_but_HISTOGRAM(), ui_draw_but_HSV_v(), ui_draw_but_HSVCUBE(), ui_draw_but_TRACKPREVIEW(), ui_draw_but_VECTORSCOPE(), ui_draw_but_WAVEFORM(), ui_draw_button_sections_background(), ui_draw_layout_panels_backdrop(), UI_fontstyle_draw_simple_backdrop(), and UI_panel_category_draw_all().
| void UI_draw_roundbox_4fv_ex | ( | const rctf * | rect, |
| const float | inner1[4], | ||
| const float | inner2[4], | ||
| float | shade_dir, | ||
| const float | outline[4], | ||
| float | outline_width, | ||
| float | rad ) |
Definition at line 69 of file interface_draw.cc.
References uiWidgetBaseParameters::alpha_discard, batch, uiWidgetBaseParameters::color_inner1, uiWidgetBaseParameters::color_inner2, uiWidgetBaseParameters::color_outline, GPU_batch_draw(), GPU_batch_program_set_builtin(), GPU_batch_uniform_4fv_array, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_SHADER_2D_WIDGET_BASE, uiWidgetBaseParameters::rad, uiWidgetBaseParameters::radi, uiWidgetBaseParameters::rect, uiWidgetBaseParameters::recti, uiWidgetBaseParameters::round_corners, roundboxtype, uiWidgetBaseParameters::shade_dir, ui_batch_roundbox_widget_get(), UI_CNR_BOTTOM_LEFT, UI_CNR_BOTTOM_RIGHT, UI_CNR_TOP_LEFT, UI_CNR_TOP_RIGHT, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by draw_current_frame(), ED_region_cache_draw_curfra_label(), ED_screen_draw_edges(), gizmo_axis_draw(), blender::ed::space_node::node_draw_extra_info_panel_back(), screen_draw_area_closed(), screen_draw_dock_preview(), screen_draw_join_highlight(), screen_draw_move_highlight(), screen_draw_region_scale_highlight(), screen_draw_split_preview(), ui_draw_but_HSV_v(), ui_draw_but_HSVCUBE(), UI_draw_roundbox_3fv_alpha(), UI_draw_roundbox_3ub_alpha(), UI_draw_roundbox_4fv(), UI_draw_roundbox_aa(), and vicon_rgb_color_draw().
| void UI_draw_roundbox_aa | ( | const rctf * | rect, |
| bool | filled, | ||
| float | rad, | ||
| const float | color[4] ) |
Definition at line 133 of file interface_draw.cc.
References U, and UI_draw_roundbox_4fv_ex().
Referenced by draw_textscroll(), draw_tile_background(), blender::ed::space_node::frame_node_draw_outline(), blender::ed::outliner::outliner_draw_active_indicator(), region_draw_azone_tab_arrow(), and blender::ed::asset::screenshot_preview_draw().
| void UI_draw_roundbox_corner_set | ( | int | type | ) |
Definition at line 55 of file interface_draw.cc.
References roundboxtype.
Referenced by acf_generic_root_backdrop(), acf_group_backdrop(), acf_nla_controls_backdrop(), acf_nlaaction_backdrop(), acf_summary_backdrop(), draw_current_frame(), draw_keylist_block(), draw_keylist_block_gpencil(), blender::ed::space_node::draw_link_errors(), draw_scope_end(), draw_textscroll(), draw_tile_background(), ED_region_cache_draw_curfra_label(), ED_screen_draw_edges(), file_draw_list(), blender::ed::space_node::frame_node_draw_background(), gizmo_axis_draw(), nla_draw_strip(), blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_extra_info_panel_back(), blender::ed::space_node::node_draw_hidden(), blender::ed::space_node::node_draw_link_end_marker(), blender::ed::space_node::node_draw_panels_background(), blender::ed::space_node::node_draw_preview(), blender::ed::space_node::node_draw_shadow(), blender::ed::outliner::outliner_draw_active_indicator(), panel_draw_aligned_backdrop(), panel_draw_highlight_border(), region_draw_azone_tab_arrow(), region_draw_status_text(), screen_draw_area_closed(), screen_draw_area_drag_tip(), screen_draw_dock_preview(), screen_draw_join_highlight(), screen_draw_move_highlight(), screen_draw_region_scale_highlight(), screen_draw_split_preview(), textview_draw_string(), ui_draw_but_HISTOGRAM(), ui_draw_but_TRACKPREVIEW(), ui_draw_but_UNITVEC(), ui_draw_but_VECTORSCOPE(), ui_draw_but_WAVEFORM(), ui_draw_button_sections_alignment_separator(), ui_draw_button_sections_background(), ui_draw_layout_panels_backdrop(), UI_fontstyle_draw_simple_backdrop(), UI_panel_category_draw_all(), vicon_rgb_color_draw(), and widget_softshadow().
| void UI_draw_safe_areas | ( | uint | pos, |
| const rctf * | rect, | ||
| const float | title_aspect[2], | ||
| const float | action_aspect[2] ) |
Draw title and text safe areas.
| pos | is a #PRIM_FLOAT, 2, GPU_FETCH_FLOAT vertex attribute. |
| rect | The offsets for the view, not the zones. |
Definition at line 389 of file interface_draw.cc.
References ARRAY_SIZE, i, imm_draw_box_wire_2d(), pos, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by drawviewborder(), and blender::ed::vse::sequencer_draw_borders_overlay().
| void UI_draw_text_underline | ( | int | pos_x, |
| int | pos_y, | ||
| int | len, | ||
| int | height, | ||
| const float | color[4] ) |
Definition at line 218 of file interface_draw.cc.
References GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBindBuiltinProgram(), immRectf(), immUnbindProgram(), immUniformColor4fv(), immVertexFormat(), len, pos, and U.
| void UI_draw_widget_scroll | ( | uiWidgetColors * | wcol, |
| const rcti * | rect, | ||
| const rcti * | slider, | ||
| int | state ) |
Function in use for buttons and for view2d sliders.
Definition at line 3686 of file interface_widgets.cc.
References BLI_rcti_size_x(), BLI_rcti_size_y(), copy_v4_v4_uchar(), uiWidgetBase::draw_emboss, uiWidgetColors::inner, uiWidgetColors::item, round_box_edges(), uiWidgetColors::roundness, uiWidgetBaseParameters::shade_dir, uiWidgetColors::shadedown, uiWidgetColors::shadetop, shape_preset_init_scroll_circle(), srgb_to_grayscale_byte(), state, uiWidgetBase::tria1, uiWidgetBase::tria2, U, UI_CNR_ALL, UI_SCROLL_ARROWS, UI_SCROLL_PRESSED, uiWidgetBase::uniform_params, widget_init(), widgetbase_draw(), rcti::xmax, and rcti::xmin.
Referenced by draw_textscroll(), UI_view2d_scrollers_draw(), and widget_scroll().
Definition at line 2391 of file interface_ops.cc.
References uiDragColorHandle::color, uiDragColorHandle::gamma_corrected, uiDragColorHandle::has_alpha, wmDrag::poin, wmDropBox::ptr, RNA_boolean_set(), and RNA_float_set_array().
Referenced by ED_keymap_screen(), and blender::ed::space_node::node_dropboxes().
Definition at line 2369 of file interface_ops.cc.
References C, CTX_wm_region(), CTX_wm_space_image(), SpaceImage::image, SpaceImage::mode, ARegion::regiontype, RGN_TYPE_WINDOW, SI_MODE_PAINT, wmDrag::type, UI_but_active_drop_color(), and WM_DRAG_COLOR.
Referenced by ED_keymap_screen().
| void UI_editsource_active_but_test | ( | uiBut * | but | ) |
Referenced by ui_def_but().
Remove the editsource data for old_but and reinsert it for new_but. Use when the button was reallocated, e.g. to have a new type (ui_but_change_type()).
References C.
Referenced by ui_but_change_type().
| bool UI_editsource_enable_check | ( | ) |
Referenced by ui_but_change_type(), and ui_def_but().
| void UI_exit | ( | ) |
Definition at line 7052 of file interface.cc.
References ui_but_clipboard_free(), and ui_resources_free().
Referenced by WM_exit_ex().
| void UI_fontstyle_draw | ( | const uiFontStyle * | fs, |
| const rcti * | rect, | ||
| const char * | str, | ||
| size_t | str_len, | ||
| const uchar | col[4], | ||
| const uiFontStyleDraw_Params * | fs_params ) |
Definition at line 197 of file interface_style.cc.
References col, str, and UI_fontstyle_draw_ex().
Referenced by draw_marker_name(), file_draw_string(), icon_draw_size(), panel_draw_aligned_widgets(), ui_draw_menu_item(), ui_draw_preview_item_stateless(), ui_tooltip_region_draw_cb(), and widget_draw_text().
| void UI_fontstyle_draw_ex | ( | const uiFontStyle * | fs, |
| const rcti * | rect, | ||
| const char * | str, | ||
| size_t | str_len, | ||
| const uchar | col[4], | ||
| const uiFontStyleDraw_Params * | fs_params, | ||
| int * | r_xofs, | ||
| int * | r_yofs, | ||
| ResultBLF * | r_info ) |
Definition at line 126 of file interface_style.cc.
References uiFontStyleDraw_Params::align, BLF_ascender(), BLF_BOLD, BLF_CLIPPING, BLF_clipping(), BLF_color4ubv(), BLF_descender(), BLF_disable(), BLF_draw(), BLF_enable(), BLF_height_max(), BLF_ITALIC, BLF_position(), BLF_SHADOW, BLF_shadow(), BLF_shadow_offset(), BLF_width(), BLF_WORD_WRAP, BLI_rcti_size_x(), BLI_rcti_size_y(), uiFontStyle::bold, ceil, col, floor, uiFontStyle::italic, uiFontStyle::shadow, uiFontStyle::shadowalpha, uiFontStyle::shadowcolor, uiFontStyle::shadx, uiFontStyle::shady, str, UI_fontstyle_set(), UI_STYLE_TEXT_CENTER, UI_STYLE_TEXT_RIGHT, uiFontStyle::uifont_id, uiFontStyleDraw_Params::word_wrap, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by file_draw_string_multiline(), ui_draw_menu_item(), UI_fontstyle_draw(), and widget_draw_text().
| void UI_fontstyle_draw_multiline_clipped | ( | const uiFontStyle * | fs, |
| const rcti * | rect, | ||
| const char * | str, | ||
| const uchar | col[4], | ||
| eFontStyle_Align | align ) |
Draws text with wrapping and shortening using "..." so that it fits into the given rectangle.
Definition at line 298 of file interface_style.cc.
References col, str, and UI_fontstyle_draw_multiline_clipped_ex().
Referenced by file_draw_string_mulitline_clipped().
| void UI_fontstyle_draw_multiline_clipped_ex | ( | const uiFontStyle * | fs, |
| const rcti * | rect, | ||
| const char * | str, | ||
| const uchar | col[4], | ||
| eFontStyle_Align | align, | ||
| int * | r_xofs, | ||
| int * | r_yofs, | ||
| ResultBLF * | r_info ) |
Definition at line 207 of file interface_style.cc.
References BLF_ascender(), BLF_BOLD, BLF_CLIPPING, BLF_clipping(), BLF_color4ubv(), BLF_descender(), BLF_disable(), BLF_draw(), BLF_enable(), BLF_height_max(), BLF_ITALIC, BLF_position(), BLF_SHADOW, BLF_shadow(), BLF_shadow_offset(), BLF_width(), BLI_assert, BLI_rcti_size_x(), BLI_rcti_size_y(), uiFontStyle::bold, col, floor, uiFontStyle::italic, ResultBLF::lines, uiFontStyle::shadow, uiFontStyle::shadowalpha, uiFontStyle::shadowcolor, uiFontStyle::shadx, uiFontStyle::shady, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), str, UI_fontstyle_set(), UI_MAX_DRAW_STR, UI_STYLE_TEXT_CENTER, UI_STYLE_TEXT_RIGHT, UI_text_clip_multiline_middle(), uiFontStyle::uifont_id, ResultBLF::width, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by UI_fontstyle_draw_multiline_clipped().
| void UI_fontstyle_draw_rotated | ( | const uiFontStyle * | fs, |
| const rcti * | rect, | ||
| const char * | str, | ||
| const uchar | col[4] ) |
Drawn same as UI_fontstyle_draw, but at 90 degree angle.
Definition at line 307 of file interface_style.cc.
References angle(), BLF_ascender(), BLF_CLIPPING, BLF_clipping(), BLF_color4ubv(), BLF_descender(), BLF_disable(), BLF_draw(), BLF_DRAW_STR_DUMMY_MAX, BLF_enable(), BLF_position(), BLF_ROTATION, BLF_rotation(), BLF_SHADOW, BLF_shadow(), BLF_shadow_offset(), BLF_width(), BLI_rcti_size_x(), BLI_rcti_size_y(), ceil, col, M_PI_2, uiFontStyle::shadow, uiFontStyle::shadowalpha, uiFontStyle::shadowcolor, uiFontStyle::shadx, uiFontStyle::shady, str, UI_fontstyle_set(), uiFontStyle::uifont_id, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
| void UI_fontstyle_draw_simple | ( | const uiFontStyle * | fs, |
| float | x, | ||
| float | y, | ||
| const char * | str, | ||
| const uchar | col[4] ) |
Similar to UI_fontstyle_draw but ignore alignment, shadow & no clipping rect.
For drawing on-screen labels.
Definition at line 366 of file interface_style.cc.
References BLF_color4ubv(), BLF_draw(), BLF_DRAW_STR_DUMMY_MAX, BLF_position(), col, str, UI_fontstyle_set(), uiFontStyle::uifont_id, x, and y.
Referenced by ANIM_channel_draw(), draw_current_frame(), file_draw_list(), blender::ed::outliner::outliner_draw_tree_element(), and wm_drag_draw_item_name().
| void UI_fontstyle_draw_simple_backdrop | ( | const uiFontStyle * | fs, |
| float | x, | ||
| float | y, | ||
| blender::StringRef | str, | ||
| const float | col_fg[4], | ||
| const float | col_bg[4] ) |
Same as UI_fontstyle_draw but draw a colored backdrop.
Definition at line 375 of file interface_style.cc.
References BLF_color4fv(), BLF_descender(), BLF_draw(), BLF_height_max(), BLF_position(), BLF_width(), str, UI_CNR_ALL, UI_draw_roundbox_4fv(), UI_draw_roundbox_corner_set(), UI_fontstyle_set(), uiFontStyle::uifont_id, x, rctf::xmax, rctf::xmin, y, rctf::ymax, and rctf::ymin.
Referenced by eyedropper_draw_cursor_text_region(), wm_drop_operator_draw(), and wm_drop_redalert_draw().
| int UI_fontstyle_height_max | ( | const uiFontStyle * | fs | ) |
Definition at line 461 of file interface_style.cc.
References BLF_height_max(), UI_fontstyle_set(), and uiFontStyle::uifont_id.
Referenced by file_font_pointsize(), and blender::ed::vse::text_size_get().
| void UI_fontstyle_set | ( | const uiFontStyle * | fs | ) |
Definition at line 602 of file interface_style.cc.
References fontstyle_set_ex(), and UI_SCALE_FAC.
Referenced by block_create_autorun_warning(), block_create_opengl_usage_warning(), file_string_width(), ui_block_bounds_calc_text(), ui_draw_menu_item(), UI_fontstyle_draw_ex(), UI_fontstyle_draw_multiline_clipped_ex(), UI_fontstyle_draw_rotated(), UI_fontstyle_draw_simple(), UI_fontstyle_draw_simple_backdrop(), UI_fontstyle_height_max(), UI_fontstyle_string_width(), UI_panel_category_draw_all(), ui_searchbox_create_generic_ex(), ui_text_clip_cursor(), UI_text_clip_middle_ex(), ui_text_clip_right_label(), ui_textedit_set_cursor_pos(), ui_tooltip_create_with_data(), ui_tooltip_region_draw_cb(), uiTemplateReportsBanner(), uiTemplateStatusInfo(), view3d_draw_region_info(), widget_draw_text(), and wm_block_dialog_create().
| int UI_fontstyle_string_width | ( | const uiFontStyle * | fs, |
| const char * | str ) |
References ATTR_WARN_UNUSED_RESULT, str, x, and y.
Referenced by blender::ed::asset::shelf::add_tab_button(), draw_current_frame(), file_draw_list(), blender::ed::outliner::outliner_draw_tree_element(), template_ID(), template_id_def_new_but(), template_ID_tabs(), template_search_textbut_width(), ui_pie_menu_title_width(), and uiTemplateRunningJobs().
| int int UI_fontstyle_string_width_with_block_aspect | ( | const uiFontStyle * | fs, |
| blender::StringRef | str, | ||
| float | aspect ) |
Return the width of str with the spacing & kerning of fs with aspect (representing uiBlock.aspect) applied.
When calculating text width, the UI layout logic calculate widths without scale, only applying scale when drawing. This causes problems for fonts since kerning at smaller sizes often makes them wider than a scaled down version of the larger text. Resolve this by calculating the text at the on-screen size, returning the result scaled back to 1:1. See #92361.
Definition at line 451 of file interface_style.cc.
References BLF_width(), fontstyle_set_ex(), str, UI_SCALE_FAC, and uiFontStyle::uifont_id.
Referenced by ui_text_icon_width_ex().
| int UI_icon_colorid_from_report_type | ( | int | type | ) |
Definition at line 676 of file interface_utils.cc.
References RPT_DEBUG_ALL, RPT_ERROR_ALL, RPT_INFO_ALL, RPT_OPERATOR, RPT_PROPERTY, RPT_WARNING_ALL, TH_ERROR, TH_INFO, TH_INFO_DEBUG, TH_INFO_OPERATOR, TH_INFO_PROPERTY, and TH_WARNING.
Referenced by report_line_data(), and uiTemplateReportsBanner().
| int UI_icon_from_event_type | ( | short | event_type, |
| short | event_value ) |
Definition at line 667 of file interface_icons.cc.
References DrawInfo::data, DrawInfo::event_type, EVT_LEFTALTKEY, EVT_LEFTCTRLKEY, EVT_LEFTSHIFTKEY, EVT_RIGHTALTKEY, EVT_RIGHTCTRLKEY, EVT_RIGHTSHIFTKEY, g_di_event_list, DrawInfo::icon, DrawInfo::input, KM_CLICK_DRAG, KM_DBL_CLICK, LEFTMOUSE, MIDDLEMOUSE, DrawInfo::next, and RIGHTMOUSE.
Referenced by WorkspaceStatus::opmodal(), and UI_icon_from_keymap_item().
| int UI_icon_from_id | ( | const ID * | id | ) |
Definition at line 630 of file interface_utils.cc.
References Object::data, GS, ID_OB, ID::name, OB_EMPTY, ptr, RNA_id_pointer_create(), RNA_struct_ui_icon(), Object::type, and UI_icon_from_id().
Referenced by object_mouse_select_menu(), and UI_icon_from_id().
| int UI_icon_from_keymap_item | ( | const wmKeyMapItem * | kmi, |
| int | r_icon_mod[KM_MOD_NUM] ) |
Definition at line 702 of file interface_icons.cc.
References wmKeyMapItem::alt, wmKeyMapItem::ctrl, ELEM, wmKeyMapItem::hyper, i, KM_ANY, KM_MOD_HELD, KM_MOD_NUM, KM_NOTHING, wmKeyMapItem::oskey, wmKeyMapItem::shift, wmKeyMapItem::type, UI_icon_from_event_type(), and wmKeyMapItem::val.
Referenced by uiTemplateEventFromKeymapItem(), and uiTemplateStatusBarModalItem().
| int UI_icon_from_report_type | ( | int | type | ) |
See: BKE_report_type_str
Definition at line 653 of file interface_utils.cc.
References RPT_DEBUG_ALL, RPT_ERROR_ALL, RPT_INFO_ALL, RPT_OPERATOR, RPT_PROPERTY, and RPT_WARNING_ALL.
Referenced by report_line_data(), UI_popup_menu_reports(), and uiTemplateReportsBanner().
| void UI_init | ( | ) |
Definition at line 7022 of file interface.cc.
References ui_resources_init().
Referenced by WM_init().
| void UI_init_userdef | ( | ) |
Definition at line 7027 of file interface.cc.
References uiStyleInit().
Referenced by wm_init_userdef().
| void UI_interface_tag_script_reload | ( | ) |
Definition at line 7058 of file interface.cc.
References ui_interface_tag_script_reload_queries().
Referenced by WM_script_tag_reload().
| std::optional< std::string > UI_key_event_operator_string | ( | const bContext * | C, |
| blender::StringRefNull | opname, | ||
| IDProperty * | properties, | ||
| bool | is_strict ) |
A version of WM_key_event_operator_string that's limited to UI elements.
This supports showing shortcuts in context-menus (for example), for actions that can also be activated using shortcuts while the cursor is over the button. Without this those shortcuts aren't discoverable for users.
Definition at line 1067 of file interface_utils.cc.
References uiBut::block, uiBlock::buttons, C, CTX_wm_region(), uiListDyn::custom_activate_opptr, uiListDyn::custom_activate_optype, uiBut::custom_data, uiListDyn::custom_drag_opptr, uiListDyn::custom_drag_optype, uiList::dyn_data, ED_KEYMAP_UI, i, KM_CLICK, KM_CLICK_DRAG, KM_NOTHING, LEFTMOUSE, uiBut::rect, ARegion::runtime, Vector< T, InlineBufferCapacity, Allocator >::size(), uiBut::type, UI_BTYPE_LISTBOX, UI_BTYPE_PREVIEW_TILE, ui_but_contains_rect(), ui_key_event_property_match(), UI_region_active_but_get(), and WM_keymap_item_raw_to_string().
Referenced by WM_key_event_operator_string().
| PointerRNA * UI_list_custom_activate_operator_set | ( | uiList * | ui_list, |
| blender::StringRefNull | opname, | ||
| bool | create_properties ) |
Definition at line 1299 of file interface_template_list.cc.
References blender::StringRefNull::c_str(), uiListDyn::custom_activate_opptr, uiListDyn::custom_activate_optype, PointerRNA::data, uiList::dyn_data, WM_operator_properties_alloc(), and WM_operatortype_find().
Referenced by uiTemplateAssetView().
| PointerRNA * UI_list_custom_drag_operator_set | ( | uiList * | ui_list, |
| blender::StringRefNull | opname, | ||
| bool | create_properties ) |
Definition at line 1319 of file interface_template_list.cc.
References blender::StringRefNull::c_str(), uiListDyn::custom_drag_opptr, uiListDyn::custom_drag_optype, PointerRNA::data, uiList::dyn_data, WM_operator_properties_alloc(), and WM_operatortype_find().
Referenced by uiTemplateAssetView().
Definition at line 444 of file interface_query.cc.
References uiBut::custom_data, and ui_list_find_mouse_over().
Referenced by screen_ctx_ui_list(), ui_list_focused_poll(), and ui_list_start_filter_invoke().
| bool UI_list_item_index_is_filtered_visible | ( | const struct uiList * | ui_list, |
| int | item_idx ) |
Referenced by ui_handle_list_event().
| void UI_list_panel_unique_str | ( | Panel * | panel, |
| char * | r_name ) |
Find a unique key to append to the PanelType.idname for the lookup to the panel's uiBlock. Needed for instanced panels, where there can be multiple with the same type and identifier.
Definition at line 281 of file interface_panel.cc.
References BLI_snprintf(), INSTANCED_PANEL_UNIQUE_STR_SIZE, and Panel::sortorder.
Referenced by ED_region_panels_layout_ex().
| Panel * UI_panel_add_instanced | ( | const bContext * | C, |
| ARegion * | region, | ||
| ListBase * | panels, | ||
| const char * | panel_idname, | ||
| PointerRNA * | custom_data ) |
Called in situations where panels need to be added dynamically rather than having only one panel corresponding to each PanelType.
Definition at line 257 of file interface_panel.cc.
References BLI_findstring(), C, offsetof, panel_add_instanced(), panel_set_expansion_from_list_data(), ARegionType::paneltypes, printf, and ARegion::runtime.
Referenced by ANIM_fmodifier_panels(), blender::ed::spreadsheet::spreadsheet_row_filters_layout(), uiTemplateConstraints(), uiTemplateModifiers(), and uiTemplateShaderFx().
| Panel * UI_panel_begin | ( | ARegion * | region, |
| ListBase * | lb, | ||
| uiBlock * | block, | ||
| PanelType * | pt, | ||
| Panel * | panel, | ||
| bool * | r_open ) |
Definition at line 689 of file interface_panel.cc.
References ARegion::alignment, BKE_panel_new(), BLI_addtail(), BLI_insertlinkafter(), BLI_remlink(), Panel_Runtime::block, Panel::blocksizex, Panel::blocksizey, CTX_IFACE_, ListBase::first, Panel::flag, PanelType::flag, PanelType::label, LISTBASE_FOREACH, Panel::next, Panel::ofsx, Panel::ofsy, uiBlock::panel, PANEL_ACTIVE, PANEL_LAST_ADDED, PANEL_NEW_ADDED, PANEL_TYPE_DEFAULT_CLOSED, PANEL_WAS_CLOSED, PNL_CLOSED, RGN_ALIGN_FLOAT, Panel::runtime, Panel::runtime_flag, Panel::sizex, Panel::sizey, Panel::sortorder, PanelType::translation_context, Panel::type, UI_BLOCK_THEME_STYLE_POPUP, UI_block_theme_style_set(), UI_panel_drawname_set(), and UI_panel_is_closed().
Referenced by ed_panel_draw(), and panel_property_search().
| bool UI_panel_can_be_pinned | ( | const Panel * | panel | ) |
Definition at line 2666 of file interface_panel.cc.
References PanelType::flag, PANEL_TYPE_INSTANCED, PanelType::parent, and Panel::type.
Referenced by ui_handle_panel_header(), and ui_popup_context_menu_for_panel().
| PanelCategoryStack * UI_panel_category_active_find | ( | ARegion * | region, |
| const char * | idname ) |
Definition at line 2325 of file interface_panel.cc.
References BLI_findstring(), offsetof, and ARegion::panels_category_active.
Referenced by image_buttons_region_draw(), ui_panel_category_active_set(), and UI_panel_category_active_set_default().
| const char * UI_panel_category_active_get | ( | ARegion * | region, |
| bool | set_fallback ) |
Definition at line 2394 of file interface_panel.cc.
References PanelCategoryDyn::idname, LISTBASE_FOREACH, ARegion::panels_category_active, ARegion::runtime, ui_panel_category_active_set(), and UI_panel_category_find().
Referenced by ED_area_do_mgs_subscribe_for_tool_ui(), panel_type_context_poll(), panels_collapse_all(), region_panels_collect_categories(), text_text_search_exec(), and ui_handle_panel_category_cycling().
| void UI_panel_category_active_set | ( | ARegion * | region, |
| const char * | idname ) |
Definition at line 2371 of file interface_panel.cc.
References ui_panel_category_active_set().
Referenced by ED_drivers_editor_init(), text_text_search_exec(), ui_handle_panel_category_cycling(), and ui_handler_panel_region().
| void UI_panel_category_active_set_default | ( | ARegion * | region, |
| const char * | idname ) |
Definition at line 2387 of file interface_panel.cc.
References UI_panel_category_active_find(), and ui_panel_category_active_set().
Referenced by blender::ed::vse::sequencer_buttons_region_init(), and blender::ed::spreadsheet::spreadsheet_sidebar_init().
| void UI_panel_category_add | ( | ARegion * | region, |
| const char * | name ) |
Definition at line 2425 of file interface_panel.cc.
References BLI_addtail(), PanelCategoryDyn::idname, MEM_callocN(), ARegion::runtime, and STRNCPY().
Referenced by region_panels_collect_categories().
| void UI_panel_category_clear_all | ( | ARegion * | region | ) |
Definition at line 2435 of file interface_panel.cc.
References BLI_freelistN(), and ARegion::runtime.
Referenced by region_panels_collect_categories().
| void UI_panel_category_draw_all | ( | ARegion * | region, |
| const char * | category_id_active ) |
Draw vertical tabs on the left side of the region, one tab per category.
Definition at line 1351 of file interface_panel.cc.
References ARegion::alignment, BLF_color3ubv(), BLF_disable(), BLF_draw(), BLF_DRAW_STR_DUMMY_MAX, BLF_enable(), BLF_position(), BLF_ROTATION, BLF_rotation(), BLF_size(), BLF_width(), BLI_assert, BLI_listbase_is_empty(), BLI_rcti_size_y(), ARegion::category_scroll, clamp_i(), GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_line_smooth(), GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), IFACE_, immBindBuiltinProgram(), immRectf(), immUnbindProgram(), immUniformColor3fvAlpha(), immUniformColor3ubv(), immUniformColor4fv(), immUniformColor4ubv(), immVertexFormat(), is_left(), LISTBASE_FOREACH, M_PI_2, View2D::mask, max_ii(), ARegion::overlap, uiFontStyle::points, pos, ARegion::regiontype, RGN_ALIGN_ENUM_FROM_MASK, RGN_ALIGN_RIGHT, RGN_TYPE_HAS_CATEGORY_MASK, round_fl_to_int(), roundboxtype, uiWidgetColors::roundness, ARegion::runtime, STREQ, TABS_PADDING_BETWEEN_FACTOR, TABS_PADDING_TEXT_FACTOR, TH_BACK, TH_TAB_ACTIVE, TH_TAB_BACK, TH_TAB_INACTIVE, TH_TAB_OUTLINE, TH_TEXT, TH_TEXT_HI, bTheme::tui, U, UI_CNR_BOTTOM_LEFT, UI_CNR_BOTTOM_RIGHT, UI_CNR_TOP_LEFT, UI_CNR_TOP_RIGHT, UI_draw_roundbox_4fv(), UI_draw_roundbox_corner_set(), ui_fontscale(), UI_fontstyle_set(), UI_GetTheme(), UI_GetThemeColor3ubv(), UI_GetThemeColor4fv(), UI_GetThemeColor4ubv(), UI_panel_category_is_visible(), UI_PANEL_CATEGORY_MARGIN_WIDTH, UI_SCALE_FAC, UI_style_get(), uiFontStyle::uifont_id, ARegion::v2d, ThemeUI::wcol_tab, uiStyle::widget, rctf::xmax, rcti::xmax, rctf::xmin, rcti::xmin, rctf::ymax, rcti::ymax, rctf::ymin, and rcti::ymin.
Referenced by ED_region_panels_draw().
| PanelCategoryDyn * UI_panel_category_find | ( | const ARegion * | region, |
| const char * | idname ) |
Definition at line 2313 of file interface_panel.cc.
References BLI_findstring(), offsetof, and ARegion::runtime.
Referenced by region_panels_collect_categories(), ui_handle_panel_category_cycling(), and UI_panel_category_active_get().
| void UI_panel_category_index_active_set | ( | ARegion * | region, |
| const int | index ) |
| index | index of item in #ARegion.panels_category list. |
Definition at line 2376 of file interface_panel.cc.
References BLI_findlink(), PanelCategoryDyn::idname, ARegion::runtime, and ui_panel_category_active_set().
| int UI_panel_category_index_find | ( | ARegion * | region, |
| const char * | idname ) |
Definition at line 2319 of file interface_panel.cc.
References BLI_findstringindex(), offsetof, and ARegion::runtime.
| bool UI_panel_category_is_visible | ( | const ARegion * | region | ) |
Definition at line 2306 of file interface_panel.cc.
References ARegion::runtime.
Referenced by ED_region_panel_category_gutter_calc_rect(), ED_region_panels_draw(), panel_region_offset_x_get(), panels_collapse_all(), region_panels_collect_categories(), reorder_instanced_panel_list(), UI_block_draw(), ui_handle_panel_header(), ui_handler_panel_region(), UI_panel_category_draw_all(), and ui_popup_context_menu_for_panel().
| void UI_panel_context_pointer_set | ( | Panel * | panel, |
| const char * | name, | ||
| PointerRNA * | ptr ) |
Set a context for this entire panel and its current layout. This should be used whenever panel callbacks that are called outside of regular drawing might require context. Currently it affects the PanelType.reorder callback only.
Definition at line 2620 of file interface_panel.cc.
References Panel_Runtime::context, Panel::layout, ptr, Panel::runtime, uiLayoutGetContextStore(), and uiLayoutSetContextPointer().
Referenced by draw_constraint_header(), modifier_panel_get_property_pointers(), modifier_panel_header(), and shaderfx_panel_get_property_pointers().
| PointerRNA * UI_panel_custom_data_get | ( | const Panel * | panel | ) |
Definition at line 2638 of file interface_panel.cc.
References Panel_Runtime::custom_data_ptr, and Panel::runtime.
Referenced by constraint_reorder(), blender::ed::spreadsheet::filter_reorder(), fmodifier_get_pointers(), get_constraint_expand_flag(), blender::ed::spreadsheet::get_filter_expand_flag(), get_modifier_expand_flag(), get_shaderfx_expand_flag(), modifier_panel_get_property_pointers(), modifier_panel_header(), modifier_reorder(), panel_custom_data_active_get(), panel_custom_data_active_set(), panel_custom_pin_to_last_get(), panel_custom_pin_to_last_set(), set_constraint_expand_flag(), blender::ed::spreadsheet::set_filter_expand_flag(), set_modifier_expand_flag(), set_shaderfx_expand_flag(), shaderfx_panel_get_property_pointers(), shaderfx_reorder(), blender::ed::spreadsheet::spreadsheet_filter_panel_draw(), blender::ed::spreadsheet::spreadsheet_filter_panel_draw_header(), and UI_region_panel_custom_data_under_cursor().
| void UI_panel_custom_data_set | ( | Panel * | panel, |
| PointerRNA * | custom_data ) |
Definition at line 2626 of file interface_panel.cc.
References BLI_assert, Panel_Runtime::custom_data_ptr, Panel::runtime, Panel::type, and ui_panel_custom_data_set_recursive().
Referenced by ANIM_fmodifier_panels(), blender::ed::spreadsheet::spreadsheet_row_filters_layout(), uiTemplateConstraints(), uiTemplateModifiers(), and uiTemplateShaderFx().
| void UI_panel_drawname_set | ( | Panel * | panel, |
| blender::StringRef | name ) |
Set the name that should be drawn in the UI. Should be a translated string.
Definition at line 857 of file interface_panel.cc.
References BLI_strdupn(), blender::StringRefBase::data(), Panel::drawname, MEM_SAFE_FREE, and blender::StringRefBase::size().
Referenced by file_panel_operator_header(), hud_panel_operator_redo_draw_header(), and UI_panel_begin().
| void UI_panel_end | ( | Panel * | panel, |
| int | width, | ||
| int | height ) |
Definition at line 849 of file interface_panel.cc.
References Panel::blocksizex, and Panel::blocksizey.
Referenced by ed_panel_draw().
Definition at line 677 of file interface_panel.cc.
References PanelType::idname, LISTBASE_FOREACH, and STREQLEN.
Referenced by ed_panel_draw(), ED_region_panels_layout_ex(), and panel_property_search().
| void UI_panel_header_buttons_begin | ( | Panel * | panel | ) |
Create the panel header button group, used to mark which buttons are part of panel headers for the panel search process that happens later. This Should be called before adding buttons for the panel's header layout.
Definition at line 759 of file interface_panel.cc.
References Panel_Runtime::block, Panel::runtime, ui_block_new_button_group(), UI_BUTTON_GROUP_LOCK, and UI_BUTTON_GROUP_PANEL_HEADER.
Referenced by ed_panel_draw().
| void UI_panel_header_buttons_end | ( | Panel * | panel | ) |
Finish the button group for the panel header to avoid putting panel body buttons in it.
Definition at line 766 of file interface_panel.cc.
References BLI_assert, Panel_Runtime::block, uiBlock::button_groups, uiButtonGroup::buttons, uiButtonGroup::flag, Vector< T, InlineBufferCapacity, Allocator >::is_empty(), Vector< T, InlineBufferCapacity, Allocator >::last(), Panel::runtime, Vector< T, InlineBufferCapacity, Allocator >::size(), ui_block_new_button_group(), UI_BUTTON_GROUP_LOCK, and UI_BUTTON_GROUP_PANEL_HEADER.
Referenced by ed_panel_draw().
| bool UI_panel_is_active | ( | const Panel * | panel | ) |
Definition at line 1003 of file interface_panel.cc.
References PANEL_ACTIVE, and Panel::runtime_flag.
Referenced by buttons_main_region_property_search(), ED_area_do_mgs_subscribe_for_tool_ui(), panel_custom_data_active_get(), and panel_custom_data_active_set().
| bool UI_panel_is_closed | ( | const Panel * | panel | ) |
Get the panel's expansion state, taking into account expansion set from property search if it applies.
Definition at line 989 of file interface_panel.cc.
References Panel::flag, PanelType::flag, PANEL_TYPE_NO_HEADER, PANEL_USE_CLOSED_FROM_SEARCH, PNL_CLOSED, Panel::runtime_flag, Panel::type, and UI_panel_matches_search_filter().
Referenced by ED_region_panels_layout_ex(), get_panel_real_ofsy(), get_panel_real_size_y(), panel_active_animation_changed(), panel_calculate_size_recursive(), panel_draw_aligned_backdrop(), panel_draw_aligned_widgets(), panel_draw_highlight_border(), panel_remove_invisible_layouts_recursive(), panel_set_expand_from_list_data_recursive(), panels_layout_begin_clear_flags(), ui_handle_panel_header(), ui_handler_panel_region(), UI_panel_begin(), ui_panel_mouse_state_get(), and uiAlignPanelStep().
| bool UI_panel_is_dragging | ( | const Panel * | panel | ) |
Definition at line 1643 of file interface_panel.cc.
References PANEL_IS_DRAG_DROP, and Panel::runtime_flag.
Referenced by ED_region_panels_layout_ex(), ui_do_animate(), and UI_panels_draw().
| void UI_panel_label_offset | ( | const uiBlock * | block, |
| int * | r_x, | ||
| int * | r_y ) |
For button layout next to label.
Definition at line 1037 of file interface_panel.cc.
References uiBlock::panel, PanelType::parent, Panel::type, UI_UNIT_X, and UI_UNIT_Y.
Referenced by ed_panel_draw().
| bool UI_panel_list_matches_data | ( | ARegion * | region, |
| ListBase * | data, | ||
| uiListPanelIDFromDataFunc | panel_idname_func ) |
Check if the instanced panels in the region's panels correspond to the list of data the panels represent. Returns false if the panels have been reordered or if the types from the list data don't match in any way.
| data | The list of data to check against the instanced panels. |
| panel_idname_func | Function to find the PanelType.idname for each item in the data list. For a readability and generality, this lookup happens separately for each type of panel list. |
Definition at line 332 of file interface_panel.cc.
References BLI_listbase_count(), data, i, LISTBASE_FOREACH, MAX_NAME, Link::next, PANEL_TYPE_INSTANCED, ARegion::panels, PNL_INSTANCED_LIST_ORDER_CHANGED, and STREQ.
Referenced by ANIM_fmodifier_panels(), blender::ed::spreadsheet::spreadsheet_row_filters_layout(), uiTemplateConstraints(), uiTemplateModifiers(), and uiTemplateShaderFx().
| bool UI_panel_matches_search_filter | ( | const Panel * | panel | ) |
Find whether a panel or any of its sub-panels contain a property that matches the search filter, depending on the search process running in UI_block_apply_search_filter earlier.
Definition at line 899 of file interface_panel.cc.
References panel_matches_search_filter_recursive().
Referenced by buttons_main_region_property_search(), panel_draw_aligned_backdrop(), panel_title_color_get(), and UI_panel_is_closed().
Definition at line 1324 of file interface_panel.cc.
References ARegion::alignment, PanelType::flag, ARegion::overlap, PANEL_TYPE_NO_HEADER, ARegion::regiontype, RGN_ALIGN_FLOAT, and RGN_TYPE_TOOLS.
Referenced by panel_draw_width_from_max_width_get(), UI_block_draw(), ui_panels_size(), and uiAlignPanelStep().
| int UI_panel_size_y | ( | const Panel * | panel | ) |
Definition at line 1626 of file interface_panel.cc.
References get_panel_real_size_y().
Referenced by ED_region_panels_layout_ex().
Definition at line 2804 of file interface_panel.cc.
References Panel::activedata, C, panel_activate_state(), and PANEL_STATE_EXIT.
Referenced by ED_region_exit().
Definition at line 1908 of file interface_panel.cc.
References ARegion::panels, and panels_layout_begin_clear_flags().
Referenced by ED_region_panels_layout_ex().
Draw panels, selected (panels currently being dragged) on top.
Definition at line 1014 of file interface_panel.cc.
References C, LISTBASE_FOREACH_BACKWARD, ARegion::runtime, UI_block_draw(), UI_block_is_search_only(), and UI_panel_is_dragging().
Referenced by ED_region_panels_draw().
Definition at line 1915 of file interface_panel.cc.
References BLI_assert, C, CTX_wm_area(), ARegion::flag, LISTBASE_FOREACH, panel_activate_state(), PANEL_ACTIVE, panel_calculate_size_recursive(), PANEL_STATE_ANIMATION, ARegion::panels, panels_need_realign(), properties_space_needs_realign(), region_panels_remove_invisible_layouts(), region_panels_set_expansion_from_list_data(), region_panels_set_expansion_from_search_filter(), RGN_FLAG_SEARCH_FILTER_ACTIVE, RGN_FLAG_SEARCH_FILTER_UPDATE, ARegion::runtime, ui_block_views_end(), ui_offset_panel_block(), ui_panels_size(), and uiAlignPanelStep().
Referenced by ED_region_panels_layout_ex().
Remove instanced panels from the region's panel list.
Definition at line 307 of file interface_panel.cc.
References C, LISTBASE_FOREACH_MUTABLE, panel_activate_state(), panel_delete(), PANEL_STATE_EXIT, PANEL_TYPE_INSTANCED, and ARegion::panels.
Referenced by ANIM_fmodifier_panels(), ED_region_property_search(), blender::ed::spreadsheet::spreadsheet_row_filters_layout(), uiTemplateConstraints(), uiTemplateModifiers(), and uiTemplateShaderFx().
Definition at line 92 of file interface_region_menu_pie.cc.
References C, CTX_wm_window(), uiBut::drawflag, ELEM, blender::ui::Emboss, EVENT_NONE, PieMenuData::event_type, uiBlock::flag, PieMenuData::flags, PieMenuData::icon, KM_CLICK, KM_RELEASE, uiPieMenu::layout, LEFTMOUSE, MEM_callocN(), uiPieMenu::mx, uiPieMenu::my, uiPieMenu::pie_block, uiBlock::pie_data, wmWindow::pie_event_type_last, wmWindow::pie_event_type_lock, uiBlock::puphash, SNPRINTF, uiBut::str, PieMenuData::title, wmEvent::type, UI_block_begin(), UI_block_layout(), UI_BLOCK_PIE_MENU, UI_BTYPE_LABEL, UI_BUT_TEXT_LEFT, UI_LAYOUT_PIEMENU, UI_LAYOUT_VERTICAL, UI_PIE_CLICK_STYLE, ui_pie_menu_title_width(), ui_popup_menu_hash(), UI_style_get_dpi(), UI_UNIT_Y, uiDefBut(), uiDefIconTextBut(), wmEvent::val, and w().
Referenced by UI_pie_menu_invoke(), UI_pie_menu_invoke_from_operator_enum(), UI_pie_menu_invoke_from_rna_enum(), and ui_pie_menu_level_invoke().
Definition at line 177 of file interface_region_menu_pie.cc.
References BLI_time_now_seconds(), C, CTX_wm_window(), MEM_freeN(), wmWindow::modalhandlers, uiPopupBlockHandle::popup, uiPopupBlockHandle::towardstime, ui_block_func_PIE(), ui_popup_block_create(), UI_popup_handlers_add(), WM_event_add_mousemove(), and WM_HANDLER_ACCEPT_DBL_CLICK.
Referenced by UI_pie_menu_invoke(), UI_pie_menu_invoke_from_operator_enum(), UI_pie_menu_invoke_from_rna_enum(), and ui_pie_menu_level_invoke().
| wmOperatorStatus UI_pie_menu_invoke | ( | bContext * | C, |
| const char * | idname, | ||
| const wmEvent * | event ) |
Definition at line 197 of file interface_region_menu_pie.cc.
References C, CTX_IFACE_, MenuType::label, OPERATOR_CANCELLED, OPERATOR_INTERFACE, OPERATOR_PASS_THROUGH, printf, MenuType::translation_context, UI_menutype_draw(), UI_pie_menu_begin(), UI_pie_menu_end(), UI_pie_menu_layout(), WM_menutype_find(), and WM_menutype_poll().
Referenced by view3d_object_mode_menu_exec(), wm_call_pie_menu_exec(), and wm_call_pie_menu_invoke().
| wmOperatorStatus UI_pie_menu_invoke_from_operator_enum | ( | bContext * | C, |
| blender::StringRefNull | title, | ||
| blender::StringRefNull | opname, | ||
| blender::StringRefNull | propname, | ||
| const wmEvent * | event ) |
Definition at line 223 of file interface_region_menu_pie.cc.
References C, blender::StringRefNull::c_str(), IFACE_, uiLayout::menu_pie(), OPERATOR_INTERFACE, UI_pie_menu_begin(), UI_pie_menu_end(), UI_pie_menu_layout(), and uiItemsEnumO().
| wmOperatorStatus UI_pie_menu_invoke_from_rna_enum | ( | bContext * | C, |
| const char * | title, | ||
| const char * | path, | ||
| const wmEvent * | event ) |
Definition at line 243 of file interface_region_menu_pie.cc.
References BLI_assert, C, IFACE_, uiLayout::menu_pie(), OPERATOR_CANCELLED, OPERATOR_INTERFACE, uiLayout::prop(), PROP_ENUM, RNA_NO_INDEX, RNA_path_resolve(), RNA_pointer_create_discrete(), RNA_property_type(), UI_ITEM_R_EXPAND, UI_pie_menu_begin(), UI_pie_menu_end(), and UI_pie_menu_layout().
Definition at line 192 of file interface_region_menu_pie.cc.
References uiPieMenu::layout.
Referenced by UI_pie_menu_invoke(), UI_pie_menu_invoke_from_operator_enum(), UI_pie_menu_invoke_from_rna_enum(), and ui_pie_menu_level_invoke().
Only return handler, and set optional title.
| from_active_button | Use the active button for positioning, use when the popover is activated from an operator instead of directly from the button. |
Definition at line 350 of file interface_region_popover.cc.
References uiPopover::block, uiPopover::but, uiPopover::butregion, C, CTX_wm_region(), uiBlock::handle, U, ui_popover_create_block(), UI_POPOVER_WIDTH_UNITS, UI_region_active_but_get(), uiPopover::ui_size_x, and WM_OP_EXEC_REGION_WIN.
Referenced by UI_popover_panel_invoke().
Set the whole structure to work.
Definition at line 388 of file interface_region_popover.cc.
References BLI_addhead(), BLI_remlink(), uiPopover::block, uiPopover::but, uiPopover::butregion, C, CTX_wm_window(), uiPopover::keymap, uiPopover::keymap_handler, wmWindow::modalhandlers, popover_keymap_fn(), uiPopupBlockHandle::popup, UI_block_flag_disable(), UI_block_flag_enable(), ui_block_free_func_POPOVER(), ui_block_func_POPOVER(), UI_BLOCK_KEEP_OPEN, UI_BLOCK_SHOW_SHORTCUT_ALWAYS, ui_popup_block_create(), UI_popup_handlers_add(), uiPopover::window, WM_event_add_keymap_handler_priority(), WM_event_add_mousemove(), and WM_event_set_keymap_handler_post_callback().
Referenced by UI_popover_panel_invoke().
Definition at line 430 of file interface_region_popover.cc.
References uiPopover::layout.
Referenced by UI_popover_panel_invoke().
| void UI_popover_once_clear | ( | uiPopover * | pup | ) |
Definition at line 436 of file interface_region_popover.cc.
References uiPopover::is_once.
Referenced by ui_handle_menu_event().
| wmOperatorStatus UI_popover_panel_invoke | ( | bContext * | C, |
| const char * | idname, | ||
| bool | keep_open, | ||
| ReportList * | reports ) |
Definition at line 305 of file interface_region_popover.cc.
References uiPopupBlockCreate::arg, BKE_reportf(), uiPopover::block, C, uiBlock::handle, OPERATOR_CANCELLED, OPERATOR_INTERFACE, OPERATOR_PASS_THROUGH, PanelType::poll, uiPopupBlockHandle::popup_create_vars, uiPopupBlockHandle::region, reports, RPT_ERROR, U, UI_block_active_only_flagged_buttons(), ui_item_paneltype_func(), UI_paneltype_draw(), UI_popover_begin(), UI_popover_end(), UI_popover_layout(), ui_popover_panel_create(), PanelType::ui_units_x, and WM_paneltype_find().
Referenced by add_driver_button_invoke(), edit_driver_button_exec(), and wm_call_panel_exec().
Definition at line 871 of file interface_region_menu_popup.cc.
References C, ED_region_tag_refresh_ui(), ED_workspace_status_text(), uiBlock::handle, LISTBASE_FOREACH, wmWindow::modalhandlers, bScreen::regionbase, ui_popup_block_free(), UI_popup_handlers_remove(), and WM_window_get_active_screen().
Referenced by dialog_cancel_cb(), dialog_exec_cb(), popup_block_template_close_cb(), save_file_overwrite_cancel(), save_file_overwrite_confirm(), save_file_overwrite_saveas(), text_insert_unicode_cancel(), text_insert_unicode_confirm(), wm_block_autorun_warning_enable_scripts(), wm_block_autorun_warning_ignore(), wm_block_autorun_warning_reload_with_scripts(), wm_block_file_close_cancel(), wm_block_file_close_discard(), wm_block_file_close_save(), and wm_block_splash_close().
| void UI_popup_block_ex | ( | bContext * | C, |
| uiBlockCreateFunc | func, | ||
| uiBlockHandleFunc | popup_func, | ||
| uiBlockCancelFunc | cancel_func, | ||
| void * | arg, | ||
| wmOperator * | op ) |
Definition at line 694 of file interface_region_menu_popup.cc.
References C, uiPopupBlockHandle::cancel_func, CTX_wm_window(), WorkspaceStatus::item(), wmWindow::modalhandlers, uiPopupBlockHandle::popup, uiPopupBlockHandle::popup_arg, uiPopupBlockHandle::popup_func, uiPopupBlockHandle::popup_op, uiPopupBlockHandle::region, uiPopupBlockHandle::retvalue, ARegion::runtime, UI_block_active_only_flagged_buttons(), ui_popup_block_create(), UI_popup_handlers_add(), and WM_event_add_mousemove().
Referenced by ui_popup_context_menu_for_button(), WM_operator_confirm_ex(), WM_operator_props_dialog_popup(), wm_operator_props_popup_ex(), and WM_operator_ui_popup().
| void UI_popup_block_invoke | ( | bContext * | C, |
| uiBlockCreateFunc | func, | ||
| void * | arg, | ||
| uiFreeArgFunc | arg_free ) |
Definition at line 689 of file interface_region_menu_popup.cc.
References C, and UI_popup_block_invoke_ex().
Referenced by blender::ed::outliner::merged_element_search_menu_invoke(), blender::ed::space_node::node_find_node_invoke(), ui_popup_context_menu_for_button(), wm_close_file_dialog(), WM_operator_redo_popup(), wm_save_file_overwrite_dialog(), wm_splash_about_invoke(), wm_splash_invoke(), wm_test_autorun_warning(), wm_test_gpu_backend_fallback(), and wm_test_opengl_deprecation_warning().
| void UI_popup_block_invoke_ex | ( | bContext * | C, |
| uiBlockCreateFunc | func, | ||
| void * | arg, | ||
| uiFreeArgFunc | arg_free, | ||
| bool | can_refresh ) |
| can_refresh | When true, the popup may be refreshed (updated after creation). |
Definition at line 670 of file interface_region_menu_popup.cc.
References C, CTX_wm_window(), WorkspaceStatus::item(), wmWindow::modalhandlers, uiPopupBlockHandle::popup, uiPopupBlockHandle::region, ARegion::runtime, UI_block_active_only_flagged_buttons(), ui_popup_block_create(), UI_popup_handlers_add(), and WM_event_add_mousemove().
Referenced by blender::ed::space_node::invoke_node_link_drag_add_menu(), text_insert_unicode_invoke(), UI_popup_block_invoke(), WM_enum_search_invoke(), and wm_search_menu_invoke().
| bool UI_popup_block_name_exists | ( | const bScreen * | screen, |
| blender::StringRef | name ) |
Definition at line 892 of file interface_region_menu_popup.cc.
References LISTBASE_FOREACH, uiBlock::name, and bScreen::regionbase.
Referenced by wm_close_file_dialog(), and wm_save_file_overwrite_dialog().
| void UI_popup_block_template_confirm | ( | uiBlock * | block, |
| bool | cancel_default, | ||
| blender::FunctionRef< uiBut *()> | confirm_fn, | ||
| blender::FunctionRef< uiBut *()> | cancel_fn ) |
Create confirm & cancel buttons in a popup using callback functions.
Definition at line 752 of file interface_region_menu_popup.cc.
References ARRAY_SET_ITEMS, ARRAY_SIZE, uiBlock::flag, i, popup_block_template_close_cb(), UI_block_has_active_default_button(), UI_BLOCK_LOOP, UI_BUT_ACTIVE_DEFAULT, UI_but_flag_enable(), and UI_but_func_set().
Referenced by UI_popup_block_template_confirm_op().
| bool UI_popup_block_template_confirm_is_supported | ( | const uiBlock * | block | ) |
Return true when UI_popup_block_template_confirm and related functions are supported.
Definition at line 744 of file interface_region_menu_popup.cc.
References uiBlock::flag, UI_BLOCK_KEEP_OPEN, and UI_BLOCK_POPOVER.
| void UI_popup_block_template_confirm_op | ( | uiLayout * | layout, |
| wmOperatorType * | ot, | ||
| std::optional< blender::StringRef > | confirm_text, | ||
| std::optional< blender::StringRef > | cancel_text, | ||
| const int | icon, | ||
| bool | cancel_default, | ||
| PointerRNA * | r_ptr ) |
Create confirm & cancel buttons in a popup using an operator.
| confirm_text | The text to confirm, null for default text or an empty string to hide. |
| cancel_text | The text to cancel, null for default text or an empty string to hide. |
| r_ptr | The pointer for operator properties, set a "confirm" button has been created. |
Definition at line 787 of file interface_region_menu_popup.cc.
References uiBlock::buttons, IFACE_, blender::StringRefBase::is_empty(), Vector< T, InlineBufferCapacity, Allocator >::is_empty(), Vector< T, InlineBufferCapacity, Allocator >::last(), uiBlock::last_but(), uiLayout::op(), ot, uiLayout::split(), UI_BTYPE_BUT, UI_ITEM_NONE, UI_popup_block_template_confirm(), UI_UNIT_X, UI_UNIT_Y, uiDefIconTextBut(), uiLayoutGetBlock(), and uiLayoutGetOperatorContext().
Set a dummy panel in the popup block to support using layout panels, the panel is linked to the popup region so layout panels state can be persistent until the popup is closed.
Definition at line 608 of file interface_region_popup.cc.
References BKE_panel_new(), Panel_Runtime::block, LayoutPanels::clear(), PanelType::flag, Panel_Runtime::layout_panels, uiBlock::panel, PANEL_TYPE_NO_HEADER, ARegion::runtime, and Panel::runtime.
Referenced by ui_paneltype_draw_impl(), wm_block_create_redo(), wm_block_dialog_create(), and wm_operator_ui_create().
| void UI_popup_handlers_add | ( | bContext * | C, |
| ListBase * | handlers, | ||
| uiPopupBlockHandle * | popup, | ||
| char | flag ) |
Definition at line 12431 of file interface_handlers.cc.
References C, flag, ui_popup_handler(), ui_popup_handler_remove(), and WM_event_add_ui_handler().
Referenced by 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_handlers_remove | ( | ListBase * | handlers, |
| uiPopupBlockHandle * | popup ) |
Definition at line 12440 of file interface_handlers.cc.
References ED_region_tag_refresh_ui(), wmEventHandler_UI::handle_fn, wmEventHandler_UI::head, LISTBASE_FOREACH, wmEventHandler::next, uiPopupBlockHandle::region, wmEventHandler_UI::remove_fn, wmEventHandler::type, ui_popup_handler(), ui_popup_handler_remove(), wmEventHandler_UI::user_data, WM_event_remove_ui_handler(), and WM_HANDLER_TYPE_UI.
Referenced by UI_popup_block_close(), and ui_popup_handler().
Definition at line 12467 of file interface_handlers.cc.
References C, ui_popup_handler(), ui_popup_handler_remove(), and WM_event_free_ui_handler_all().
Referenced by ghost_event_proc(), screen_change_prepare(), and wm_event_do_notifiers().
| uiPopupMenu * UI_popup_menu_begin | ( | bContext * | C, |
| const char * | title, | ||
| int | icon ) |
Definition at line 490 of file interface_region_menu_popup.cc.
References C, and UI_popup_menu_begin_ex().
Referenced by armature_parent_clear_invoke(), armature_parent_set_invoke(), context_menu_invoke(), driver_dvar_invalid_name_query_cb(), blender::ed::sculpt_paint::dyntopo::dyntopo_warning_popup(), insert_key_menu_invoke(), keyingset_active_menu_invoke(), blender::ed::object::move_to_collection_invoke(), move_to_collection_regular_invoke(), blender::ed::space_node::node_group_separate_invoke(), blender::ed::object::object_hide_collection_invoke(), blender::ed::outliner::outliner_operator_menu(), blender::ed::object::parent_set_invoke_menu(), blender::ed::object::pose_ik_add_invoke(), repeat_history_invoke(), screen_area_options_invoke(), screen_context_menu_invoke(), blender::ed::object::select_grouped_collection(), blender::ed::transform::select_orientation_invoke(), text_resolve_conflict_invoke(), toggle_cyclic_invoke(), ui_item_menu_hold(), ui_popup_context_menu_for_button(), ui_popup_context_menu_for_panel(), UI_popup_menu_invoke(), unpack_all_invoke(), unpack_item_invoke(), unpack_menu(), blender::ed::object::bake_simulation::unpack_single_bake_invoke(), uv_mark_seam_invoke(), weight_sample_group_invoke(), wm_drop_import_file_invoke(), WM_menu_invoke_ex(), and workspace_add_invoke().
| uiPopupMenu * UI_popup_menu_begin_ex | ( | bContext * | C, |
| const char * | title, | ||
| const char * | block_name, | ||
| int | icon ) |
Directly create a popup menu that is not refreshed on redraw.
Only return handler, and set optional title.
| block_name | Assigned to uiBlock.name (useful info for debugging). |
Definition at line 469 of file interface_region_menu_popup.cc.
References uiPopupMenu::block, C, create_title_button(), uiBlock::handle, uiPopupMenu::layout, uiPopupMenu::title, and ui_popup_menu_create_block().
Referenced by UI_popup_menu_begin(), and UI_popup_menu_reports().
| void UI_popup_menu_but_set | ( | uiPopupMenu * | pup, |
| ARegion * | butregion, | ||
| uiBut * | but ) |
Setting the button makes the popup open from the button instead of the cursor.
Definition at line 495 of file interface_region_menu_popup.cc.
References uiPopupMenu::but, and uiPopupMenu::butregion.
Referenced by ui_item_menu_hold().
| wmOperatorStatus void UI_popup_menu_close | ( | const uiBlock * | block, |
| bool | is_cancel = false ) |
If block is displayed in a popup menu, tag it for closing.
| is_cancel | If set to true, the popup will be closed as being cancelled (e.g. when pressing escape) as opposed to being handled successfully. |
Definition at line 904 of file interface_region_menu_popup.cc.
References UI_popup_menu_retval_set(), UI_RETURN_CANCEL, and UI_RETURN_OK.
Referenced by UI_popup_menu_close_from_but().
Version of UI_popup_menu_close() that can be called on a button contained in a popup menu block. Convenience since the block may not be available.
Definition at line 909 of file interface_region_menu_popup.cc.
References uiBut::block, and UI_popup_menu_close().
Referenced by force_activate_view_item_but().
| void UI_popup_menu_end | ( | bContext * | C, |
| uiPopupMenu * | pup ) |
Set the whole structure to work.
Definition at line 501 of file interface_region_menu_popup.cc.
References uiPopupMenu::but, uiPopupMenu::butregion, C, CTX_wm_window(), wmWindow::eventstate, wmWindow::modalhandlers, uiPopupMenu::mx, uiPopupMenu::my, uiPopupBlockHandle::popup, uiPopupMenu::popup, ui_block_func_POPUP(), ui_popup_block_create(), UI_popup_handlers_add(), WM_event_add_mousemove(), and wmEvent::xy.
Referenced by armature_parent_clear_invoke(), armature_parent_set_invoke(), context_menu_invoke(), driver_dvar_invalid_name_query_cb(), blender::ed::sculpt_paint::dyntopo::dyntopo_warning_popup(), insert_key_menu_invoke(), keyingset_active_menu_invoke(), blender::ed::object::move_to_collection_invoke(), move_to_collection_regular_invoke(), blender::ed::space_node::node_group_separate_invoke(), blender::ed::object::object_hide_collection_invoke(), blender::ed::outliner::outliner_operator_menu(), blender::ed::object::parent_set_invoke_menu(), blender::ed::object::pose_ik_add_invoke(), repeat_history_invoke(), screen_area_options_invoke(), screen_context_menu_invoke(), blender::ed::object::select_grouped_collection(), blender::ed::transform::select_orientation_invoke(), text_resolve_conflict_invoke(), toggle_cyclic_invoke(), ui_item_menu_hold(), ui_popup_context_menu_for_panel(), UI_popup_menu_end_or_cancel(), UI_popup_menu_invoke(), UI_popup_menu_reports(), unpack_all_invoke(), unpack_item_invoke(), unpack_menu(), blender::ed::object::bake_simulation::unpack_single_bake_invoke(), uv_mark_seam_invoke(), weight_sample_group_invoke(), wm_drop_import_file_invoke(), WM_menu_invoke_ex(), and workspace_add_invoke().
| bool UI_popup_menu_end_or_cancel | ( | bContext * | C, |
| uiPopupMenu * | pup ) |
Definition at line 526 of file interface_region_menu_popup.cc.
References uiPopupMenu::block, C, uiBlock::handle, UI_block_free(), UI_block_is_empty_ex(), UI_block_layout_resolve(), and UI_popup_menu_end().
Referenced by ui_popup_context_menu_for_button().
| wmOperatorStatus UI_popup_menu_invoke | ( | bContext * | C, |
| const char * | idname, | ||
| ReportList * | reports ) |
Referenced by wm_call_menu_exec().
| uiLayout * UI_popup_menu_layout | ( | uiPopupMenu * | pup | ) |
Definition at line 539 of file interface_region_menu_popup.cc.
References uiPopupMenu::layout.
Referenced by armature_parent_clear_invoke(), armature_parent_set_invoke(), context_menu_invoke(), driver_dvar_invalid_name_query_cb(), blender::ed::sculpt_paint::dyntopo::dyntopo_warning_popup(), insert_key_menu_invoke(), keyingset_active_menu_invoke(), blender::ed::object::move_to_collection_invoke(), move_to_collection_regular_invoke(), blender::ed::space_node::node_group_separate_invoke(), blender::ed::object::object_hide_collection_invoke(), blender::ed::outliner::outliner_operator_menu(), blender::ed::object::parent_set_invoke_menu(), blender::ed::object::pose_ik_add_invoke(), repeat_history_invoke(), screen_area_options_invoke(), screen_context_menu_invoke(), blender::ed::object::select_grouped_collection(), blender::ed::transform::select_orientation_invoke(), text_resolve_conflict_invoke(), toggle_cyclic_invoke(), ui_item_menu_hold(), ui_popup_context_menu_for_button(), ui_popup_context_menu_for_panel(), UI_popup_menu_invoke(), UI_popup_menu_reports(), unpack_all_invoke(), unpack_item_invoke(), unpack_menu(), blender::ed::object::bake_simulation::unpack_single_bake_invoke(), uv_mark_seam_invoke(), weight_sample_group_invoke(), wm_drop_import_file_invoke(), WM_menu_invoke_ex(), and workspace_add_invoke().
| void UI_popup_menu_reports | ( | bContext * | C, |
| ReportList * | reports ) |
Definition at line 550 of file interface_region_menu_popup.cc.
References BKE_reports_lock(), BKE_reports_unlock(), BLI_strncpy(), C, CTX_wm_window(), uiLayout::label(), LISTBASE_FOREACH, reports, RPT_, uiLayout::separator(), SNPRINTF, UI_icon_from_report_type(), UI_MAX_DRAW_STR, UI_popup_menu_begin_ex(), UI_popup_menu_end(), and UI_popup_menu_layout().
Referenced by blender::ed::object::bake_simulation::bake_simulation_invoke(), wm_handler_fileselect_do(), and wm_operator_reports().
| void UI_popup_menu_retval_set | ( | const uiBlock * | block, |
| int | retval, | ||
| bool | enable ) |
Allow setting menu return value from externals. E.g. WM might need to do this for exiting files correctly.
Definition at line 12036 of file interface_handlers.cc.
References uiBlock::handle, and uiPopupBlockHandle::menuretval.
Referenced by dialog_cancel_cb(), dialog_exec_cb(), popup_block_template_close_cb(), and UI_popup_menu_close().
| int UI_preview_tile_size_x | ( | const int | size_px = 96 | ) |
Get the scaled size for a preview button (typically #UI_BTyPE_PREVIEW_TILE) based on size_px plus padding.
Definition at line 5208 of file interface.cc.
References pad, PREVIEW_TILE_PAD, round_fl_to_int(), and UI_UNIT_X.
Referenced by blender::ui::AbstractGridView::AbstractGridView(), blender::ed::asset::shelf::asset_shelf_default_tile_height(), asset_view_draw_item(), blender::ed::asset::shelf::tile_width(), and ui_template_list_layout_draw().
| int UI_preview_tile_size_y | ( | const int | size_px = 96 | ) |
Definition at line 5214 of file interface.cc.
References pad, PREVIEW_TILE_PAD, round_fl_to_int(), UI_preview_tile_size_y_no_label(), and UI_UNIT_Y.
Referenced by blender::ui::AbstractGridView::AbstractGridView(), asset_view_draw_item(), blender::ed::asset::shelf::tile_height(), and ui_template_list_layout_draw().
| int UI_preview_tile_size_y_no_label | ( | const int | size_px = 96 | ) |
Definition at line 5223 of file interface.cc.
References pad, PREVIEW_TILE_PAD, round_fl_to_int(), and UI_UNIT_Y.
Referenced by asset_view_draw_item(), blender::ed::asset::shelf::tile_height(), UI_preview_tile_size_y(), and ui_template_list_layout_draw().
Definition at line 9236 of file interface_handlers.cc.
References ui_context_button_active().
Referenced by ui_but_tooltip_init(), UI_key_event_operator_string(), UI_popover_begin(), UI_region_active_but_prop_get(), UI_region_searchbox_region_get(), and wm_drop_ui_context_create().
| uiBut * UI_region_active_but_prop_get | ( | const ARegion * | region, |
| PointerRNA * | r_ptr, | ||
| PropertyRNA ** | r_prop, | ||
| int * | r_index ) |
As above, but for a specified region.
Definition at line 9251 of file interface_handlers.cc.
References PointerRNA::data, uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, and UI_region_active_but_get().
Referenced by graph_panel_drivers_popover(), and UI_context_active_but_prop_get().
| uiBlock * UI_region_block_find_mouse_over | ( | const ARegion * | region, |
| const int | xy[2], | ||
| bool | only_clip ) |
Definition at line 9246 of file interface_handlers.cc.
References ui_block_find_mouse_over_ex(), and xy.
Referenced by wm_handlers_do_gizmo_handler().
Definition at line 9241 of file interface_handlers.cc.
References ui_but_find_rect_over().
Referenced by ED_region_contains_xy().
| void UI_region_button_sections_draw | ( | const ARegion * | region, |
| int | colorid, | ||
| uiButtonSectionsAlign | align ) |
Draw a background with rounded corners behind each visual group of buttons. The visual groups are separated by spacer buttons (uiItemSpacer()). Button groups that are closer than UI_BUTTON_SECTION_MERGE_DISTANCE will be merged into one visual section. If the group is closer than that to a region edge, it will also be extended to that, and the rounded corners will be removed on that edge.
Definition at line 219 of file interface_button_sections.cc.
References BLI_rctf_size_x(), BLI_rcti_size_x(), button_section_bounds_calc(), View2D::cur, View2D::mask, None, ui_draw_button_sections_alignment_separator(), ui_draw_button_sections_background(), UI_SCALE_FAC, and ARegion::v2d.
Referenced by ED_region_header_draw_with_button_sections().
| bool UI_region_button_sections_is_inside_x | ( | const ARegion * | region, |
| const int | mval_x ) |
Definition at line 241 of file interface_button_sections.cc.
References BLI_rcti_isect_x(), and button_section_bounds_calc().
Referenced by area_actionzone_refresh_xy().
Definition at line 12542 of file interface_handlers.cc.
References C, LISTBASE_FOREACH, ARegion::runtime, and ui_but_active_free().
Referenced by ED_region_visibility_change_update_ex().
| void UI_region_handlers_add | ( | ListBase * | handlers | ) |
Definition at line 12419 of file interface_handlers.cc.
References ui_region_handler(), ui_region_handler_remove(), WM_event_add_ui_handler(), and WM_event_remove_ui_handler().
Referenced by ed_default_handlers(), hud_region_init(), and ui_popup_block_create().
Definition at line 2331 of file interface.cc.
References LISTBASE_FOREACH, ARegion::runtime, and ui_block_message_subscribe().
Referenced by ED_region_message_subscribe().
| PointerRNA * UI_region_panel_custom_data_under_cursor | ( | const bContext * | C, |
| const wmEvent * | event ) |
Definition at line 2643 of file interface_panel.cc.
References C, CTX_wm_region(), ELEM, LISTBASE_FOREACH, PANEL_MOUSE_INSIDE_CONTENT, PANEL_MOUSE_INSIDE_HEADER, ARegion::runtime, UI_panel_custom_data_get(), ui_panel_mouse_state_get(), and ui_window_to_block().
Referenced by blender::ed::object::edit_constraint_invoke_properties(), blender::ed::object::edit_modifier_invoke_properties_with_hover(), and blender::ed::object::edit_shaderfx_invoke_properties().
Try to find a search-box region opened from a button in button_region.
Definition at line 9351 of file interface_handlers.cc.
References uiBut::active, uiHandleButtonData::searchbox, and UI_region_active_but_get().
Referenced by wm_searchbox_tooltip_init().
| blender::ui::AbstractView * UI_region_view_find_at | ( | const ARegion * | region, |
| const int | xy[2], | ||
| int | pad ) |
| xy | Coordinate to find a view item at, in window space. |
| pad | Extra padding added to the bounding box of the view. |
Definition at line 202 of file interface_view.cc.
References BLI_rcti_isect_pt(), BLI_rcti_pad(), LISTBASE_FOREACH, pad, ARegion::runtime, ui_region_contains_point_px(), ui_window_to_block_fl(), and xy.
Referenced by get_view_focused(), blender::ui::region_views_find_drop_target_at(), and ui_view_start_filter_invoke().
| void UI_region_views_clear_search_highlight | ( | const ARegion * | region | ) |
Definition at line 259 of file interface_view.cc.
References LISTBASE_FOREACH, and ARegion::runtime.
Referenced by ui_handle_view_item_event().
| blender::ui::AbstractViewItem * UI_region_views_find_active_item | ( | const ARegion * | region | ) |
Definition at line 244 of file interface_view.cc.
References ui_view_item_find_active(), and uiButViewItem::view_item.
Referenced by ui_view_item_rename_exec(), and ui_view_item_rename_poll().
Definition at line 254 of file interface_view.cc.
References ui_view_item_find_active().
Referenced by blender::ed::asset::shelf::context().
| blender::ui::AbstractViewItem * UI_region_views_find_item_at | ( | const ARegion & | region, |
| const int | xy[2] ) |
| xy | Coordinate to find a view item at, in window space. |
Definition at line 234 of file interface_view.cc.
References ui_view_item_find_mouse_over(), uiButViewItem::view_item, and xy.
Referenced by blender::ui::region_views_find_drop_target_at().
| void UI_reinit_font | ( | ) |
Definition at line 7033 of file interface.cc.
References uiStyleInit().
Referenced by reloadtranslation_exec().
Is called by notifier.
Definition at line 12554 of file interface_handlers.cc.
References uiBut::active, BUTTON_STATE_HIGHLIGHT, C, CTX_wm_window(), data, ED_screen_areas_iter, LISTBASE_FOREACH, ui_but_active_free(), and ui_region_find_active_but().
Referenced by ED_screen_set_active_region().
| bool UI_search_item_add | ( | uiSearchItems * | items, |
| blender::StringRef | name, | ||
| void * | poin, | ||
| int | iconid, | ||
| int | but_flag, | ||
| uint8_t | name_prefix_offset ) |
Public function exported for functions that use UI_BTYPE_SEARCH_MENU.
Use inside searchfunc to add items.
| items | Stores the items. |
| name | Text to display for the item. |
| poin | Opaque pointer (for use by the caller). |
| iconid | The icon, #ICON_NONE for no icon. |
| but_flag | Button flags (uiBut.flag) indicating the state of the item, typically UI_BUT_DISABLED, UI_BUT_INACTIVE or UI_BUT_HAS_SEP_CHAR. |
Definition at line 103 of file interface_region_search.cc.
References uiSearchItems::active, uiSearchItems::autocpl, BLI_assert, uiSearchItems::but_flags, blender::StringRefBase::copy_utf8_truncated(), blender::StringRef::drop_prefix(), uiSearchItems::has_icon, uiSearchItems::icons, uiSearchItems::maxitem, uiSearchItems::maxstrlen, MEM_callocN(), uiSearchItems::more, uiSearchItems::name_prefix_offsets, uiSearchItems::names, uiSearchItems::offset_i, uiSearchItems::pointers, uiSearchItems::totitem, UI_autocomplete_update_name(), UI_BUT_DISABLED, UI_BUT_HAS_SEP_CHAR, UI_BUT_INACTIVE, and UI_BUT_REDALERT.
Referenced by add_collection_search_item(), blender::ui::attribute_search_add_items(), blender::ui::attribute_search_item_add(), blender::ui::grease_pencil_layer_search_add_items(), id_search_add(), blender::ed::space_node::link_drag_search_update_fn(), menu_search_update_fn(), blender::ed::outliner::merged_element_search_fn_recursive(), blender::ed::space_node::node_find_update_fn(), operator_enum_search_update_fn(), and operator_search_update_fn().
| int UI_search_items_find_index | ( | const uiSearchItems * | items, |
| const char * | name ) |
Check if a string is in an existing search box.
Definition at line 237 of file interface_region_search.cc.
References i, uiSearchItems::name_prefix_offsets, uiSearchItems::names, STREQ, and uiSearchItems::totitem.
Referenced by blender::ed::outliner::merged_element_search_fn_recursive(), ui_but_search_refresh(), and ui_searchbox_find_index().
| int UI_searchbox_size_x | ( | ) |
Definition at line 177 of file interface_region_search.cc.
References UI_UNIT_X.
Referenced by blender::ed::space_node::create_search_popup_block(), wm_enum_search_menu(), and wm_search_menu_invoke().
| int UI_searchbox_size_x_guess | ( | const bContext * | C, |
| const uiButSearchUpdateFn | update_fn, | ||
| void * | arg ) |
Guess a good width for the search box based on the searchable items.
Definition at line 209 of file interface_region_search.cc.
References C, Array< T, InlineBufferCapacity, Allocator >::data(), i, uiSearchItems::icons, uiSearchItems::maxitem, uiSearchItems::maxstrlen, MEM_SAFE_FREE, uiSearchItems::name_prefix_offsets, uiSearchItems::names, and ui_searchbox_size_x_from_items().
Referenced by blender::ed::space_node::node_find_menu(), and template_common_search_menu().
| int UI_searchbox_size_y | ( | ) |
Height in pixels, it's using hard-coded values still.
Definition at line 172 of file interface_region_search.cc.
References SEARCH_ITEMS, UI_SEARCHBOX_TRIA_H, and UI_UNIT_Y.
Referenced by blender::ed::space_node::create_search_popup_block(), blender::ed::outliner::merged_element_search_menu(), blender::ed::space_node::node_find_menu(), template_common_search_menu(), ui_searchbox_region_layout_fn(), wm_enum_search_menu(), and wm_search_menu_invoke().
| const uiStyle * UI_style_get | ( | ) |
Read a style (without any scaling applied).
Definition at line 406 of file interface_style.cc.
References BLI_findstring(), and U.
Referenced by clip_draw_dopesheet_channels(), component_menu(), drw_text_cache_draw_ex(), ED_region_cache_draw_curfra_label(), ED_region_image_overlay_info_text_draw(), file_draw_list(), file_draw_string(), file_draw_string_mulitline_clipped(), file_draw_string_multiline(), file_font_pointsize(), file_string_width(), blender::ed::space_node::frame_node_draw_label(), blender::nodes::node_fn_input_string_cc::node_gather_link_searches(), radial_control_paint_cursor(), reset_exec(), slider_draw(), ui_block_bounds_calc_text(), ui_def_but_rna__menu(), UI_panel_category_draw_all(), ui_searchbox_create_generic_ex(), UI_style_get_dpi(), ui_textedit_set_cursor_pos(), ui_tooltip_create_with_data(), ui_tooltip_data_from_button_or_extra_icon(), ui_tooltip_region_draw_cb(), UI_view2d_region_reinit(), uiTemplateReportsBanner(), uiTemplateStatusInfo(), blender::ed::object::voxel_size_edit_draw(), widget_preview_tile(), WM_operator_confirm_ex(), and WM_operator_props_dialog_popup().
| const uiStyle * UI_style_get_dpi | ( | ) |
Read a style (with the current DPI applied).
Definition at line 418 of file interface_style.cc.
References uiStyle::boxspace, uiStyle::buttonspacex, uiStyle::buttonspacey, uiStyle::columnspace, uiStyle::grouplabel, uiStyle::panelouter, uiStyle::panelspace, uiStyle::paneltitle, uiFontStyle::shadx, uiFontStyle::shady, uiStyle::templatespace, uiStyle::tooltip, UI_SCALE_FAC, UI_style_get(), and uiStyle::widget.
Referenced by blender::ed::asset::shelf::add_tab_button(), block_create_autorun_warning(), block_create_opengl_usage_warning(), button_section_bounds_calc(), colorband_tools_fn(), blender::ed::space_node::draw_tree_path(), ed_panel_draw(), ED_region_header_layout(), ED_region_image_metadata_draw(), ED_region_info_draw_multiline(), ED_region_property_search(), ED_time_scrub_channel_search_draw(), blender::ed::spreadsheet::get_index_column_width(), blender::ed::asset::shelf::main_region_padding_y(), menu_add_shortcut(), menu_change_shortcut(), menu_items_from_ui_create(), blender::ed::space_node::node_update_basis_buttons(), blender::ed::space_node::node_update_basis_from_declaration(), blender::ed::space_node::node_update_basis_socket(), blender::ui::padded_item_height(), blender::ed::asset::shelf::region_layout(), blender::ui::region_views_find_drop_target_at(), blender::ed::spreadsheet::spreadsheet_footer_region_draw(), template_ID_tabs(), blender::ed::vse::text_size_get(), UI_block_draw(), ui_litem_layout_panel_body(), ui_litem_layout_panel_header(), ui_offset_panel_block(), UI_pie_menu_begin(), ui_popover_create_block(), ui_popover_panel_create(), ui_popup_menu_create_block(), uiItemsAlertBox(), blender::ed::outliner::unused_message_popup_width_compute(), wm_block_about_create(), wm_block_create_redo(), wm_block_dialog_create(), wm_block_insert_unicode_create(), wm_block_splash_create(), and wm_operator_ui_create().
| void UI_style_init_default | ( | ) |
Definition at line 1119 of file resources.cc.
References BLI_freelistN(), U, and uiStyleInit().
Referenced by preferences_reset_default_theme_exec().
| float UI_text_clip_middle_ex | ( | const uiFontStyle * | fstyle, |
| char * | str, | ||
| float | okwidth, | ||
| float | minwidth, | ||
| size_t | max_len, | ||
| char | rpart_sep, | ||
| bool | clip_right_if_tight = true ) |
Shortening string helper.
Cut off the middle of the text to fit into the given width.
If rpart_sep is not null, the part of str starting to first occurrence of rpart_sep is preserved at all cost. Useful for strings with shortcuts (like A Very Long Foo Bar Label For Menu Entry|Ctrl O' -> 'AVeryLong...MenuEntry|Ctrl O).
| clip_right_if_tight | In case this middle clipping would just remove a few chars, or there are less than 10 characters before the clipping, it rather clips right, which is more readable. |
Definition at line 1491 of file interface_widgets.cc.
References BLF_width(), BLF_width_to_rstrlen(), BLF_width_to_strlen(), BLI_assert, BLI_STR_UTF8_HORIZONTAL_ELLIPSIS, BLI_str_utf8_invalid_byte(), min_ff(), str, STRNCPY(), UI_fontstyle_set(), UI_MAX_DRAW_STR, ui_text_clip_right_ex(), uiFontStyle::uifont_id, and UNUSED_VARS_NDEBUG.
Referenced by file_draw_string(), ui_draw_menu_item(), ui_draw_preview_item_stateless(), ui_text_clip_middle(), ui_text_clip_middle_protect_right(), and UI_text_clip_multiline_middle().
| blender::Vector< blender::StringRef > UI_text_clip_multiline_middle | ( | const uiFontStyle * | fstyle, |
| const char * | str, | ||
| char * | clipped_str_buf, | ||
| const size_t | max_len_clipped_str_buf, | ||
| const float | max_line_width, | ||
| const int | max_lines ) |
Definition at line 1662 of file interface_widgets.cc.
References Vector< T, InlineBufferCapacity, Allocator >::append(), BLF_string_wrap(), BLF_width_to_rstrlen(), BLI_assert, BLI_strncpy(), data, Vector< T, InlineBufferCapacity, Allocator >::data(), HardLimit, i, Vector< T, InlineBufferCapacity, Allocator >::reserve(), size(), Vector< T, InlineBufferCapacity, Allocator >::size(), str, Typographical, UI_ICON_SIZE, UI_text_clip_middle_ex(), and uiFontStyle::uifont_id.
Referenced by UI_fontstyle_draw_multiline_clipped_ex().
| int UI_text_colorid_from_report_type | ( | int | type | ) |
Definition at line 699 of file interface_utils.cc.
References RPT_DEBUG_ALL, RPT_ERROR_ALL, RPT_INFO_ALL, RPT_OPERATOR, RPT_PROPERTY, RPT_WARNING_ALL, TH_INFO_DEBUG_TEXT, TH_INFO_ERROR_TEXT, TH_INFO_INFO_TEXT, TH_INFO_OPERATOR_TEXT, TH_INFO_PROPERTY_TEXT, and TH_INFO_WARNING_TEXT.
Referenced by report_line_data(), and uiTemplateReportsBanner().
Definition at line 12509 of file interface_handlers.cc.
References C, CTX_wm_region(), LISTBASE_FOREACH, ARegion::runtime, UI_BTYPE_TEXT, and UI_but_active_only().
Referenced by file_filename_enter_handle().
| bool UI_textbutton_activate_rna | ( | const bContext * | C, |
| ARegion * | region, | ||
| const void * | rna_poin_data, | ||
| const char * | rna_prop_id ) |
Definition at line 12472 of file interface_handlers.cc.
References C, CTX_wm_region(), CTX_wm_region_set(), LISTBASE_FOREACH, RNA_property_identifier(), ARegion::runtime, STREQ, UI_BTYPE_TEXT, and UI_but_active_only().
Referenced by animchannels_select_filter_modal(), blender::ed::asset::shelf::AssetView::begin_filtering(), buttons_start_filter_exec(), file_edit_directory_path_exec(), file_start_filter_exec(), blender::ed::outliner::outliner_start_filter_exec(), text_text_search_exec(), and ui_list_start_filter_invoke().
| void UI_theme_init_default | ( | ) |
Initialize default theme.
Definition at line 1098 of file resources.cc.
References bTheme::active_theme_area, BLI_addhead(), BLI_findstring(), BLI_listbase_rotate_first(), MEM_callocN(), MEMCPY_STRUCT_AFTER, bTheme::name, offsetof, STRNCPY(), U, U_theme_default, and UI_SetTheme().
Referenced by preferences_reset_default_theme_exec().
| ARegion * UI_tooltip_create_from_button | ( | bContext * | C, |
| ARegion * | butregion, | ||
| uiBut * | but, | ||
| bool | is_quick_tip ) |
| is_quick_tip | See UI_but_func_quick_tooltip_set for what a quick tooltip is. |
Definition at line 1663 of file interface_region_tooltip.cc.
References C, and UI_tooltip_create_from_button_or_extra_icon().
Referenced by ui_search_menu_create_tooltip().
| ARegion * UI_tooltip_create_from_button_or_extra_icon | ( | bContext * | C, |
| ARegion * | butregion, | ||
| uiBut * | but, | ||
| uiButExtraOpIcon * | extra_icon, | ||
| bool | is_quick_tip ) |
Definition at line 1597 of file interface_region_tooltip.cc.
References BLI_rctf_cent_x(), BLI_rctf_cent_y(), BLI_rctf_size_y(), BLI_rcti_rctf_copy_round(), uiBut::block, C, CTX_wm_window(), data, uiBut::drawflag, wmWindow::eventstate, uiBut::rect, uiBut::tip_custom_func, uiBut::type, ui_block_to_window_fl(), ui_block_to_window_rctf(), UI_BTYPE_LABEL, UI_but_has_quick_tooltip(), UI_but_is_tool(), UI_BUT_NO_TOOLTIP, UI_POPUP_MARGIN, ui_tooltip_create_with_data(), ui_tooltip_data_from_button_or_extra_icon(), ui_tooltip_data_from_custom_func(), ui_tooltip_data_from_tool(), UI_UNIT_Y, wmEvent::xy, and rctf::ymin.
Referenced by ui_but_tooltip_init(), and UI_tooltip_create_from_button().
Definition at line 1671 of file interface_region_tooltip.cc.
References bounds(), C, CTX_wm_window(), data, wmWindow::eventstate, wmGizmoType::screen_bounds_get, wmGizmo::type, ui_tooltip_create_with_data(), ui_tooltip_data_from_gizmo(), and wmEvent::xy.
Referenced by WM_gizmomap_tooltip_init().
| ARegion * UI_tooltip_create_from_search_item_generic | ( | bContext * | C, |
| const ARegion * | searchbox_region, | ||
| const rcti * | item_rect, | ||
| ID * | id ) |
Create a tooltip from search-item tooltip data item_tooltip data. To be called from a callback set with UI_but_func_search_set_tooltip().
| item_rect | Rectangle of the search item in search region space (ui_searchbox_butrect()) which is passed to the tooltip callback. |
Definition at line 1906 of file interface_region_tooltip.cc.
References C, CTX_wm_window(), data, wmWindow::eventstate, UI_POPUP_MARGIN, ui_tooltip_create_with_data(), ui_tooltip_data_from_search_item_tooltip_data(), ARegion::winrct, wmEvent::xy, and rcti::ymin.
Referenced by template_ID_search_menu_item_tooltip().
Definition at line 1924 of file interface_region_tooltip.cc.
References C, and ui_region_temp_remove().
Referenced by WM_tooltip_clear(), WM_tooltip_init(), and WM_tooltip_refresh().
| void UI_tooltip_image_field_add | ( | uiTooltipData & | data, |
| const uiTooltipImage & | image_data ) |
| image | Image buffer (duplicated, ownership is not transferred to data). |
| image_size | Display size for the image (pixels without UI scale applied). |
Definition at line 143 of file interface_region_tooltip.cc.
References data, uiTooltipField::format, uiTooltipImage::ibuf, uiTooltipField::image, IMB_dupImBuf(), uiTooltipFormat::style, and UI_TIP_STYLE_IMAGE.
Referenced by file_draw_tooltip_custom_func(), ui_tooltip_data_from_button_or_extra_icon(), ui_tooltip_from_clip(), ui_tooltip_from_image(), ui_tooltip_from_vfont(), and uiTemplateRecentFiles_tooltip_func().
| void UI_tooltip_text_field_add | ( | uiTooltipData & | data, |
| std::string | text, | ||
| std::string | suffix, | ||
| const uiTooltipStyle | style, | ||
| const uiTooltipColorID | color_id, | ||
| const bool | is_pad = false ) |
| text | Allocated text (transfer ownership to data) or null. |
| suffix | Allocated text (transfer ownership to data) or null. |
Definition at line 123 of file interface_region_tooltip.cc.
References uiTooltipFormat::color_id, data, uiTooltipField::format, uiTooltipFormat::style, uiTooltipField::text, uiTooltipField::text_suffix, UI_TIP_LC_NORMAL, UI_TIP_STYLE_SPACER, and UI_tooltip_text_field_add().
Referenced by blender::ed::asset::asset_tooltip(), file_draw_tooltip_custom_func(), ui_block_colorpicker(), ui_tooltip_data_from_button_or_extra_icon(), ui_tooltip_data_from_gizmo(), ui_tooltip_data_from_search_item_tooltip_data(), ui_tooltip_data_from_tool(), ui_tooltip_from_clip(), ui_tooltip_from_image(), ui_tooltip_from_vfont(), UI_tooltip_text_field_add(), and uiTemplateRecentFiles_tooltip_func().
| void UI_update_text_styles | ( | ) |
Definition at line 7038 of file interface.cc.
References BLF_default_weight(), BLF_has_variable_weight(), uiFontStyle::character_weight, uiStyle::grouplabel, uiStyle::paneltitle, uiStyle::tooltip, U, and uiStyle::widget.
| void UI_view_item_begin_rename | ( | blender::ui::AbstractViewItem & | item | ) |
Definition at line 379 of file abstract_view_item.cc.
References blender::ui::AbstractViewItem::begin_renaming().
Referenced by ui_do_but_VIEW_ITEM(), and ui_view_item_rename_exec().
| bool UI_view_item_can_rename | ( | const blender::ui::AbstractViewItem & | item | ) |
Can item be renamed right now? Note that this isn't just a mere wrapper around #AbstractViewItem::supports_renaming(). This also checks if there is another item being renamed, and returns false if so.
Definition at line 373 of file abstract_view_item.cc.
References blender::ui::AbstractViewItem::get_view(), blender::ui::AbstractViewItem::supports_renaming(), and view.
Referenced by ui_do_but_VIEW_ITEM(), and ui_view_item_rename_poll().
| bool UI_view_item_drag_start | ( | bContext & | C, |
| const blender::ui::AbstractViewItem & | item ) |
Attempt to start dragging item_. This will not work if the view item doesn't support dragging, i.e. if it won't create a drag-controller upon request.
Definition at line 394 of file abstract_view_item.cc.
References C, blender::ui::AbstractViewItem::create_drag_controller(), WM_DRAG_FREE_DATA, and WM_event_start_drag().
Referenced by ui_but_drag_init().
| bool UI_view_item_matches | ( | const blender::ui::AbstractViewItem & | a, |
| const blender::ui::AbstractViewItem & | b ) |
Definition at line 363 of file abstract_view_item.cc.
References b, and blender::ui::ViewItemAPIWrapper::matches().
Referenced by ui_block_view_find_matching_view_item_but_in_old_block(), and ui_but_equals_old().
| bool UI_view_item_popup_keep_open | ( | const blender::ui::AbstractViewItem & | item | ) |
If this view is displayed in a popup, don't close it when clicking to activate items.
Definition at line 389 of file abstract_view_item.cc.
References blender::ui::AbstractView::get_popup_keep_open(), and blender::ui::AbstractViewItem::get_view().
Referenced by force_activate_view_item_but().
| bool UI_view_item_supports_drag | ( | const blender::ui::AbstractViewItem & | item | ) |
Definition at line 384 of file abstract_view_item.cc.
References blender::ui::AbstractViewItem::create_drag_controller().
Referenced by ui_do_but_VIEW_ITEM().
| void UI_widgetbase_draw_cache_begin | ( | ) |
Definition at line 1091 of file interface_widgets.cc.
References BLI_assert, and g_widget_base_batch.
Referenced by UI_block_draw().
| void UI_widgetbase_draw_cache_end | ( | ) |
Definition at line 1097 of file interface_widgets.cc.
References BLI_assert, g_widget_base_batch, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, and UI_widgetbase_draw_cache_flush().
Referenced by UI_block_draw().
| void UI_widgetbase_draw_cache_flush | ( | ) |
Definition at line 1061 of file interface_widgets.cc.
References batch, g_widget_base_batch, GPU_batch_draw(), GPU_batch_draw_instance_range(), GPU_batch_program_set_builtin(), GPU_batch_uniform_3fv, GPU_batch_uniform_4fv_array, GPU_SHADER_2D_WIDGET_BASE, GPU_SHADER_2D_WIDGET_BASE_INST, MAX_WIDGET_BASE_BATCH, MAX_WIDGET_PARAMETERS, UI_ALPHA_CHECKER_DARK, UI_ALPHA_CHECKER_LIGHT, and ui_batch_roundbox_widget_get().
Referenced by draw_widgetbase_batch(), icon_draw_size(), UI_widgetbase_draw_cache_end(), uiStyleInit(), widget_box(), widget_draw_node_link_socket(), widget_draw_submenu_tria(), widget_draw_text(), widget_swatch(), and widget_tab().
| uiBut * uiDefAutoButR | ( | uiBlock * | block, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| int | index, | ||
| std::optional< blender::StringRef > | name, | ||
| int | icon, | ||
| int | x, | ||
| int | y, | ||
| int | width, | ||
| int | height ) |
Definition at line 54 of file interface_utils.cc.
References ELEM, IFACE_, PROP_BOOLEAN, PROP_COLLECTION, PROP_COLOR, PROP_COLOR_GAMMA, PROP_ENUM, PROP_FACTOR, PROP_FLOAT, PROP_INT, PROP_PERCENTAGE, PROP_POINTER, PROP_STRING, PROP_TEXTEDIT_UPDATE, ptr, RNA_property_array_check(), RNA_property_collection_length(), RNA_property_flag(), RNA_property_pointer_get(), RNA_property_pointer_type(), RNA_property_subtype(), RNA_property_type(), RNA_struct_ui_icon(), SNPRINTF, PointerRNA::type, UI_BTYPE_CHECKBOX, UI_BTYPE_COLOR, UI_BTYPE_ICON_TOGGLE, UI_BTYPE_LABEL, UI_BTYPE_MENU, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER, UI_BTYPE_SEARCH_MENU, UI_BTYPE_TEXT, ui_but_add_search(), UI_BUT_DISABLED, UI_but_flag_enable(), UI_BUT_TEXTEDIT_UPDATE, UI_BUT_VALUE_CLEAR, uiDefBut(), uiDefButR_prop(), uiDefIconButR_prop(), uiDefIconTextButR_prop(), x, and y.
Referenced by ANIM_channel_draw_widgets(), draw_grease_pencil_layer_widgets(), blender::ed::outliner::outliner_draw_overrides_rna_buts(), blender::ed::outliner::outliner_draw_rnabuts(), uiLayout::prop(), template_search_add_button_name(), ui_item_array(), ui_item_with_label(), uiDefAutoButsArrayR(), uiTemplateImage(), and uiTemplateLayers().
| void uiDefAutoButsArrayR | ( | uiBlock * | block, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| const int | icon, | ||
| const int | x, | ||
| const int | y, | ||
| const int | tot_width, | ||
| const int | height ) |
Definition at line 338 of file interface_utils.cc.
References i, len, ptr, RNA_property_array_length(), UI_block_align_begin(), UI_block_align_end(), uiDefAutoButR(), x, and y.
Referenced by blender::ed::outliner::outliner_draw_overrides_rna_buts().
| eAutoPropButsReturn uiDefAutoButsRNA | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| bool(* | check_prop )(PointerRNA *ptr, PropertyRNA *prop, void *user_data), | ||
| void * | user_data, | ||
| PropertyRNA * | prop_activate_init, | ||
| eButLabelAlign | label_align, | ||
| bool | compact ) |
check_prop callback filters functions to avoid drawing certain properties, in cases where PROP_HIDDEN flag can't be used for a property.
| prop_activate_init | Property to activate on initial popup (UI_BUT_ACTIVATE_ON_INIT). |
Definition at line 361 of file interface_utils.cc.
References BLI_assert, col, uiLayout::column(), ELEM, flag, PROP_BOOLEAN, PROP_FLOAT, PROP_HIDDEN, PROP_INT, PROP_STRING, ptr, RNA_property_array_check(), RNA_property_flag(), RNA_property_type(), RNA_property_ui_name(), RNA_STRUCT_BEGIN, RNA_STRUCT_END, UI_BUT_LABEL_ALIGN_COLUMN, UI_BUT_LABEL_ALIGN_NONE, UI_BUT_LABEL_ALIGN_SPLIT_COLUMN, UI_ITEM_NONE, UI_ITEM_R_COMPACT, UI_PROP_BUTS_ANY_FAILED_CHECK, UI_PROP_BUTS_NONE_ADDED, uiLayoutSetActivateInit(), and uiLayoutSetPropSep().
Referenced by edbm_average_normals_ui(), edbm_normals_tools_ui(), edbm_point_normals_ui(), image_open_draw(), image_save_as_draw(), screenshot_draw(), blender::ed::vse::sequencer_add_draw(), and template_operator_property_buts_draw_single().
| uiBut * uiDefBlockBut | ( | uiBlock * | block, |
| uiBlockCreateFunc | func, | ||
| void * | arg, | ||
| blender::StringRef | str, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 6335 of file interface.cc.
References uiBut::block_create_func, str, UI_BTYPE_BLOCK, ui_but_update(), ui_def_but(), x, and y.
Referenced by CurveProfile_buttons_layout(), and ui_popup_context_menu_for_button().
| uiBut * uiDefBlockButN | ( | uiBlock * | block, |
| uiBlockCreateFunc | func, | ||
| void * | argN, | ||
| blender::StringRef | str, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| std::optional< blender::StringRef > | tip, | ||
| uiButArgNFree | func_argN_free_fn = MEM_freeN, | ||
| uiButArgNCopy | func_argN_copy_fn = MEM_dupallocN ) |
Definition at line 6351 of file interface.cc.
References uiBut::block_create_func, uiBut::func_argN, uiBut::func_argN_copy_fn, uiBut::func_argN_free_fn, str, UI_BTYPE_BLOCK, ui_but_update(), ui_def_but(), x, and y.
Referenced by template_add_button_search_menu(), uiTemplateComponentMenu(), and uiTemplateIconView().
| uiBut * uiDefBut | ( | uiBlock * | block, |
| int | type, | ||
| int | retval, | ||
| blender::StringRef | str, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| void * | poin, | ||
| float | min, | ||
| float | max, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5042 of file interface.cc.
References max, min, str, ui_but_update(), ui_def_but(), x, and y.
Referenced by blender::ui::AbstractViewItem::add_rename_button(), blender::ed::asset::shelf::add_tab_button(), blender::ui::PreviewGridItem::build_grid_tile_button(), blender::ui::TreeViewLayoutBuilder::build_row(), colorband_buttons_layout(), blender::ed::space_node::create_search_popup_block(), create_title_button(), curvemap_buttons_layout(), CurveProfile_buttons_layout(), blender::ed::vse::draw_channel_labels(), envelope_panel_draw(), file_add_preview_drag_but(), file_draw_list(), blender::ed::outliner::merged_element_search_menu(), blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_extra_info_row(), blender::ed::space_node::node_draw_hidden(), blender::ed::space_node::node_draw_panels(), blender::ed::space_node::node_find_menu(), blender::ed::outliner::outliner_buttons(), blender::ed::outliner::outliner_draw_overrides_rna_buts(), blender::ed::outliner::outliner_draw_userbuts(), uiLayout::prop(), blender::ed::space_node::reroute_node_draw_label(), uiLayout::separator(), template_common_search_menu(), template_ID(), ui_block_colorpicker(), ui_def_but_rna__menu(), ui_imageuser_layer_menu(), ui_imageuser_pass_menu(), ui_imageuser_slot_menu(), ui_imageuser_view_menu_multiview(), ui_imageuser_view_menu_rr(), ui_item_array(), ui_item_disabled(), ui_item_with_label(), ui_layout_add_padding_button(), ui_layout_box(), blender::ed::space_node::ui_node_menu_column(), UI_pie_menu_begin(), ui_template_list_layout_draw(), blender::ed::space_node::ui_template_node_link_menu(), uiDefAutoButR(), uiDefButBit(), uiDefButC(), uiDefButF(), uiDefButI(), uiDefButS(), uiItemL_(), uiItemProgressIndicator(), uiItemsFullEnumO_items(), uiItemSpacer(), uiLayoutListItemAddPadding(), uiTemplateHistogram(), uiTemplateMarker(), uiTemplateMovieClip(), uiTemplateNodeSocket(), uiTemplatePreview(), uiTemplateReportsBanner(), uiTemplateStatusInfo(), uiTemplateTrack(), uiTemplateVectorscope(), uiTemplateWaveform(), v3d_editvertex_buts(), v3d_object_dimension_buts(), wm_block_dialog_create(), wm_block_insert_unicode_create(), wm_block_search_menu(), wm_block_splash_add_label(), and wm_enum_search_menu().
Definition at line 5079 of file interface.cc.
References uiWidgetColors::text, bTheme::tui, UI_GetTheme(), UI_icon_alert_imbuf_get(), uiDefButImage(), ThemeUI::wcol_menu_back, ImBuf::x, x, ImBuf::y, and y.
Referenced by uiItemsAlertBox().
| uiBut * uiDefButBitC | ( | uiBlock * | block, |
| int | type, | ||
| int | bit, | ||
| int | retval, | ||
| blender::StringRef | str, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| char * | poin, | ||
| float | min, | ||
| float | max, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5431 of file interface.cc.
References max, min, str, UI_BUT_POIN_CHAR, uiDefButBit(), x, and y.
Referenced by block_create__close_file_dialog().
| uiBut * uiDefButBitI | ( | uiBlock * | block, |
| int | type, | ||
| int | bit, | ||
| int | retval, | ||
| blender::StringRef | str, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| int * | poin, | ||
| float | min, | ||
| float | max, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5323 of file interface.cc.
References max, min, str, UI_BUT_POIN_INT, uiDefButBit(), x, and y.
Referenced by curvemap_clipping_func(), and uiTemplateMarker().
| uiBut * uiDefButBitS | ( | uiBlock * | block, |
| int | type, | ||
| int | bit, | ||
| int | retval, | ||
| blender::StringRef | str, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| short * | poin, | ||
| float | min, | ||
| float | max, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5377 of file interface.cc.
References max, min, str, UI_BUT_POIN_SHORT, uiDefButBit(), x, and y.
Referenced by v3d_editvertex_buts().
| uiBut * uiDefButC | ( | uiBlock * | block, |
| int | type, | ||
| int | retval, | ||
| blender::StringRef | str, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| char * | poin, | ||
| float | min, | ||
| float | max, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5405 of file interface.cc.
References max, min, str, UI_BUT_POIN_CHAR, uiDefBut(), x, and y.
Referenced by blender::ed::asset::shelf::AssetCatalogSelectorTree::Item::build_row(), and ui_block_colorpicker().
| uiBut * uiDefButF | ( | uiBlock * | block, |
| int | type, | ||
| int | retval, | ||
| blender::StringRef | str, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| float * | poin, | ||
| float | min, | ||
| float | max, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5271 of file interface.cc.
References max, min, str, UI_BUT_POIN_FLOAT, uiDefBut(), x, and y.
Referenced by curvemap_buttons_layout(), curvemap_clipping_func(), CurveProfile_buttons_layout(), ui_block_colorpicker(), uiTemplateMarker(), uvedit_vertex_buttons(), v3d_editvertex_buts(), v3d_object_dimension_buts(), and view3d_panel_vgroup().
| uiBut * uiDefButI | ( | uiBlock * | block, |
| int | type, | ||
| int | retval, | ||
| blender::StringRef | str, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| int * | poin, | ||
| float | min, | ||
| float | max, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5297 of file interface.cc.
References max, min, str, UI_BUT_POIN_INT, uiDefBut(), x, and y.
Referenced by blender::ui::TreeViewLayoutBuilder::build_from_tree(), curvemap_buttons_layout(), ui_def_but_rna__menu(), and ui_template_list_layout_draw().
| uiBut * uiDefButImage | ( | uiBlock * | block, |
| void * | imbuf, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| const uchar | color[4] ) |
Definition at line 5062 of file interface.cc.
References uiBut::col, copy_v4_v4_uchar(), UI_BTYPE_IMAGE, ui_but_update(), ui_def_but(), x, and y.
Referenced by uiDefButAlert(), wm_block_about_create(), and wm_block_splash_create().
| uiBut * uiDefButO | ( | uiBlock * | block, |
| int | type, | ||
| blender::StringRefNull | opname, | ||
| wmOperatorCallContext | opcontext, | ||
| const std::optional< blender::StringRef > | str, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5515 of file interface.cc.
References blender::StringRefNull::c_str(), ot, str, uiDefButO_ptr(), WM_operatortype_find(), x, and y.
Referenced by uiTemplateReportsBanner().
| uiBut * uiDefButO_ptr | ( | uiBlock * | block, |
| int | type, | ||
| wmOperatorType * | ot, | ||
| wmOperatorCallContext | opcontext, | ||
| blender::StringRef | str, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5500 of file interface.cc.
References ot, str, ui_but_update(), ui_def_but_operator_ptr(), x, and y.
Referenced by uiDefButO(), uiItemFullO_ptr_ex(), and view3d_panel_vgroup().
| uiBut * uiDefButR | ( | uiBlock * | block, |
| int | type, | ||
| int | retval, | ||
| std::optional< blender::StringRef > | str, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| int | index, | ||
| float | min, | ||
| float | max, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5459 of file interface.cc.
References max, min, ptr, str, ui_but_update(), ui_def_but_rna_propname(), x, and y.
Referenced by ANIM_channel_draw_widgets(), blender::ed::vse::draw_channel_labels(), ED_area_header_switchbutton(), ED_file_path_button(), file_panel_execution_buttons_draw(), graph_draw_driven_property_enabled_btn(), graph_panel_key_properties(), blender::ed::space_node::node_draw_panels(), template_ID(), uiTemplatePalette(), and v3d_editvertex_buts().
| uiBut * uiDefButR_prop | ( | uiBlock * | block, |
| int | type, | ||
| int | retval, | ||
| std::optional< blender::StringRef > | str, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| int | index, | ||
| float | min, | ||
| float | max, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5479 of file interface.cc.
References max, min, ptr, str, ui_but_update(), ui_def_but_rna(), x, and y.
Referenced by uiLayout::prop(), template_ID_tabs(), ui_block_colorpicker(), ui_colorpicker_circle(), ui_colorpicker_square(), ui_item_array(), ui_item_enum_expand_elem_exec(), ui_item_with_label(), ui_template_list_layout_draw(), uiDefAutoButR(), and uiTemplateColorPicker().
| uiBut * uiDefButS | ( | uiBlock * | block, |
| int | type, | ||
| int | retval, | ||
| blender::StringRef | str, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| short * | poin, | ||
| float | min, | ||
| float | max, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5351 of file interface.cc.
References max, min, str, UI_BUT_POIN_SHORT, uiDefBut(), x, and y.
Referenced by colorband_buttons_layout(), ui_imageuser_layer_menu(), ui_imageuser_pass_menu(), ui_imageuser_view_menu_multiview(), ui_imageuser_view_menu_rr(), and uiTemplatePreview().
| uiBut * uiDefIconBlockBut | ( | uiBlock * | block, |
| uiBlockCreateFunc | func, | ||
| void * | arg, | ||
| int | retval, | ||
| int | icon, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| std::optional< blender::StringRef > | tip ) |
Block button containing icon.
Definition at line 6440 of file interface.cc.
References uiBut::block_create_func, uiBut::drawflag, UI_BTYPE_BLOCK, UI_BUT_ICON_LEFT, ui_but_update(), ui_def_but(), ui_def_but_icon(), UI_HAS_ICON, x, and y.
Referenced by colorband_buttons_layout(), curvemap_buttons_layout(), and CurveProfile_buttons_layout().
| uiBut * uiDefIconBut | ( | uiBlock * | block, |
| int | type, | ||
| int | retval, | ||
| int | icon, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| void * | poin, | ||
| float | min, | ||
| float | max, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5533 of file interface.cc.
References max, min, ui_but_update_and_icon_set(), ui_def_but(), x, and y.
Referenced by curvemap_buttons_layout(), CurveProfile_buttons_layout(), blender::ed::space_node::draw_link_errors(), envelope_panel_draw(), file_add_icon_but(), file_add_overlay_icon_but(), fmodifier_panel_header(), graph_draw_driver_settings_panel(), blender::ed::space_node::node_add_error_message_button(), blender::ed::space_node::node_add_unsupported_compositor_operation_error_message_button(), blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_extra_info_row(), blender::ed::space_node::node_draw_hidden(), blender::ed::space_node::node_draw_panels(), blender::ed::space_node::node_socket_tooltip_set(), blender::ed::outliner::outliner_draw_mode_column_toggle(), blender::ed::outliner::outliner_draw_warning_tree_element(), template_ID(), blender::ed::outliner::tselem_draw_icon(), uiDefIconButBit(), uiDefIconButI(), uiDefIconButS(), uiItemDecoratorR_prop(), uiItemL_(), uiItemsFullEnumO_items(), uiTemplateIcon(), uiTemplateIconView(), uiTemplateStatusInfo(), and uiTemplateTextureShow().
| uiBut * uiDefIconButBitC | ( | uiBlock * | block, |
| int | type, | ||
| int | bit, | ||
| int | retval, | ||
| int | icon, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| char * | poin, | ||
| float | min, | ||
| float | max, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5715 of file interface.cc.
References max, min, UI_BUT_POIN_CHAR, uiDefIconButBit(), x, and y.
Referenced by draw_setting_widget().
| uiBut * uiDefIconButBitI | ( | uiBlock * | block, |
| int | type, | ||
| int | bit, | ||
| int | retval, | ||
| int | icon, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| int * | poin, | ||
| float | min, | ||
| float | max, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5633 of file interface.cc.
References max, min, UI_BUT_POIN_INT, uiDefIconButBit(), x, and y.
Referenced by draw_setting_widget(), modifier_panel_header(), blender::ed::outliner::outliner_draw_restrictbuts(), ui_template_list_layout_draw(), and uiTemplateMarker().
| uiBut * uiDefIconButBitS | ( | uiBlock * | block, |
| int | type, | ||
| int | bit, | ||
| int | retval, | ||
| int | icon, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| short * | poin, | ||
| float | min, | ||
| float | max, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5687 of file interface.cc.
References max, min, UI_BUT_POIN_SHORT, uiDefIconButBit(), x, and y.
Referenced by draw_setting_widget(), blender::ed::outliner::outliner_draw_restrictbuts(), and blender::ed::outliner::outliner_draw_userbuts().
| uiBut * uiDefIconButI | ( | uiBlock * | block, |
| int | type, | ||
| int | retval, | ||
| int | icon, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| int * | poin, | ||
| float | min, | ||
| float | max, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5607 of file interface.cc.
References max, min, UI_BUT_POIN_INT, uiDefIconBut(), x, and y.
Referenced by blender::ui::TreeViewLayoutBuilder::build_from_tree(), ui_template_list_layout_draw(), uiTemplateHistogram(), uiTemplateTrack(), uiTemplateVectorscope(), and uiTemplateWaveform().
| uiBut * uiDefIconButO | ( | uiBlock * | block, |
| int | type, | ||
| blender::StringRefNull | opname, | ||
| wmOperatorCallContext | opcontext, | ||
| int | icon, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5799 of file interface.cc.
References blender::StringRefNull::c_str(), ot, uiDefIconButO_ptr(), WM_operatortype_find(), x, and y.
Referenced by ANIM_channel_draw_widgets(), blender::ed::outliner::outliner_draw_overrides_restrictbuts(), template_ID(), template_keymap_item_properties(), ui_block_colorpicker(), ui_item_with_label(), uiTemplateCryptoPicker(), uiTemplatePalette(), uiTemplateReportsBanner(), and uiTemplateRunningJobs().
| uiBut * uiDefIconButO_ptr | ( | uiBlock * | block, |
| int | type, | ||
| wmOperatorType * | ot, | ||
| wmOperatorCallContext | opcontext, | ||
| int | icon, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5784 of file interface.cc.
References ot, ui_but_update_and_icon_set(), ui_def_but_operator_ptr(), x, and y.
Referenced by uiDefIconButO(), uiDefIconTextButO(), and uiItemFullO_ptr_ex().
| uiBut * uiDefIconButR | ( | uiBlock * | block, |
| int | type, | ||
| int | retval, | ||
| int | icon, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| int | index, | ||
| float | min, | ||
| float | max, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5743 of file interface.cc.
References max, min, ptr, ui_but_update_and_icon_set(), ui_def_but_rna_propname(), x, and y.
Referenced by template_ID().
| uiBut * uiDefIconButR_prop | ( | uiBlock * | block, |
| int | type, | ||
| int | retval, | ||
| int | icon, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| int | index, | ||
| float | min, | ||
| float | max, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5763 of file interface.cc.
References max, min, ptr, ui_but_update_and_icon_set(), ui_def_but_rna(), x, and y.
Referenced by clip_draw_dopesheet_channels(), blender::ed::vse::draw_channel_widget_lock(), blender::ed::vse::draw_channel_widget_mute(), blender::ed::outliner::outliner_draw_restrictbuts(), uiLayout::prop(), ui_icon_view_menu_cb(), ui_item_enum_expand_elem_exec(), and uiDefAutoButR().
| uiBut * uiDefIconButS | ( | uiBlock * | block, |
| int | type, | ||
| int | retval, | ||
| int | icon, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| short * | poin, | ||
| float | min, | ||
| float | max, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5661 of file interface.cc.
References max, min, UI_BUT_POIN_SHORT, uiDefIconBut(), x, and y.
Referenced by uiTemplatePreview().
| uiBut * uiDefIconMenuBut | ( | uiBlock * | block, |
| uiMenuCreateFunc | func, | ||
| void * | arg, | ||
| int | icon, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 6418 of file interface.cc.
References uiBut::drawflag, uiBut::menu_create_func, UI_BTYPE_PULLDOWN, UI_BUT_ICON_LEFT, ui_but_update(), ui_def_but(), ui_def_but_icon(), UI_HAS_ICON, x, and y.
Referenced by ui_item_menu(), uiTemplateNodeLink(), and uiTemplatePalette().
| uiBut * uiDefIconPreviewBut | ( | uiBlock * | block, |
| int | type, | ||
| int | retval, | ||
| int | icon, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| void * | poin, | ||
| float | min, | ||
| float | max, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5550 of file interface.cc.
References uiBut::drawflag, max, min, UI_BUT_ICON_LEFT, UI_BUT_ICON_PREVIEW, UI_BUT_NO_PREVIEW_PADDING, ui_but_update(), ui_def_but(), ui_def_but_icon(), UI_HAS_ICON, x, and y.
Referenced by file_add_icon_but().
| uiBut * uiDefIconTextBut | ( | uiBlock * | block, |
| int | type, | ||
| int | retval, | ||
| int | icon, | ||
| blender::StringRef | str, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| void * | poin, | ||
| float | min, | ||
| float | max, | ||
| std::optional< blender::StringRef > | tip ) |
Button containing both string label and icon.
Definition at line 5814 of file interface.cc.
References uiBut::drawflag, max, min, str, UI_BUT_ICON_LEFT, ui_but_update_and_icon_set(), ui_def_but(), x, and y.
Referenced by asset_view_draw_item(), block_create_autorun_warning(), colorband_buttons_layout(), colorband_tools_fn(), create_title_button(), curve_profile_presets_fn(), curve_profile_tools_fn(), curvemap_tools_func(), CurveProfile_buttons_layout(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_byte_color(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_content_cell(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_float4x4(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_float_vector(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_int_vector(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_left_column_cell(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_top_row_cell(), graph_draw_driver_settings_panel(), uiLayout::panel_prop(), save_file_overwrite_cancel_button(), save_file_overwrite_confirm_button(), save_file_overwrite_saveas_button(), template_ID(), template_id_def_new_but(), template_operator_property_buts_draw_single(), template_texture_user_menu(), blender::ed::space_node::ui_node_menu_column(), UI_pie_menu_begin(), ui_pie_menu_level_create(), UI_popup_block_template_confirm_op(), ui_popup_context_menu_for_button(), uiDefIconTextButI(), uiDefIconTextButS(), uiItemL_(), uiTemplateRunningJobs(), wm_block_file_close_cancel_button(), wm_block_file_close_discard_button(), wm_block_file_close_save_button(), and wm_block_insert_unicode_create().
| uiBut * uiDefIconTextButI | ( | uiBlock * | block, |
| int | type, | ||
| int | retval, | ||
| int | icon, | ||
| blender::StringRef | str, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| int * | poin, | ||
| float | min, | ||
| float | max, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5833 of file interface.cc.
References max, min, str, UI_BUT_POIN_INT, uiDefIconTextBut(), x, and y.
Referenced by ui_def_but_rna__menu().
| uiBut * uiDefIconTextButO | ( | uiBlock * | block, |
| int | type, | ||
| blender::StringRefNull | opname, | ||
| wmOperatorCallContext | opcontext, | ||
| int | icon, | ||
| blender::StringRef | str, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5951 of file interface.cc.
References blender::StringRefNull::c_str(), ot, str, uiDefIconButO_ptr(), uiDefIconTextButO_ptr(), WM_operatortype_find(), x, and y.
Referenced by template_ID(), and template_id_def_new_but().
| uiBut * uiDefIconTextButO_ptr | ( | uiBlock * | block, |
| int | type, | ||
| wmOperatorType * | ot, | ||
| wmOperatorCallContext | opcontext, | ||
| int | icon, | ||
| blender::StringRef | str, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5934 of file interface.cc.
References uiBut::drawflag, ot, str, UI_BUT_ICON_LEFT, ui_but_update_and_icon_set(), ui_def_but_operator_ptr(), x, and y.
Referenced by file_draw_invalid_asset_library_hint(), uiDefIconTextButO(), and uiItemFullO_ptr_ex().
| uiBut * uiDefIconTextButR | ( | uiBlock * | block, |
| int | type, | ||
| int | retval, | ||
| int | icon, | ||
| std::optional< blender::StringRefNull > | str, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| int | index, | ||
| float | min, | ||
| float | max, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5890 of file interface.cc.
References uiBut::drawflag, max, min, ptr, str, UI_BUT_ICON_LEFT, ui_but_update_and_icon_set(), ui_def_but_rna_propname(), x, and y.
Referenced by blender::nodes::add_attribute_search_button(), blender::nodes::add_layer_name_search_button(), blender::ed::space_node::node_geometry_add_attribute_search_button(), and blender::ed::space_node::node_geometry_add_layer_search_button().
| uiBut * uiDefIconTextButR_prop | ( | uiBlock * | block, |
| int | type, | ||
| int | retval, | ||
| int | icon, | ||
| std::optional< blender::StringRef > | str, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| int | index, | ||
| float | min, | ||
| float | max, | ||
| std::optional< blender::StringRef > | tip ) |
References C, max, min, ot, ptr, str, x, and y.
Referenced by uiLayout::prop(), ui_icon_view_menu_cb(), ui_item_enum_expand_elem_exec(), ui_template_list_layout_draw(), and uiDefAutoButR().
| uiBut * uiDefIconTextButS | ( | uiBlock * | block, |
| int | type, | ||
| int | retval, | ||
| int | icon, | ||
| blender::StringRef | str, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| short * | poin, | ||
| float | min, | ||
| float | max, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 5861 of file interface.cc.
References max, min, str, UI_BUT_POIN_SHORT, uiDefIconTextBut(), x, and y.
Referenced by ui_imageuser_slot_menu().
| uiBut * uiDefIconTextMenuBut | ( | uiBlock * | block, |
| uiMenuCreateFunc | func, | ||
| void * | arg, | ||
| int | icon, | ||
| blender::StringRef | str, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 6393 of file interface.cc.
References uiBut::drawflag, uiBut::menu_create_func, str, UI_BTYPE_PULLDOWN, UI_BUT_ICON_LEFT, ui_but_submenu_enable(), ui_but_update(), ui_def_but(), ui_def_but_icon(), UI_HAS_ICON, x, and y.
Referenced by ui_item_menu(), and uiTemplateTextureUser().
| uiBut * uiDefMenuBut | ( | uiBlock * | block, |
| uiMenuCreateFunc | func, | ||
| void * | arg, | ||
| blender::StringRef | str, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| std::optional< blender::StringRef > | tip ) |
Definition at line 6376 of file interface.cc.
References uiBut::menu_create_func, str, UI_BTYPE_PULLDOWN, ui_but_update(), ui_def_but(), x, and y.
Referenced by ui_item_menu(), uiblock_layer_pass_buttons(), uiTemplateNodeLink(), and uiTemplateTextureUser().
| uiBut * uiDefSearchBut | ( | uiBlock * | block, |
| void * | arg, | ||
| int | retval, | ||
| int | icon, | ||
| int | maxncpy, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| std::optional< blender::StringRef > | tip ) |
| arg | A pointer to string/name, use UI_but_func_search_set() below to make this work. |
Definition at line 6464 of file interface.cc.
References uiBut::drawflag, UI_BTYPE_SEARCH_MENU, UI_BUT_ICON_LEFT, UI_BUT_TEXT_LEFT, ui_but_update(), ui_def_but(), ui_def_but_icon(), UI_HAS_ICON, x, and y.
Referenced by blender::ed::space_node::create_search_popup_block(), blender::ed::outliner::merged_element_search_menu(), blender::ed::space_node::node_find_menu(), template_common_search_menu(), uiDefSearchButO_ptr(), uiTemplateMenuSearch(), uiTemplateOperatorSearch(), and wm_block_search_menu().
| uiBut * uiDefSearchButO_ptr | ( | uiBlock * | block, |
| wmOperatorType * | ot, | ||
| IDProperty * | properties, | ||
| void * | arg, | ||
| int | retval, | ||
| int | icon, | ||
| int | maxncpy, | ||
| int | x, | ||
| int | y, | ||
| short | width, | ||
| short | height, | ||
| std::optional< blender::StringRef > | tip ) |
Same parameters as for uiDefSearchBut, with additional operator type and properties, used by callback to call again the right op with the right options (properties values).
Definition at line 6650 of file interface.cc.
References IDP_CopyProperty(), uiBut::opcontext, operator_enum_search_exec_fn(), operator_enum_search_update_fn(), uiBut::optype, ot, ptr, UI_but_func_search_set(), UI_but_operator_ptr_ensure(), ui_searchbox_create_generic(), uiDefSearchBut(), WM_OP_EXEC_DEFAULT, x, and y.
Referenced by wm_enum_search_menu().
| void uiTemplateAction | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| ID * | id, | ||
| const char * | newop, | ||
| const char * | unlinkop, | ||
| std::optional< blender::StringRef > | text ) |
Action selector.
This is a specialization of uiTemplateID, hard-coded to assign Actions to the given ID. Such a specialization is necessary, as the RNA property (id.animation_data.action) does not exist when the ID's adt pointer is nullptr. In that case uiTemplateID will not be able to find the RNA type of that property, which in turn it needs to determine the type of IDs to show.
Definition at line 1600 of file interface_template_id.cc.
References BKE_animdata_from_id(), BLI_assert, C, CTX_data_main(), TemplateID::filter, flag, ID_AC, id_can_have_animdata(), TemplateID::idcode, TemplateID::idlb, ID::name, TemplateID::prop, PROP_POINTER, TemplateID::prv_cols, TemplateID::prv_rows, TemplateID::ptr, RNA_id_pointer_create(), RNA_property_type(), RNA_struct_type_find_property(), RNA_warning, uiLayout::row(), TemplateID::scale, template_ID(), UI_ID_ADD_NEW, UI_ID_BROWSE, UI_ID_DELETE, UI_ID_RENAME, UI_TEMPLATE_ID_FILTER_ALL, and which_libbase().
| void uiTemplateAnyID | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| blender::StringRefNull | proptypename, | ||
| std::optional< blender::StringRef > | text ) |
This is for selecting the type of ID-block to use, and then from the relevant type choosing the block to use.
| propname | property identifier for property that ID-pointer gets stored to. |
| proptypename | property identifier for property used to determine the type of ID-pointer that can be used. |
Definition at line 1763 of file interface_template_id.cc.
References blender::StringRefNull::c_str(), IFACE_, uiLayout::label(), uiLayout::prop(), PROP_ENUM, PROP_POINTER, ptr, RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiLayout::row(), split(), uiLayout::split(), UI_ITEM_NONE, UI_ITEM_R_ICON_ONLY, UI_LAYOUT_ALIGN_EXPAND, UI_LAYOUT_ALIGN_LEFT, and uiLayoutSetAlignment().
Referenced by graph_panel_driverVar__singleProp().
| void uiTemplateAssetView | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| const char * | list_id, | ||
| PointerRNA * | asset_library_dataptr, | ||
| const char * | asset_library_propname, | ||
| PointerRNA * | assets_dataptr, | ||
| const char * | assets_propname, | ||
| PointerRNA * | active_dataptr, | ||
| const char * | active_propname, | ||
| const blender::ed::asset::AssetFilterSettings * | filter_settings, | ||
| int | display_flags, | ||
| const char * | activate_opname, | ||
| PointerRNA * | r_activate_op_properties, | ||
| const char * | drag_opname, | ||
| PointerRNA * | r_drag_op_properties ) |
Definition at line 218 of file interface_template_asset_view.cc.
References ASSET_LIBRARY_LOCAL, AssetViewListData::asset_library_ref, C, col, uiLayout::column(), CTX_wm_screen(), AssetViewListData::filter_settings, blender::ed::asset::library_reference_from_enum_value(), MEM_freeN(), MEM_mallocN(), uiLayout::op(), populate_asset_collection(), uiLayout::prop(), ptr, RNA_NO_INDEX, RNA_property_enum_get(), RNA_struct_find_property(), RNA_warning, AssetViewListData::screen, AssetViewListData::show_names, blender::ed::asset::list::size(), blender::ed::asset::list::storage_fetch(), AssetLibraryReference::type, UI_ITEM_NONE, UI_list_custom_activate_operator_set(), UI_list_custom_drag_operator_set(), UI_TEMPLATE_ASSET_DRAW_NO_FILTER, UI_TEMPLATE_ASSET_DRAW_NO_LIBRARY, UI_TEMPLATE_ASSET_DRAW_NO_NAMES, UI_TEMPLATE_LIST_NO_FILTER_OPTIONS, UI_TEMPLATE_LIST_NO_GRIP, UI_TEMPLATE_LIST_NO_NAMES, uiLayoutSetScaleX(), uiLayoutSetScaleY(), UILST_LAYOUT_BIG_PREVIEW_GRID, and uiTemplateList_ex().
Definition at line 461 of file interface_template_bone_collection_tree.cc.
References BLI_assert, blender::ui::TreeViewBuilder::build_tree_view(), C, ED_armature_context(), GS, bArmature::id, ID_AR, ID::name, blender::ui::AbstractView::set_context_menu_title(), blender::ui::AbstractTreeView::set_default_rows(), UI_block_add_view(), and uiLayoutGetBlock().
| void uiTemplateCacheFile | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname ) |
Draw the main CacheFile properties and operators (file path, scale, etc.), that is those which do not have their own dedicated template functions.
Definition at line 220 of file interface_template_cache_file.cc.
References BCONTEXT_CONSTRAINT, C, CTX_wm_space_properties(), PointerRNA::data, IFACE_, SpaceProperties::mainb, uiLayout::op(), uiLayout::prop(), ptr, uiLayout::row(), UI_ITEM_NONE, uiLayoutSetContextPointer(), uiLayoutSetPropSep(), uiTemplateCacheFilePointer(), and uiTemplateID().
Referenced by panel_draw().
| void uiTemplateCacheFileLayers | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| PointerRNA * | fileptr ) |
Draw the override layers related properties of the CacheFile.
Definition at line 155 of file interface_template_cache_file.cc.
References BLI_listbase_count(), C, col, uiLayout::column(), PointerRNA::data, CacheFile::layers, RNA_pointer_is_null(), uiLayout::row(), UI_TEMPLATE_LIST_FLAG_NONE, uiLayoutSetContextPointer(), UILST_LAYOUT_DEFAULT, and uiTemplateList().
Referenced by override_layers_panel_draw().
| bool uiTemplateCacheFilePointer | ( | PointerRNA * | ptr, |
| blender::StringRefNull | propname, | ||
| PointerRNA * | r_file_ptr ) |
Lookup the CacheFile PointerRNA of the given pointer and return it in the output parameter. Returns true if ptr has a RNACacheFile, false otherwise. If false, the output parameter is not initialized.
Definition at line 194 of file interface_template_cache_file.cc.
References blender::StringRefNull::c_str(), printf, PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), and RNA_struct_identifier().
Referenced by override_layers_panel_draw(), render_procedural_panel_draw(), time_panel_draw(), uiTemplateCacheFile(), and velocity_panel_draw().
| void uiTemplateCacheFileProcedural | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| PointerRNA * | fileptr ) |
Draw the render procedural related properties of the CacheFile.
Definition at line 46 of file interface_template_cache_file.cc.
References BKE_scene_uses_cycles(), BKE_scene_uses_cycles_experimental_features(), C, CACHEFILE_TYPE_ALEMBIC, CTX_data_depsgraph_pointer(), CTX_data_engine_type(), CTX_data_scene(), PointerRNA::data, DEG_get_evaluated(), uiLayout::label(), uiLayout::prop(), RE_engine_supports_alembic_procedural(), RNA_boolean_get(), RNA_pointer_is_null(), uiLayout::row(), RPT_, CacheFile::type, UI_ITEM_NONE, uiLayoutSetActive(), uiLayoutSetContextPointer(), and uiLayoutSetEnabled().
Referenced by render_procedural_panel_draw().
| void uiTemplateCacheFileTimeSettings | ( | uiLayout * | layout, |
| PointerRNA * | fileptr ) |
Draw the time related properties of the CacheFile.
Definition at line 101 of file interface_template_cache_file.cc.
References IFACE_, uiLayout::prop(), RNA_boolean_get(), RNA_pointer_is_null(), uiLayout::row(), UI_ITEM_NONE, uiItemDecoratorR(), uiLayoutSetActive(), uiLayoutSetContextPointer(), and uiLayoutSetPropDecorate().
Referenced by time_panel_draw().
| void uiTemplateCacheFileVelocity | ( | uiLayout * | layout, |
| PointerRNA * | fileptr ) |
Draw the velocity related properties of the CacheFile.
Definition at line 33 of file interface_template_cache_file.cc.
References uiLayout::prop(), RNA_pointer_is_null(), UI_ITEM_NONE, and uiLayoutSetContextPointer().
Referenced by velocity_panel_draw().
Definition at line 410 of file interface_template_operator_property.cc.
References Collection::active_exporter_index, BLI_findlink(), BLI_listbase_is_empty(), PanelLayout::body, C, col, uiLayout::column(), CTX_data_collection(), data, draw_export_controls(), draw_export_properties(), draw_exporter_item(), uiListType::draw_item, blender::bke::FileHandlerType::export_operator, Collection::exporters, blender::bke::file_handler_find(), blender::bke::FileHandlerType::get_default_filename(), PanelLayout::header, Collection::id, uiListType::idname, IFACE_, blender::bke::FileHandlerType::label, MEM_callocN(), minimal_operator_create(), ID::name, ot, uiLayout::panel_prop(), RNA_id_pointer_create(), RNA_int_set(), RNA_pointer_create_discrete(), uiLayout::row(), STRNCPY(), UI_block_set_active_operator(), UI_TEMPLATE_LIST_FLAG_NONE, uiLayoutGetBlock(), uiLayoutSetEnabled(), UILST_LAYOUT_DEFAULT, uiTemplateList(), WM_operatortype_find(), and WM_uilisttype_add().
| void uiTemplateColormanagedViewSettings | ( | uiLayout * | layout, |
| bContext * | C, | ||
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname ) |
Definition at line 36 of file interface_template_color_management.cc.
References blender::StringRefNull::c_str(), col, COLORMANAGE_VIEW_USE_CURVES, COLORMANAGE_VIEW_USE_WHITE_BALANCE, uiLayout::column(), PointerRNA::data, ColorManagedViewSettings::flag, IFACE_, printf, ptr, RNA_property_pointer_get(), RNA_struct_find_property(), RNA_struct_identifier(), UI_ITEM_NONE, and uiTemplateCurveMapping().
Referenced by uiTemplateImageSettings().
| void uiTemplateColorPicker | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| bool | value_slider, | ||
| bool | lock, | ||
| bool | lock_luminosity, | ||
| bool | cubic ) |
This template now follows User Preference for type - name is not correct anymore.
Definition at line 27 of file interface_template_color_picker.cc.
References blender::StringRefNull::c_str(), col, uiLayout::column(), uiBut::custom_data, uiButHSVCube::gradient_type, len_v3(), lock, ColorPicker::luminosity_lock_value, ptr, RNA_property_float_get_array(), RNA_property_float_ui_range(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiLayout::separator(), step, U, ui_block_colorpicker_create(), UI_BTYPE_HSVCIRCLE, UI_BTYPE_HSVCUBE, UI_GRAD_HS, UI_GRAD_HV, UI_GRAD_L_ALT, UI_GRAD_SV, UI_GRAD_V_ALT, UI_SCALE_FAC, uiDefButR_prop(), uiLayoutGetBlock(), ColorPicker::use_color_cubic, ColorPicker::use_color_lock, ColorPicker::use_luminosity_lock, USER_CP_CIRCLE_HSL, USER_CP_CIRCLE_HSV, USER_CP_SQUARE_HS, USER_CP_SQUARE_HV, USER_CP_SQUARE_SV, and WHEEL_SIZE.
Referenced by blender::nodes::node_composite_rgb_cc::cmp_node_rgb_declare(), blender::nodes::node_fn_input_color_cc::node_declare(), and blender::nodes::node_shader_rgb_cc::node_declare().
| void uiTemplateColorRamp | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| bool | expand ) |
Definition at line 394 of file interface_template_color_ramp.cc.
References uiLayout::absolute_block(), blender::StringRefNull::c_str(), colorband_buttons_layout(), PointerRNA::data, ERROR_LIBDATA_MESSAGE, ID_IS_EDITABLE, PointerRNA::owner_id, PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_is_a(), PointerRNA::type, UI_block_lock_clear(), UI_block_lock_set(), UI_UNIT_X, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by blender::ed::space_node::node_buts_colorramp(), and blender::panel_draw().
| void uiTemplateColorspaceSettings | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname ) |
Definition at line 19 of file interface_template_color_management.cc.
References blender::StringRefNull::c_str(), IFACE_, printf, uiLayout::prop(), ptr, RNA_property_pointer_get(), RNA_struct_find_property(), RNA_struct_identifier(), and UI_ITEM_NONE.
Referenced by blender::nodes::node_composite_movieclip_cc::node_composit_buts_movieclip_ex(), uiTemplateImage(), and uiTemplateMovieClip().
| void uiTemplateComponentMenu | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| blender::StringRef | name ) |
Definition at line 50 of file interface_template_component_menu.cc.
References but_func_argN_copy(), but_func_argN_free(), blender::StringRefNull::c_str(), component_menu(), ComponentMenuArgs::propname, ComponentMenuArgs::ptr, ptr, RNA_struct_find_property(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, STRNCPY(), UI_block_align_begin(), UI_block_align_end(), UI_UNIT_X, UI_UNIT_Y, uiDefBlockButN(), and uiLayoutGetBlock().
Referenced by blender::ed::space_node::std_node_socket_draw().
| void uiTemplateConstraintHeader | ( | uiLayout * | layout, |
| PointerRNA * | ptr ) |
Definition at line 147 of file interface_template_constraint.cc.
References draw_constraint_header(), ERROR_LIBDATA_MESSAGE, GS, Object::id, ID_IS_EDITABLE, ID_OB, ID::name, ptr, RNA_struct_is_a(), RNA_warning, UI_block_lock_set(), and uiLayoutGetBlock().
Check if the constraint panels don't match the data and rebuild the panels if so.
Definition at line 261 of file interface_template_constraint.cc.
References BLI_assert, bone_constraint_panel_id(), C, CONSTRAINT_IK_TEMP, constraint_reorder(), CONSTRAINT_TYPE_KINEMATIC, CONSTRAINT_TYPE_NULL, constraints, Object::constraints, blender::ed::object::context_active_object(), CTX_wm_region(), data, ListBase::first, PanelType::flag, get_constraint_expand_flag(), PanelType::get_list_data_expand_flag, Object::id, LISTBASE_FOREACH, MAX_NAME, bConstraint::next, Panel::next, object_constraint_panel_id(), PANEL_TYPE_INSTANCED, ARegion::panels, blender::ed::object::pose_constraint_list(), PanelType::reorder, RNA_pointer_create_discrete(), set_constraint_expand_flag(), PanelType::set_list_data_expand_flag, Panel::type, UI_panel_add_instanced(), UI_panel_custom_data_set(), UI_panel_list_matches_data(), and UI_panels_free_instanced().
| void uiTemplateCryptoPicker | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| int | icon ) |
Definition at line 343 of file interface_template_color_picker.cc.
References blender::StringRefNull::c_str(), ptr, RNA_property_ui_description(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, UI_BTYPE_BUT, UI_UNIT_X, UI_UNIT_Y, uiDefIconButO(), uiLayoutGetBlock(), and WM_OP_INVOKE_DEFAULT.
Referenced by blender::nodes::node_composite_colorbalance_cc::cmp_node_colorbalance_declare(), blender::ed::space_node::node_composit_buts_cryptomatte(), and blender::ed::space_node::node_composit_buts_cryptomatte_legacy().
| void uiTemplateCurveMapping | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| int | type, | ||
| bool | levels, | ||
| bool | brush, | ||
| bool | neg_slope, | ||
| bool | tone ) |
Definition at line 773 of file interface_template_curve_mapping.cc.
References blender::StringRefNull::c_str(), curvemap_buttons_layout(), PointerRNA::data, ERROR_LIBDATA_MESSAGE, ID_IS_EDITABLE, PointerRNA::owner_id, PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_struct_is_a(), RNA_warning, PointerRNA::type, UI_block_lock_clear(), UI_block_lock_set(), and uiLayoutGetBlock().
Referenced by blender::modifier::greasepencil::draw_custom_curve_settings(), falloff_panel_draw(), falloff_panel_draw(), falloff_panel_draw(), falloff_panel_draw(), blender::ed::sculpt_paint::greasepencil::grease_pencil_interpolate_sequence_ui(), blender::ed::sculpt_paint::mask::mask_from_cavity_ui(), modifier_grease_pencil_curve_panel_draw(), blender::ed::space_node::node_buts_curvecol(), blender::ed::space_node::node_buts_curvefloat(), blender::ed::space_node::node_buts_curvevec(), blender::nodes::node_composite_vector_curves_cc::node_buts_curvevec(), blender::ed::space_node::node_buts_time(), blender::ed::space_node::node_composit_buts_huecorrect(), blender::panel_draw(), and uiTemplateColormanagedViewSettings().
| void uiTemplateCurveProfile | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname ) |
Template for a path creation widget intended for custom bevel profiles. This section is quite similar to uiTemplateCurveMapping, but with reduced complexity.
Definition at line 519 of file interface_template_curve_profile.cc.
References blender::StringRefNull::c_str(), CurveProfile_buttons_layout(), PointerRNA::data, ERROR_LIBDATA_MESSAGE, ID_IS_EDITABLE, PointerRNA::owner_id, PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_struct_is_a(), RNA_warning, PointerRNA::type, UI_block_lock_clear(), UI_block_lock_set(), and uiLayoutGetBlock().
Referenced by edbm_bevel_ui(), and profile_panel_draw().
Definition at line 75 of file view3d_header.cc.
References BKE_editmesh_from_object(), C, CTX_data_edit_object(), OB_MESH, uiLayout::op(), ot, RNA_enum_set(), uiLayout::row(), SCE_SELECT_EDGE, SCE_SELECT_FACE, SCE_SELECT_VERTEX, BMEditMesh::selectmode, Object::type, UI_ITEM_NONE, UI_ITEM_O_DEPRESS, WM_OP_INVOKE_DEFAULT, and WM_operatortype_find().
Referenced by uiTemplateHeader3D_mode().
| bool uiTemplateEventFromKeymapItem | ( | uiLayout * | layout, |
| blender::StringRefNull | text, | ||
| const wmKeyMapItem * | kmi, | ||
| bool | text_fallback ) |
Definition at line 164 of file interface_template_event.cc.
References ARRAY_SIZE, BLT_I18NCONTEXT_ID_WINDOWMANAGER, blender::StringRefNull::c_str(), CTX_IFACE_, KM_MOD_NUM, uiLayout::label(), uiLayout::separator(), wmKeyMapItem::type, ui_event_icon_offset(), UI_icon_from_keymap_item(), and WM_key_event_string().
Referenced by uiTemplateStatusBarModalItem().
| void uiTemplateFileSelectPath | ( | uiLayout * | layout, |
| bContext * | C, | ||
| FileSelectParams * | params ) |
Definition at line 306 of file interface_templates.cc.
References C, CTX_wm_screen(), CTX_wm_space_file(), ED_file_path_button(), params, and uiLayoutGetBlock().
| void uiTemplateGpencilColorPreview | ( | uiLayout * | layout, |
| bContext * | C, | ||
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| int | rows, | ||
| int | cols, | ||
| float | scale, | ||
| int | filter ) |
Definition at line 1708 of file interface_template_id.cc.
References C, filter, ptr, UI_ID_BROWSE, UI_ID_DELETE, UI_ID_PREVIEWS, and ui_template_id().
| uiLayout * uiTemplateGpencilModifier | ( | uiLayout * | layout, |
| bContext * | C, | ||
| PointerRNA * | ptr ) |
Definition at line 539 of file interface_template_grease_pencil_layer_tree.cc.
References blender::ui::TreeViewBuilder::build_tree_view(), C, blender::ed::greasepencil::from_context(), blender::ui::AbstractView::set_context_menu_title(), blender::ui::AbstractTreeView::set_default_rows(), UI_block_add_view(), and uiLayoutGetBlock().
Definition at line 245 of file interface_templates.cc.
References uiLayout::absolute_block(), C, and ED_area_header_switchbutton().
Definition at line 136 of file view3d_header.cc.
References BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), C, CTX_data_edit_object(), CTX_data_scene(), CTX_data_view_layer(), ELEM, Object::mode, OB_MODE_SCULPT, OB_MODE_TEXTURE_PAINT, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_PAINT, uiTemplateEditModeSelection(), and uiTemplatePaintModeSelection().
| void uiTemplateHistogram | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname ) |
Definition at line 22 of file interface_template_scopes.cc.
References blender::StringRefNull::c_str(), col, uiLayout::column(), PointerRNA::data, Histogram::height, PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_is_a(), PointerRNA::type, UI_BTYPE_GRIP, UI_BTYPE_HISTOGRAM, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefIconButI(), and uiLayoutGetBlock().
| void uiTemplateIcon | ( | uiLayout * | layout, |
| int | icon_value, | ||
| float | icon_scale ) |
| icon_scale | Scale of the icon, 1x == button height. |
Definition at line 96 of file interface_template_icon.cc.
References uiLayout::absolute_block(), UI_BTYPE_LABEL, UI_BUT_ICON_PREVIEW, ui_def_but_icon(), UI_HAS_ICON, UI_UNIT_X, UI_UNIT_Y, and uiDefIconBut().
| void uiTemplateIconView | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| bool | show_labels, | ||
| float | icon_scale, | ||
| float | icon_scale_popup ) |
| icon_scale | Scale of the icon, 1x == button height. |
Definition at line 114 of file interface_template_icon.cc.
References uiLayout::absolute_block(), but_func_argN_copy(), but_func_argN_free(), blender::StringRefNull::c_str(), uiBlock::evil_C, IconViewMenuArgs::icon_scale, MEM_freeN(), IconViewMenuArgs::prop, PROP_ENUM, IconViewMenuArgs::ptr, ptr, RNA_enum_icon_from_value(), RNA_property_editable(), RNA_property_enum_get(), RNA_property_enum_items(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, IconViewMenuArgs::show_labels, UI_BTYPE_LABEL, UI_BUT_ICON_PREVIEW, ui_def_but_icon(), UI_HAS_ICON, ui_icon_view_menu_cb(), UI_UNIT_X, UI_UNIT_Y, uiDefBlockButN(), and uiDefIconBut().
| void uiTemplateID | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| const char * | newop, | ||
| const char * | openop, | ||
| const char * | unlinkop, | ||
| int | filter = UI_TEMPLATE_ID_FILTER_ALL, | ||
| bool | live_icon = false, | ||
| std::optional< blender::StringRef > | text = std::nullopt ) |
Definition at line 1570 of file interface_template_id.cc.
References C, filter, ptr, UI_ID_BROWSE, UI_ID_DELETE, UI_ID_RENAME, and ui_template_id().
Referenced by blender::nodes::node_composite_mask_cc::cmp_node_mask_declare(), blender::nodes::node_composite_planetrackdeform_cc::cmp_node_planetrackdeform_declare(), blender::nodes::draw_geometry_nodes_modifier_ui(), blender::nodes::draw_property_for_socket(), nla_panel_animdata(), blender::ed::space_node::node_buts_texture(), blender::ed::space_node::node_composit_buts_cryptomatte(), blender::nodes::node_composite_defocus_cc::node_composit_buts_defocus(), blender::ed::space_node::node_composit_buts_image(), blender::nodes::node_composite_keyingscreen_cc::node_composit_buts_keyingscreen(), blender::nodes::node_composite_movieclip_cc::node_composit_buts_movieclip(), blender::nodes::node_composite_movieclip_cc::node_composit_buts_movieclip_ex(), blender::nodes::node_composite_moviedistortion_cc::node_composit_buts_moviedistortion(), blender::nodes::node_composite_stabilize2d_cc::node_composit_buts_stabilize2d(), blender::nodes::node_composite_trackpos_cc::node_composit_buts_trackpos(), blender::nodes::node_composite_render_layer_cc::node_composit_buts_viewlayers(), blender::nodes::node_geo_image_cc::node_declare(), blender::nodes::node_geo_string_to_curves_cc::node_layout(), blender::ed::space_node::node_shader_buts_tex_environment(), blender::ed::space_node::node_shader_buts_tex_image(), blender::ed::space_node::node_texture_buts_image(), panel_draw(), panel_draw(), blender::ed::space_node::std_node_socket_draw(), texture_panel_draw(), texture_panel_draw(), uiTemplateCacheFile(), uiTemplateImage(), uiTemplateMovieClip(), and weightvg_ui_common().
| void uiTemplateIDBrowse | ( | uiLayout * | layout, |
| bContext * | C, | ||
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| const char * | newop, | ||
| const char * | openop, | ||
| const char * | unlinkop, | ||
| int | filter = UI_TEMPLATE_ID_FILTER_ALL, | ||
| const char * | text = nullptr ) |
Definition at line 1648 of file interface_template_id.cc.
References C, filter, ptr, UI_ID_BROWSE, UI_ID_RENAME, and ui_template_id().
Referenced by blender::ed::space_node::node_draw_buttons_group().
| void uiTemplateIDPreview | ( | uiLayout * | layout, |
| bContext * | C, | ||
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| const char * | newop, | ||
| const char * | openop, | ||
| const char * | unlinkop, | ||
| int | rows, | ||
| int | cols, | ||
| int | filter = UI_TEMPLATE_ID_FILTER_ALL, | ||
| bool | hide_buttons = false ) |
Definition at line 1677 of file interface_template_id.cc.
References C, filter, ptr, UI_ID_BROWSE, UI_ID_DELETE, UI_ID_PREVIEWS, UI_ID_RENAME, and ui_template_id().
| void uiTemplateIDTabs | ( | uiLayout * | layout, |
| bContext * | C, | ||
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| const char * | newop, | ||
| const char * | menu, | ||
| int | filter = UI_TEMPLATE_ID_FILTER_ALL ) |
Version of uiTemplateID using tabs.
Definition at line 1736 of file interface_template_id.cc.
References C, filter, ptr, UI_ID_BROWSE, UI_ID_RENAME, and ui_template_id().
| void uiTemplateImage | ( | uiLayout * | layout, |
| bContext * | C, | ||
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| PointerRNA * | userptr, | ||
| bool | compact, | ||
| bool | multiview ) |
Definition at line 737 of file image_buttons.cc.
References BKE_image_acquire_ibuf(), BKE_image_acquire_renderresult(), BKE_image_get_tile, BKE_image_has_alpha(), BKE_image_has_filepath(), BKE_image_has_packedfile(), BKE_image_is_animated(), BKE_image_is_dirty(), BKE_image_release_ibuf(), BKE_image_release_renderresult(), BKE_image_user_frame_calc(), but_func_argN_copy(), but_func_argN_free(), C, blender::StringRefNull::c_str(), RenderData::cfra, col, Image::colorspace_settings, uiLayout::column(), CTX_data_scene(), CTX_wm_space_image(), ImBufFloatBuffer::data, PointerRNA::data, ImbFormatOptions::flag, ImBuf::float_buffer, ImBuf::foptions, ImageTile::gen_type, IFACE_, IMA_GENTYPE_BLANK, IMA_SRC_GENERATED, IMA_SRC_MOVIE, IMA_SRC_VIEWER, IMA_TYPE_COMPOSITE, IMA_TYPE_MULTILAYER, IMA_TYPE_R_RESULT, IMB_colormanagement_space_name_is_data(), SpaceImage::iuser, lock, ColorManagedColorspaceSettings::name, uiLayout::op(), OPENEXR_HALF, printf, RNAUpdateCb::prop, uiLayout::prop(), PROP_POINTER, ptr, RNAUpdateCb::ptr, Scene::r, R_MULTIVIEW, Image::render_slot, RNA_boolean_get(), RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), rna_update_cb(), uiLayout::row(), Image::rr, RenderData::scemode, uiLayout::separator(), Image::source, Image::type, UI_block_funcN_set(), UI_ITEM_NONE, UI_ITEM_R_EXPAND, UI_SCALE_FAC, UI_UNIT_Y, uiblock_layer_pass_buttons(), uiDefAutoButR(), uiLayoutGetBlock(), uiLayoutSetActive(), uiLayoutSetContextPointer(), uiLayoutSetEnabled(), uiLayoutSetPropDecorate(), uiLayoutSetPropSep(), uiTemplateColorspaceSettings(), uiTemplateID(), uiTemplateImageInfo(), and uiTemplateImageViews().
Referenced by blender::ed::space_node::node_composit_buts_image_ex(), blender::ed::space_node::node_shader_buts_tex_environment_ex(), blender::ed::space_node::node_shader_buts_tex_image_ex(), and blender::ed::space_node::node_texture_buts_image_ex().
| void uiTemplateImageFormatViews | ( | uiLayout * | layout, |
| PointerRNA * | imfptr, | ||
| PointerRNA * | ptr ) |
Definition at line 1146 of file image_buttons.cc.
References PointerRNA::data, ImageFormatData::imtype, uiLayout::prop(), ptr, R_IMF_IMTYPE_MULTILAYER, RNA_boolean_get(), RNA_property_pointer_get(), RNA_struct_find_property(), UI_ITEM_NONE, and uiTemplateViewsFormat().
Referenced by image_open_draw(), image_save_as_draw(), blender::nodes::node_composite_file_output_cc::node_composit_buts_file_output_ex(), and blender::ed::vse::sequencer_add_draw().
Definition at line 1190 of file image_buttons.cc.
References Image::anims, BKE_image_acquire_ibuf(), BKE_image_has_anim(), BKE_image_release_ibuf(), BKE_image_user_frame_get(), BLI_path_basename(), BLI_snprintf_rlen(), BLI_strncpy_rlen(), C, RenderData::cfra, ImBuf::channels, col, uiLayout::column(), CTX_data_scene(), ImBufFloatBuffer::data, ELEM, ImBuf::filepath, ListBase::first, Image::flag, ImBuf::float_buffer, GPU_texture_format_name(), IMA_HIGH_BITDEPTH, IMA_SRC_MOVIE, IMA_SRC_SEQUENCE, IMB_gpu_get_texture_format(), IMB_TC_RECORD_RUN, len, lock, MAX_IMAGE_INFO_LEN, MOV_get_duration_frames(), ImBuf::planes, Scene::r, R_IMF_PLANES_RGBA, RPT_, SNPRINTF, Image::source, str, UI_LAYOUT_ALIGN_RIGHT, uiLayoutSetAlignment(), ImBuf::x, and ImBuf::y.
Referenced by uiTemplateImage().
Definition at line 1171 of file image_buttons.cc.
References BKE_image_acquire_renderresult(), BKE_image_release_renderresult(), C, CTX_data_scene(), IMA_TYPE_R_RESULT, Image::render_slot, Image::type, UI_SCALE_FAC, and uiblock_layer_pass_buttons().
| void uiTemplateImageSettings | ( | uiLayout * | layout, |
| PointerRNA * | imfptr, | ||
| bool | color_management ) |
Definition at line 976 of file image_buttons.cc.
References BKE_imtype_requires_linear_float(), BKE_imtype_supports_compress(), BKE_imtype_supports_quality(), BKE_imtype_valid_depths(), col, ImageFormatData::color_management, uiLayout::column(), PointerRNA::data, ELEM, ImageFormatData::exr_codec, GS, ID_SCE, IFACE_, ImageFormatData::imtype, ID::name, OPENEXR_CODEC_MASK, PointerRNA::owner_id, R_IMF_CHAN_DEPTH_1, R_IMF_CHAN_DEPTH_10, R_IMF_CHAN_DEPTH_12, R_IMF_CHAN_DEPTH_16, R_IMF_CHAN_DEPTH_24, R_IMF_CHAN_DEPTH_32, R_IMF_CHAN_DEPTH_8, R_IMF_COLOR_MANAGEMENT_OVERRIDE, R_IMF_EXR_CODEC_DWAA, R_IMF_EXR_CODEC_DWAB, R_IMF_IMTYPE_CINEON, R_IMF_IMTYPE_DPX, R_IMF_IMTYPE_JP2, R_IMF_IMTYPE_MULTILAYER, R_IMF_IMTYPE_OPENEXR, R_IMF_IMTYPE_TIFF, RNA_pointer_get(), RPT_, UI_ITEM_NONE, UI_ITEM_R_EXPAND, uiLayoutSetPropDecorate(), uiLayoutSetPropSep(), and uiTemplateColormanagedViewSettings().
Referenced by image_save_as_draw(), blender::nodes::node_composite_file_output_cc::node_composit_buts_file_output_ex(), and screenshot_draw().
| void uiTemplateImageStereo3d | ( | uiLayout * | layout, |
| PointerRNA * | stereo3d_format_ptr ) |
Definition at line 1080 of file image_buttons.cc.
References ATTR_FALLTHROUGH, col, uiLayout::column(), PointerRNA::data, Stereo3dFormat::display_mode, S3D_DISPLAY_ANAGLYPH, S3D_DISPLAY_INTERLACE, S3D_DISPLAY_SIDEBYSIDE, S3D_DISPLAY_TOPBOTTOM, and UI_ITEM_NONE.
Referenced by uiTemplateViewsFormat().
| void uiTemplateImageViews | ( | uiLayout * | layout, |
| PointerRNA * | imaptr ) |
Definition at line 1128 of file image_buttons.cc.
References PointerRNA::data, IMA_TYPE_MULTILAYER, RNA_property_pointer_get(), RNA_struct_find_property(), Image::type, and uiTemplateViewsFormat().
Referenced by uiTemplateImage().
Definition at line 260 of file interface_template_status.cc.
References bScreen::active_region, bScreen::areabase, ScrAreaMap::areabase, BKE_screen_find_area_xy(), BLI_rcti_isect_pt_v(), BLT_I18NCONTEXT_OPERATOR_DEFAULT, C, CTX_IFACE_, CTX_wm_screen(), CTX_wm_window(), CTX_wm_workspace(), uiBut::drawflag, wmWindow::eventstate, wmWindow::global_areas, i, blender::bke::WorkSpaceStatusItem::icon, blender::bke::WorkSpaceStatusItem::inverted, uiLayout::label(), LISTBASE_FOREACH, uiLayout::row(), WorkSpace::runtime, uiLayout::separator(), blender::bke::WorkSpaceStatusItem::space_factor, SPACE_TYPE_ANY, SPACE_VIEW3D, ScrArea::spacetype, blender::bke::WorkSpaceStatusItem::text, UI_BUT_ICON_INVERT, ui_event_icon_offset(), UI_LAYOUT_ALIGN_LEFT, uiItemL_ex(), uiLayoutSetAlignment(), uiTemplateInputStatus3DView(), uiTemplateInputStatusAzone(), uiTemplateInputStatusBorder(), uiTemplateInputStatusHeader(), WM_window_cursor_keymap_status_get(), WM_window_modal_keymap_status_draw(), and wmEvent::xy.
| void uiTemplateKeymapItemProperties | ( | uiLayout * | layout, |
| PointerRNA * | ptr ) |
Definition at line 80 of file interface_template_keymap.cc.
References uiBlock::buttons, PointerRNA::data, i, keymap_item_modified(), ptr, RNA_pointer_get(), uiBut::rnaprop, Vector< T, InlineBufferCapacity, Allocator >::size(), template_keymap_item_properties(), UI_but_flag_enable(), UI_but_func_set(), UI_BUT_UPDATE_DELAY, uiLayoutGetBlock(), and WM_operator_properties_sanitize().
| void uiTemplateLayers | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| PointerRNA * | used_ptr, | ||
| const char * | used_propname, | ||
| int | active_layer ) |
TODO: for now, grouping of layers is determined by dividing up the length of the array of layer bit-flags.
Definition at line 44 of file interface_template_layers.cc.
References blender::StringRefNull::c_str(), col, uiLayout::column(), handle_layer_buttons(), POINTER_FROM_INT, ptr, RNA_property_array_length(), RNA_property_boolean_get_index(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiLayout::row(), uiBut::type, UI_BTYPE_TOGGLE, UI_but_func_set(), UI_UNIT_X, UI_UNIT_Y, uiDefAutoButR(), and uiLayoutGetBlock().
| void uiTemplateLightLinkingCollection | ( | uiLayout * | layout, |
| bContext * | C, | ||
| uiLayout * | context_layout, | ||
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname ) |
Definition at line 360 of file interface_template_light_linking.cc.
References blender::ui::TreeViewBuilder::build_tree_view(), C, blender::StringRefNull::c_str(), PointerRNA::data, printf, PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), blender::ui::AbstractView::set_context_menu_title(), blender::ui::AbstractTreeView::set_default_rows(), PointerRNA::type, UI_block_add_view(), and uiLayoutGetBlock().
| void uiTemplateList | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| const char * | listtype_name, | ||
| const char * | list_id, | ||
| PointerRNA * | dataptr, | ||
| blender::StringRefNull | propname, | ||
| PointerRNA * | active_dataptr, | ||
| const char * | active_propname, | ||
| const char * | item_dyntip_propname, | ||
| int | rows, | ||
| int | maxrows, | ||
| int | layout_type, | ||
| int | columns, | ||
| enum uiTemplateListFlags | flags ) |
Definition at line 1267 of file interface_template_list.cc.
References C, and uiTemplateList_ex().
Referenced by blender::nodes::draw_data_blocks(), blender::nodes::socket_items::ui::draw_items_list_with_operators(), blender::nodes::node_composite_file_output_cc::node_composit_buts_file_output_ex(), blender::panel_draw(), uiTemplateCacheFileLayers(), and uiTemplateCollectionExporters().
| uiList * uiTemplateList_ex | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| const char * | listtype_name, | ||
| const char * | list_id, | ||
| PointerRNA * | dataptr, | ||
| blender::StringRefNull | propname, | ||
| PointerRNA * | active_dataptr, | ||
| blender::StringRefNull | active_propname, | ||
| const char * | item_dyntip_propname, | ||
| int | rows, | ||
| int | maxrows, | ||
| int | layout_type, | ||
| int | columns, | ||
| enum uiTemplateListFlags | flags, | ||
| void * | customdata ) |
Definition at line 1197 of file interface_template_list.cc.
References TemplateListInputData::active_item_idx, C, TemplateListLayoutDrawData::columns, uiListDyn::customdata, TemplateListLayoutDrawData::draw_filter, uiListType::draw_filter, TemplateListLayoutDrawData::draw_item, uiListType::draw_item, uiList::dyn_data, uiListType::filter_items, uiList::flag, uiList::list_last_activei, TemplateListLayoutDrawData::maxrows, MEM_SAFE_FREE, TemplateListLayoutDrawData::rows, ui_list_ensure(), ui_template_list_collect_display_items(), ui_template_list_data_retrieve(), ui_template_list_layout_draw(), UI_TEMPLATE_LIST_SORT_LOCK, UI_TEMPLATE_LIST_SORT_REVERSE, uilist_draw_filter_default(), uilist_draw_item_default(), uilist_filter_items_default(), and UILST_SCROLL_TO_ACTIVE_ITEM.
Referenced by uiTemplateAssetView(), and uiTemplateList().
| void uiTemplateMarker | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| PointerRNA * | userptr, | ||
| PointerRNA * | trackptr, | ||
| bool | compact ) |
Definition at line 376 of file clip_buttons.cc.
References uiLayout::absolute_block(), add_v2_v2v2(), B_MARKER_FLAG, B_MARKER_OFFSET, B_MARKER_PAT_DIM, B_MARKER_POS, B_MARKER_SEARCH_DIM, B_MARKER_SEARCH_POS, BKE_movieclip_get_size(), BKE_movieclip_remap_scene_to_clip_frame(), BKE_tracking_marker_get(), BKE_tracking_marker_pattern_minmax(), blender::StringRefNull::c_str(), MarkerUpdateCb::clip, col, uiLayout::column(), MarkerUpdateCb::compact, PointerRNA::data, MovieTrackingMarker::flag, MovieTrackingTrack::flag, MarkerUpdateCb::framenr, MovieClipUser::framenr, IFACE_, MarkerUpdateCb::marker, marker_block_handler(), MARKER_DISABLED, MarkerUpdateCb::marker_flag, MarkerUpdateCb::marker_pat, MarkerUpdateCb::marker_pos, MarkerUpdateCb::marker_search, MarkerUpdateCb::marker_search_pos, marker_update_cb(), MEM_callocN(), MEM_freeN(), mul_v2_fl(), MovieTrackingTrack::offset, MovieTrackingMarker::pos, printf, PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), MovieTrackingMarker::search_max, MovieTrackingMarker::search_min, step, sub_v2_v2v2(), TIP_, to_pixel_space(), MarkerUpdateCb::track, TRACK_LOCKED, MarkerUpdateCb::track_offset, UI_block_align_begin(), UI_block_align_end(), UI_block_func_handle_set(), UI_block_funcN_set(), UI_BTYPE_CHECKBOX_N, UI_BTYPE_LABEL, UI_BTYPE_NUM, UI_BTYPE_TOGGLE_N, UI_but_drawflag_enable(), UI_but_funcN_set(), UI_BUT_ICON_REVERSE, UI_but_number_precision_set(), UI_but_number_step_size_set(), UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefButBitI(), uiDefButF(), uiDefIconButBitI(), uiLayoutGetBlock(), uiLayoutSetActive(), and MarkerUpdateCb::user.
| void uiTemplateMenuSearch | ( | uiLayout * | layout | ) |
Definition at line 1133 of file interface_template_search_menu.cc.
References UI_block_layout_set_current(), UI_but_func_menu_search(), UI_UNIT_X, UI_UNIT_Y, uiDefSearchBut(), and uiLayoutGetBlock().
Definition at line 30 of file interface_template_modifiers.cc.
References BKE_modifier_get_info(), BLI_assert, C, blender::ed::object::context_active_object(), CTX_wm_region(), ListBase::first, PanelType::flag, Object::id, LISTBASE_FOREACH, MAX_NAME, modifier_panel_id(), Object::modifiers, Panel::next, ModifierTypeInfo::panel_register, PANEL_TYPE_INSTANCED, ARegion::panels, RNA_pointer_create_id_subdata(), Panel::type, UI_panel_add_instanced(), UI_panel_custom_data_set(), UI_panel_list_matches_data(), and UI_panels_free_instanced().
| void uiTemplateMovieClip | ( | uiLayout * | layout, |
| bContext * | C, | ||
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| bool | compact ) |
Definition at line 92 of file clip_buttons.cc.
References C, blender::StringRefNull::c_str(), col, uiLayout::column(), PointerRNA::data, IFACE_, uiLayout::op(), printf, uiLayout::prop(), PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), uiLayout::row(), split(), uiLayout::split(), UI_BTYPE_LABEL, UI_ITEM_NONE, uiDefBut(), uiLayoutGetBlock(), uiLayoutSetContextPointer(), uiTemplateColorspaceSettings(), and uiTemplateID().
| void uiTemplateMovieclipInformation | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| PointerRNA * | userptr ) |
Definition at line 724 of file clip_buttons.cc.
References MovieClip::anim, BKE_movieclip_filepath_for_frame(), BKE_movieclip_get_ibuf_flag(), BKE_movieclip_get_size(), BKE_movieclip_remap_scene_to_clip_frame(), BLI_path_basename(), BLI_snprintf_rlen(), BLI_strncpy_rlen(), blender::StringRefNull::c_str(), ImBuf::channels, col, uiLayout::column(), ImBufFloatBuffer::data, PointerRNA::data, FILE_MAX, MovieClip::flag, ImBuf::float_buffer, MovieClipUser::framenr, IMB_freeImBuf(), len, MovieClip::len, MCLIP_SRC_SEQUENCE, MOV_get_fps(), ImBuf::planes, printf, PROP_POINTER, ptr, R_IMF_PLANES_RGBA, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RPT_, SNPRINTF, MovieClip::source, str, UI_LAYOUT_ALIGN_RIGHT, uiLayoutSetAlignment(), and UNUSED_VARS.
| void uiTemplateNodeInputs | ( | uiLayout * | layout, |
| bContext * | C, | ||
| PointerRNA * | ptr ) |
Draw all node buttons and socket default values with the same panel structure used by the node.
Definition at line 137 of file interface_template_node_inputs.cc.
References BLI_assert, C, blender::ui::nodes::draw_node_input(), blender::ui::nodes::draw_node_inputs_recursive(), input, params, ptr, RNA_pointer_create_discrete(), blender::nodes::NodeDeclaration::root_items, bNode::runtime, SOCK_IN, tree, and bNode::typeinfo.
| void uiTemplateNodeLink | ( | uiLayout * | layout, |
| bContext * | C, | ||
| bNodeTree * | ntree, | ||
| bNode * | node, | ||
| bNodeSocket * | input ) |
Definition at line 672 of file node_templates.cc.
References C, uiBut::flag, uiBut::func_argN, uiBut::func_argN_copy_fn, uiBut::func_argN_free_fn, bNodeTree::id, input, blender::ed::space_node::NodeLinkArg::item, MEM_callocN(), MEM_dupallocN(), MEM_freeN(), blender::ed::space_node::NodeLinkArg::node, NODE_ACTIVE_TEXTURE, blender::ed::space_node::node_link_item_init(), blender::ed::space_node::node_socket_color_get(), blender::ed::space_node::NodeLinkArg::ntree, uiBut::poin, RNA_pointer_create_discrete(), blender::ed::space_node::NodeLinkArg::sock, SOCK_HIDE_VALUE, SOCK_SHADER, UI_block_layout_set_current(), UI_but_drawflag_enable(), UI_BUT_ICON_LEFT, UI_BUT_NODE_ACTIVE, UI_but_node_link_set(), UI_but_type_set_menu_from_pulldown(), UI_MAX_NAME_STR, blender::ed::space_node::ui_node_sock_name(), blender::ed::space_node::ui_template_node_link_menu(), UI_UNIT_X, UI_UNIT_Y, uiDefIconMenuBut(), uiDefMenuBut(), and uiLayoutGetBlock().
Referenced by blender::ed::space_node::ui_node_draw_input().
Definition at line 287 of file interface_templates.cc.
References uiBut::col, rgba_float_to_uchar(), UI_block_align_begin(), UI_block_align_end(), UI_BTYPE_NODE_SOCKET, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), and uiLayoutGetBlock().
Referenced by blender::nodes::socket_items::ui::draw_item_in_list().
| void uiTemplateNodeTreeInterface | ( | uiLayout * | layout, |
| bContext * | C, | ||
| PointerRNA * | ptr ) |
Definition at line 536 of file interface_template_node_tree_interface.cc.
References blender::ui::TreeViewBuilder::build_tree_view(), C, interface, ptr, RNA_struct_is_a(), blender::ui::AbstractView::set_context_menu_title(), blender::ui::AbstractTreeView::set_default_rows(), UI_block_add_view(), and uiLayoutGetBlock().
| void uiTemplateNodeView | ( | uiLayout * | layout, |
| bContext * | C, | ||
| bNodeTree * | ntree, | ||
| bNode * | node, | ||
| bNodeSocket * | input ) |
Definition at line 1008 of file node_templates.cc.
References C, input, NODE_TEST, blender::ed::space_node::ui_node_draw_input(), and blender::ed::space_node::ui_node_draw_node().
| void uiTemplateOperatorPropertyButs | ( | const bContext * | C, |
| uiLayout * | layout, | ||
| wmOperator * | op, | ||
| eButLabelAlign | label_align, | ||
| short | flag ) |
Draw Operator property buttons for redoing execution with different settings. This function does not initialize the layout, functions can be called on the layout before and after.
Definition at line 275 of file interface_template_operator_property.cc.
References C, CTX_wm_manager(), flag, template_operator_property_buts_draw_recursive(), ui_layout_operator_properties_only_booleans(), and UI_TEMPLATE_OP_PROPS_NO_SPLIT_LAYOUT.
Referenced by file_panel_operator(), wm_block_create_redo(), wm_block_dialog_create(), and wm_operator_ui_create().
Definition at line 289 of file interface_template_operator_property.cc.
References C, ED_undo_operator_repeat_cb_evt(), IFACE_, uiLayout::op(), uiBlock::panel, wmOperator::ptr, template_operator_property_buts_draw_recursive(), wmOperator::type, UI_block_func_handle_set(), UI_BUT_LABEL_ALIGN_NONE, UI_TEMPLATE_OP_PROPS_SHOW_TITLE, uiLayoutGetBlock(), WM_OP_INVOKE_DEFAULT, WM_operator_last_redo(), WM_operator_repeat_check(), and WM_operatortype_name().
Referenced by hud_panel_operator_redo_draw().
| void uiTemplateOperatorSearch | ( | uiLayout * | layout | ) |
Definition at line 98 of file interface_template_search_operator.cc.
References UI_block_layout_set_current(), UI_but_func_operator_search(), UI_UNIT_X, UI_UNIT_Y, uiDefSearchBut(), and uiLayoutGetBlock().
| void uiTemplatePalette | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| bool | colors ) |
Definition at line 233 of file interface_template_color_picker.cc.
References blender::StringRefNull::c_str(), col, Palette::colors, uiLayout::column(), PointerRNA::data, ListBase::first, Palette::id, uiButColor::is_pallete_color, LISTBASE_FOREACH, uiBut::opptr, uiButColor::palette_color_index, ptr, RNA_enum_set(), RNA_pointer_create_discrete(), RNA_property_pointer_get(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_struct_is_a(), RNA_warning, PointerRNA::type, UI_BTYPE_BUT, UI_BTYPE_COLOR, UI_but_operator_ptr_ensure(), ui_template_palette_menu(), UI_UNIT_X, UI_UNIT_Y, uiDefButR(), uiDefIconButO(), uiDefIconMenuBut(), uiLayoutGetBlock(), uiLayoutGetWidth(), and WM_OP_INVOKE_DEFAULT.
| void uiTemplatePathBuilder | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| PointerRNA * | root_ptr, | ||
| std::optional< blender::StringRefNull > | text ) |
This is creating/editing RNA-Paths
Definition at line 257 of file interface_templates.cc.
References blender::StringRefNull::c_str(), uiLayout::prop(), PROP_STRING, ptr, RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiLayout::row(), and UI_ITEM_NONE.
Referenced by graph_panel_driverVar__contextProp(), and graph_panel_driverVar__singleProp().
| void uiTemplatePreview | ( | uiLayout * | layout, |
| bContext * | C, | ||
| ID * | id, | ||
| bool | show_buttons, | ||
| ID * | parent, | ||
| MTex * | slot, | ||
| const char * | preview_id ) |
Definition at line 43 of file interface_template_preview.cc.
References B_MATPRV, BKE_idtype_idcode_to_name(), BKE_scene_uses_blender_eevee(), BLI_addtail(), BLI_findstring(), BLT_I18NCONTEXT_ID_LIGHT, BLT_I18NCONTEXT_ID_WORLD, C, col, uiLayout::column(), CTX_data_scene(), CTX_IFACE_, CTX_wm_region(), do_preview_buttons(), ED_preview_draw(), ELEM, GS, uiPreview::height, Material::id, ID_LA, ID_LS, ID_MA, uiPreview::id_session_uid, ID_TE, ID_WO, IFACE_, MEM_callocN(), ID::name, offsetof, uiPreview::preview_id, uiLayout::prop(), RNA_id_pointer_create(), RNA_warning, uiLayout::row(), ID::session_uid, SNPRINTF, STRNCPY(), uiPreview::tag, TEX_PR_BOTH, TEX_PR_OTHER, TEX_PR_TEXTURE, UI_block_func_handle_set(), UI_BTYPE_EXTRA, UI_BTYPE_GRIP, UI_BTYPE_ROW, UI_but_func_drawextra_set(), UI_ITEM_NONE, UI_ITEM_R_EXPAND, UI_PREVIEW_TAG_DIRTY, ARegion::ui_previews, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefButS(), uiDefIconButS(), uiLayoutGetBlock(), uiLayoutSetKeepAspect(), and uiLayoutSetScaleX().
| int uiTemplateRecentFiles | ( | uiLayout * | layout, |
| int | rows ) |
Definition at line 130 of file interface_template_recent_files.cc.
References BKE_blendfile_extension_check(), BLI_path_basename(), BLI_strdup(), G, i, LISTBASE_FOREACH_INDEX, MEM_freeN(), uiLayout::op(), ptr, RNA_boolean_set(), RNA_string_set(), UI_but_func_tooltip_custom_set(), ui_but_last(), UI_ITEM_NONE, uiLayoutGetBlock(), uiTemplateRecentFiles_tooltip_func(), and WM_OP_INVOKE_DEFAULT.
Referenced by recent_files_menu_draw().
Definition at line 43 of file interface_template_status.cc.
References uiLayout::absolute(), add_v3_uchar_clamped(), BKE_reports_last_displayable(), BLF_width(), C, uiBut::col, copy_v3_v3_uchar(), copy_v4_v4_uchar(), CTX_wm_reports(), ReportTimerInfo::flash_progress, Report::len, max_ii(), Report::message, min_ii(), blender::ui::None, REPORT_BANNER_MAX_WIDTH, reports, SPACE_INFO, TIP_, Report::type, UI_block_align_begin(), UI_block_align_end(), UI_block_emboss_get(), UI_block_emboss_set(), UI_BTYPE_BUT, UI_BTYPE_ROUNDBOX, UI_fontstyle_set(), UI_GetThemeColorType4ubv(), UI_icon_colorid_from_report_type(), UI_icon_from_report_type(), UI_SCALE_FAC, UI_style_get(), UI_text_colorid_from_report_type(), UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefButO(), uiDefIconButO(), uiFontStyle::uifont_id, uiLayoutGetBlock(), uiStyle::widget, ReportTimerInfo::widthfac, and WM_OP_INVOKE_REGION_WIN.
Definition at line 101 of file interface_template_running_jobs.cc.
References active, B_STOPANIM, B_STOPCLIP, B_STOPCOMPO, B_STOPFILE, B_STOPOTHER, B_STOPRENDER, B_STOPSEQ, C, CTX_data_main(), CTX_wm_area(), CTX_wm_manager(), do_running_jobs(), ED_screen_animation_no_scrub(), G, IFACE_, LISTBASE_FOREACH, MEM_freeN(), MEM_mallocN(), ProgressTooltip_Store::owner, progress, uiButProgress::progress_factor, progress_tooltip_func(), uiLayout::row(), RPT_, wmWindowManager::runtime, Main::scenes, SNPRINTF, SPACE_NODE, ScrArea::spacetype, TIP_, U, UI_block_func_handle_set(), UI_block_layout_set_current(), UI_BTYPE_BUT, UI_BTYPE_LABEL, UI_BTYPE_PROGRESS, UI_but_func_tooltip_set(), UI_fontstyle_string_width(), UI_FSTYLE_WIDGET, UI_UNIT_X, UI_UNIT_Y, uiDefIconButO(), uiDefIconTextBut(), uiLayoutGetBlock(), uiLayoutSetActive(), USER_RENDER_DISPLAY_NONE, ProgressTooltip_Store::wm, WM_JOB_TYPE_ANY, WM_JOB_TYPE_ASSET_LIBRARY_LOAD, WM_JOB_TYPE_CLIP_BUILD_PROXY, WM_JOB_TYPE_CLIP_PREFETCH, WM_JOB_TYPE_CLIP_SOLVE_CAMERA, WM_JOB_TYPE_CLIP_TRACK_MARKERS, WM_JOB_TYPE_COMPOSITE, WM_JOB_TYPE_DPAINT_BAKE, WM_JOB_TYPE_FILESEL_READDIR, WM_JOB_TYPE_OBJECT_BAKE, WM_JOB_TYPE_OBJECT_BAKE_TEXTURE, WM_JOB_TYPE_OBJECT_SIM_FLUID, WM_JOB_TYPE_OBJECT_SIM_OCEAN, WM_JOB_TYPE_POINTCACHE, WM_JOB_TYPE_RENDER, WM_JOB_TYPE_SEQ_BUILD_PREVIEW, WM_JOB_TYPE_SEQ_BUILD_PROXY, WM_JOB_TYPE_SEQ_DRAW_THUMBNAIL, WM_jobs_is_stopped(), WM_jobs_name(), WM_jobs_progress(), WM_jobs_test(), and WM_OP_INVOKE_DEFAULT.
| void uiTemplateSearch | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| PointerRNA * | searchptr, | ||
| const char * | searchpropname, | ||
| const char * | newop, | ||
| const char * | unlinkop, | ||
| std::optional< blender::StringRef > | text = std::nullopt ) |
Search menu to pick an item from a collection. A version of uiTemplateID that works for non-ID types.
Definition at line 282 of file interface_template_search.cc.
References C, ptr, template_search_buttons(), and template_search_setup().
Referenced by nla_panel_actclip(), and nla_panel_animdata().
| void uiTemplateSearchPreview | ( | uiLayout * | layout, |
| bContext * | C, | ||
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname, | ||
| PointerRNA * | searchptr, | ||
| const char * | searchpropname, | ||
| const char * | newop, | ||
| const char * | unlinkop, | ||
| int | rows, | ||
| int | cols, | ||
| std::optional< blender::StringRef > | text = std::nullopt ) |
Definition at line 298 of file interface_template_search.cc.
References C, TemplateSearch::preview_cols, TemplateSearch::preview_rows, ptr, template_search_buttons(), template_search_setup(), and TemplateSearch::use_previews.
Check if the shader effect panels don't match the data and rebuild the panels if so.
Definition at line 32 of file interface_template_shader_fx.cc.
References BKE_shaderfx_get_info(), BLI_assert, C, blender::ed::object::context_active_object(), CTX_wm_region(), ListBase::first, PanelType::flag, Object::id, LISTBASE_FOREACH, MAX_NAME, Panel::next, ShaderFxTypeInfo::panel_register, PANEL_TYPE_INSTANCED, ARegion::panels, RNA_pointer_create_discrete(), Object::shader_fx, shaderfx_panel_id(), Panel::type, UI_panel_add_instanced(), UI_panel_custom_data_set(), UI_panel_list_matches_data(), and UI_panels_free_instanced().
| int uiTemplateStatusBarModalItem | ( | uiLayout * | layout, |
| const wmKeyMap * | keymap, | ||
| const EnumPropertyItem * | item ) |
Definition at line 43 of file interface_template_event.cc.
References ARRAY_SIZE, EnumPropertyItem::identifier, IFACE_, ISKEYBOARD, keymap_item_can_collapse(), keymap_item_from_enum_item(), KM_MOD_NUM, KM_RELEASE, uiLayout::label(), EnumPropertyItem::name, uiLayout::separator(), STREQ, wmKeyMapItem::type, ui_event_icon_offset(), UI_icon_from_keymap_item(), uiTemplateEventFromKeymapItem(), and wmKeyMapItem::val.
Referenced by WM_window_modal_keymap_status_draw().
Definition at line 396 of file interface_template_status.cc.
References uiLayout::absolute(), BKE_main_has_issues(), BLF_width(), BLI_str_format_integer_unit(), uiBlock::buttons, C, blender::StringRefNull::c_str(), uiBut::col, copy_v4_v4_uchar(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_manager(), ED_info_statusbar_string_ex(), wmWindowManager::extensions_blocked, wmWindowManager::extensions_updates, G, G_FLAG_INTERNET_ALLOW, G_FLAG_INTERNET_OVERRIDE_PREF_OFFLINE, Main::has_forward_compatibility_issues, uiBut::icon_overlay_text, blender::StringRefBase::is_empty(), uiLayout::label(), Vector< T, InlineBufferCapacity, Allocator >::last(), max_ii(), blender::ui::None, uiLayout::op(), uiLayout::row(), uiLayout::separator(), blender::StringRefBase::size(), SPACE_INFO, STATUSBAR_SHOW_EXTENSIONS_UPDATES, STATUSBAR_SHOW_VERSION, IconTextOverlay::text, TH_INFO_WARNING_TEXT, TH_TEXT, TH_WARNING, U, UI_block_align_begin(), UI_block_align_end(), UI_block_emboss_get(), UI_block_emboss_set(), UI_BTYPE_BUT, UI_BTYPE_ROUNDBOX, UI_but_func_tooltip_set(), UI_but_icon_indicator_color_set(), UI_fontstyle_set(), UI_GetThemeColor4ubv(), UI_GetThemeColorType4ubv(), UI_SCALE_FAC, UI_style_get(), ui_template_status_tooltip(), UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefIconBut(), uiFontStyle::uifont_id, uiLayoutGetBlock(), uiLayoutSetEmboss(), uiStyle::widget, and WM_EXTENSIONS_UPDATE_CHECKING.
| void uiTemplateTextureShow | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop ) |
Button to quickly show texture in Properties Editor texture tab.
Definition at line 667 of file buttons_texture.cc.
References BCONTEXT_TEXTURE, C, CTX_wm_space_properties(), PointerRNA::data, find_space_properties(), ListBase::first, SpaceProperties::mainb, ButsTextureUser::next, ButsTextureUser::prop, ButsTextureUser::ptr, ptr, RNA_property_pointer_get(), template_texture_show(), texture(), SpaceProperties::texuser, TIP_, UI_BTYPE_BUT, UI_but_disable(), UI_but_func_set(), UI_UNIT_X, UI_UNIT_Y, uiDefIconBut(), uiLayoutGetBlock(), and ButsContextTexture::users.
Referenced by template_ID().
Definition at line 548 of file buttons_texture.cc.
References C, CTX_wm_space_properties(), uiBut::flag, ButsTextureUser::icon, uiLayout::label(), ButsTextureUser::name, STRNCPY(), template_texture_user_menu(), SpaceProperties::texuser, TIP_, UI_BUT_ICON_SUBMENU, UI_but_type_set_menu_from_pulldown(), UI_MAX_NAME_STR, UI_UNIT_X, UI_UNIT_Y, uiDefIconTextMenuBut(), uiDefMenuBut(), uiLayoutGetBlock(), and ButsContextTexture::user.
| void uiTemplateTrack | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname ) |
Definition at line 147 of file clip_buttons.cc.
References blender::StringRefNull::c_str(), col, uiLayout::column(), PointerRNA::data, printf, PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), MovieClipScopes::track_preview_height, UI_BTYPE_GRIP, UI_BTYPE_TRACK_PREVIEW, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefIconButI(), and uiLayoutGetBlock().
| void uiTemplateVectorscope | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname ) |
Definition at line 127 of file interface_template_scopes.cc.
References blender::StringRefNull::c_str(), col, uiLayout::column(), PointerRNA::data, PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_is_a(), PointerRNA::type, UI_BTYPE_GRIP, UI_BTYPE_VECTORSCOPE, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefIconButI(), uiLayoutGetBlock(), and Scopes::vecscope_height.
| void uiTemplateWaveform | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname ) |
Definition at line 69 of file interface_template_scopes.cc.
References blender::StringRefNull::c_str(), col, uiLayout::column(), PointerRNA::data, PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_is_a(), PointerRNA::type, UI_BTYPE_GRIP, UI_BTYPE_WAVEFORM, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefIconButI(), uiLayoutGetBlock(), and Scopes::wavefrm_height.