31#include "RNA_prototypes.hh"
54 int minwidth, width, height;
95 uiPieMenu *pie = MEM_cnew<uiPieMenu>(__func__);
123 event_type =
event->type;
134 pie->
mx =
event->xy[0];
135 pie->
my =
event->xy[1];
162 pie->
pie_block,
UI_BTYPE_LABEL, 0, title, 0, 0,
w,
UI_UNIT_Y,
nullptr, 0.0, 0.0,
"");
200 printf(
"%s: named menu \"%s\" not found\n", __func__, idname);
220 bContext *C,
const char *title,
const char *opname,
const char *propname,
const wmEvent *event)
341 const char *propname,
349 const int totitem_remain = totitem - totitem_parent;
355 memcpy(remaining, items + totitem_parent, array_size);
382 "Show more items of this menu");
wmWindow * CTX_wm_window(const bContext *C)
int BLI_findindex(const struct ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
#define STRNCPY(dst, src)
#define SNPRINTF(dst, format,...)
Platform independent time functions.
double BLI_time_now_seconds(void)
#define CTX_IFACE_(context, msgid)
Read Guarded memory(de)allocation.
#define RNA_warning(format,...)
void UI_block_theme_style_set(uiBlock *block, char theme_style)
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, const char *tip)
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)
const uiStyle * UI_style_get_dpi()
void uiItemFullR(uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, const char *name, int icon, const char *placeholder=nullptr)
uiBlock * UI_block_begin(const bContext *C, ARegion *region, std::string name, eUIEmbossType emboss)
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, const char *tip)
@ UI_BLOCK_BOUNDS_PIE_CENTER
void UI_menutype_draw(bContext *C, MenuType *mt, uiLayout *layout)
void uiItemsEnumO(uiLayout *layout, const char *opname, const char *propname)
@ UI_BLOCK_THEME_STYLE_POPUP
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)
uiLayout * uiLayoutRadial(uiLayout *layout)
void UI_block_layout_resolve(uiBlock *block, int *r_x, int *r_y)
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)
@ WM_HANDLER_ACCEPT_DBL_CLICK
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
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_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(ID *id, StructRNA *type, void *data)
bool RNA_path_resolve(const PointerRNA *ptr, const char *path, PointerRNA *r_ptr, PropertyRNA **r_prop)
eBlockBoundsCalc bounds_type
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)