32#include "RNA_prototypes.hh"
58 int minwidth, width, height;
127 event_type =
event->type;
138 pie->
mx =
event->xy[0];
139 pie->
my =
event->xy[1];
166 pie->
pie_block,
UI_BTYPE_LABEL, 0, title, 0, 0,
w,
UI_UNIT_Y,
nullptr, 0.0, 0.0,
"");
204 printf(
"%s: named menu \"%s\" not found\n", __func__, idname);
356 const int totitem_remain = totitem - totitem_parent;
362 memcpy(remaining, items + totitem_parent, array_size);
389 "Show more items of this menu");
wmWindow * CTX_wm_window(const bContext *C)
int BLI_findindex(const ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
#define SNPRINTF(dst, format,...)
char * STRNCPY(char(&dst)[N], const char *src)
Platform independent time functions.
double BLI_time_now_seconds(void)
#define CTX_IFACE_(context, msgid)
Read Guarded memory(de)allocation.
#define RNA_warning(format,...)
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)
void UI_block_theme_style_set(uiBlock *block, char theme_style)
uiBlock * UI_block_begin(const bContext *C, ARegion *region, std::string name, blender::ui::EmbossType emboss)
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)
const uiStyle * UI_style_get_dpi()
@ UI_BLOCK_THEME_STYLE_POPUP
@ UI_BLOCK_BOUNDS_PIE_CENTER
int UI_fontstyle_string_width(const uiFontStyle *fs, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
void UI_popup_handlers_add(bContext *C, ListBase *handlers, uiPopupBlockHandle *popup, char flag)
void UI_block_region_set(uiBlock *block, ARegion *region)
void UI_block_flag_enable(uiBlock *block, int flag)
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)
void uiItemsFullEnumO_items(uiLayout *layout, wmOperatorType *ot, const PointerRNA &ptr, PropertyRNA *prop, IDProperty *properties, wmOperatorCallContext context, eUI_Item_Flag flag, const EnumPropertyItem *item_array, int totitem, int active=-1)
uiLayout * UI_block_layout(uiBlock *block, int dir, int type, int x, int y, int size, int em, int padding, const uiStyle *style)
void UI_menutype_draw(bContext *C, MenuType *mt, uiLayout *layout)
void uiItemsEnumO(uiLayout *layout, blender::StringRefNull opname, blender::StringRefNull propname)
void UI_block_layout_resolve(uiBlock *block, int *r_x, int *r_y)
@ WM_HANDLER_ACCEPT_DBL_CLICK
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
constexpr const char * c_str() const
uiPopupBlockHandle * ui_popup_block_create(bContext *C, ARegion *butregion, uiBut *but, uiBlockCreateFunc create_func, uiBlockHandleCreateFunc handle_create_func, void *arg, uiFreeArgFunc arg_free, bool can_refresh)
#define UI_MENU_WIDTH_MIN
void * MEM_mallocN(size_t len, const char *str)
void * MEM_callocN(size_t len, const char *str)
void MEM_freeN(void *vmemh)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
PropertyType RNA_property_type(PropertyRNA *prop)
const char * RNA_struct_identifier(const StructRNA *type)
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
bool RNA_path_resolve(const PointerRNA *ptr, const char *path, PointerRNA *r_ptr, PropertyRNA **r_prop)
ARegionRuntimeHandle * runtime
eBlockBoundsCalc bounds_type
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< blender::StringRef > name_opt, int icon, std::optional< blender::StringRef > placeholder=std::nullopt)
short pie_event_type_lock
struct wmEvent * eventstate
short pie_event_type_last
void WM_event_add_mousemove(wmWindow *win)
void WM_operator_properties_create_ptr(PointerRNA *ptr, wmOperatorType *ot)
void WM_operator_properties_sanitize(PointerRNA *ptr, const bool no_context)