|
Blender V5.0
|
#include "BLI_string_ref.hh"#include "RNA_access.hh"#include "UI_interface_layout.hh"#include "interface_intern.hh"Go to the source code of this file.
Classes | |
| struct | IconViewMenuArgs |
Functions | |
| static uiBlock * | ui_icon_view_menu_cb (bContext *C, ARegion *region, void *arg_litem) |
| void | uiTemplateIcon (uiLayout *layout, int icon_value, float icon_scale) |
| void | uiTemplateIconView (uiLayout *layout, PointerRNA *ptr, const StringRefNull propname, bool show_labels, float icon_scale, float icon_scale_popup) |
Definition at line 26 of file interface_template_icon.cc.
References C, free(), EnumPropertyItem::icon, IconViewMenuArgs::icon_scale, EnumPropertyItem::identifier, MEM_freeN(), name, IconViewMenuArgs::prop, IconViewMenuArgs::ptr, blender::ui::Pulldown, RNA_property_enum_items(), Row, IconViewMenuArgs::show_labels, U, UI_block_begin(), UI_block_bounds_set_normal(), UI_block_direction_set(), UI_block_flag_enable(), UI_BLOCK_LOOP, UI_BLOCK_THEME_STYLE_POPUP, UI_block_theme_style_set(), UI_BUT_ICON_PREVIEW, ui_def_but_icon(), UI_DIR_DOWN, UI_HAS_ICON, UI_UNIT_X, uiDefIconButR_prop(), uiDefIconTextButR_prop(), EnumPropertyItem::value, w(), x, and y.
Referenced by uiTemplateIconView().
| icon_scale | Scale of the icon, 1x == button height. |
Definition at line 96 of file interface_template_icon.cc.
References uiLayout::absolute_block(), 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, Label, 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_BUT_ICON_PREVIEW, ui_def_but_icon(), UI_HAS_ICON, ui_icon_view_menu_cb(), UI_UNIT_X, UI_UNIT_Y, uiDefBlockButN(), and uiDefIconBut().