44 const int x = (a % 8) *
w;
45 const int y = -(a / 8) * h;
47 const int icon = item[a].
icon;
48 const int value = item[a].
value;
116 float icon_scale_popup)
121 RNA_warning(
"property of type Enum not found: %s.%s",
133 static_cast<bContext *
>(block->
evil_C), ptr, prop, &items, &tot_items, &free_items);
135 int icon = ICON_NONE;
142 cb_args->
prop = prop;
#define RNA_warning(format,...)
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
constexpr const char * c_str() const
void free(Subdiv *subdiv)
void block_direction_set(Block *block, char direction)
@ BLOCK_THEME_STYLE_POPUP
void block_bounds_set_normal(Block *block, int addval)
void block_flag_enable(Block *block, int flag)
Button * uiDefIconButR_prop(Block *block, ButtonType type, int icon, int x, int y, short width, short height, PointerRNA *ptr, PropertyRNA *prop, int index, float min, float max, std::optional< StringRef > tip)
Block * block_begin(const bContext *C, ARegion *region, std::string name, EmbossType emboss)
void * but_func_argN_copy(const void *argN)
void block_theme_style_set(Block *block, char theme_style)
void template_icon(Layout *layout, int icon_value, float icon_scale)
Button * uiDefIconTextButR_prop(Block *block, ButtonType type, int icon, std::optional< StringRef > str, int x, int y, short width, short height, PointerRNA *ptr, PropertyRNA *prop, int index, float min, float max, std::optional< StringRef > tip)
void but_func_argN_free(void *argN)
void def_but_icon(Button *but, const int icon, const int64_t flag)
Button * uiDefIconBut(Block *block, ButtonTypeWithPointerType but_and_ptr_type, int icon, int x, int y, short width, short height, void *poin, float min, float max, std::optional< StringRef > tip)
Button * uiDefBlockButN(Block *block, BlockCreateFunc func, void *argN, StringRef str, int x, int y, short width, short height, std::optional< StringRef > tip, ButtonArgNFree func_argN_free_fn=MEM_delete_void, ButtonArgNCopy func_argN_copy_fn=MEM_dupalloc_void)
static Block * icon_view_menu_cb(bContext *C, ARegion *region, void *arg_litem)
void template_icon_view(Layout *layout, PointerRNA *ptr, StringRefNull propname, bool show_labels, float icon_scale, float icon_scale_popup)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
int RNA_property_enum_get(PointerRNA *ptr, PropertyRNA *prop)
void RNA_property_enum_items(bContext *C, PointerRNA *ptr, PropertyRNA *prop, const EnumPropertyItem **r_item, int *r_totitem, bool *r_free)
PropertyType RNA_property_type(PropertyRNA *prop)
bool RNA_enum_icon_from_value(const EnumPropertyItem *item, int value, int *r_icon)
const char * RNA_struct_identifier(const StructRNA *type)
bool RNA_property_editable(const PointerRNA *ptr, PropertyRNA *prop)
Layout & absolute(bool align=false)