32#include "RNA_prototypes.hh"
79 block->
pie_data->pie_center_spawned[0] = pie->
mx;
80 block->
pie_data->pie_center_spawned[1] = pie->
my;
127 event_type =
event->type;
138 pie->
mx =
event->xy[0];
139 pie->
my =
event->xy[1];
155 pie->
pie_block,
ButtonType::Label, title, 0, 0,
w,
UI_UNIT_Y,
nullptr, 0.0, 0.0,
"");
191 printf(
"%s: named menu \"%s\" not found\n", __func__, idname);
279 const int totitem_remain = totitem - totitem_parent;
285 memcpy(remaining, items + totitem_parent, array_size);
309 "Show more items of this menu");
#define SNPRINTF_UTF8(dst, format,...)
#define STRNCPY_UTF8(dst, src)
Platform independent time functions.
#define CTX_IFACE_(context, msgid)
Read Blender memory allocation and freeing.
#define RNA_warning(format,...)
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
constexpr const char * c_str() const
#define UI_MENU_WIDTH_MIN
Button * uiDefIconTextBut(Block *block, ButtonTypeWithPointerType but_and_ptr_type, int icon, StringRef str, int x, int y, short width, short height, void *poin, std::optional< StringRef > tip)
PieMenu * pie_menu_begin(bContext *C, const char *title, int icon, const wmEvent *event) ATTR_NONNULL()
Layout * pie_menu_layout(PieMenu *pie)
@ BLOCK_THEME_STYLE_POPUP
static Block * block_func_PIE(bContext *, PopupBlockHandle *handle, void *arg_pie)
int fontstyle_string_width(const uiFontStyle *fs, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
void block_flag_enable(Block *block, int flag)
static void pie_menu_level_invoke(bContext *C, void *argN, void *arg2)
const uiStyle * style_get_dpi()
void popup_handlers_add(bContext *C, ListBaseT< wmEventHandler > *handlers, PopupBlockHandle *popup, char flag)
Block * block_begin(const bContext *C, ARegion *region, std::string name, EmbossType emboss)
Button * uiDefBut(Block *block, ButtonTypeWithPointerType but_and_ptr_type, StringRef str, int x, int y, short width, short height, void *poin, float min, float max, std::optional< StringRef > tip)
void block_theme_style_set(Block *block, char theme_style)
static float pie_menu_title_width(const char *name, int icon)
void button_funcN_set(Button *but, ButtonHandleNFunc funcN, void *argN, void *arg2, ButtonArgNFree func_argN_free_fn=MEM_delete_void, ButtonArgNCopy func_argN_copy_fn=MEM_dupalloc_void)
wmOperatorStatus pie_menu_invoke(bContext *C, const char *idname, const wmEvent *event)
PopupBlockHandle * popup_block_create(bContext *C, ARegion *butregion, Button *but, BlockCreateFunc create_func, BlockHandleCreateFunc handle_create_func, void *arg, FreeArgFunc arg_free, bool can_refresh)
int2 block_layout_resolve(Block *block)
void menutype_draw(bContext *C, MenuType *mt, Layout *layout)
uint popup_menu_hash(const StringRef str)
void block_region_set(Block *block, ARegion *region)
@ BLOCK_BOUNDS_PIE_CENTER
Layout & block_layout(Block *block, LayoutDirection direction, LayoutType type, int x, int y, int size, int em, int padding, const uiStyle *style)
void pie_menu_end(bContext *C, PieMenu *pie)
void pie_menu_level_create(Block *block, wmOperatorType *ot, StringRefNull propname, IDProperty *properties, const EnumPropertyItem *items, int totitem, wm::OpCallContext context, eUI_Item_Flag flag)
void * MEM_new_uninitialized(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
void WM_operator_properties_sanitize(PointerRNA *ptr, const bool no_context)
MenuType * WM_menutype_find(const StringRef idname, bool quiet)
PointerRNA WM_operator_properties_create_ptr(wmOperatorType *ot)
wmWindow * CTX_wm_window(const bContext *C)
int BLI_findindex(const ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
@ WM_HANDLER_ACCEPT_DBL_CLICK
bool WM_menutype_poll(bContext *C, MenuType *mt)
const char * RNA_struct_identifier(const StructRNA *type)
double BLI_time_now_seconds()
void WM_event_add_mousemove(wmWindow *win)
bke::ARegionRuntime * runtime
ListBaseT< ui::Block > uiblocks
ListBaseT< wmEventHandler > modalhandlers
BlockBoundsCalc bounds_type
std::unique_ptr< PieMenuData > pie_data
void op_enum_items(wmOperatorType *ot, const PointerRNA &ptr, PropertyRNA *prop, IDProperty *properties, wm::OpCallContext context, eUI_Item_Flag flag, const EnumPropertyItem *item_array, int totitem, int active=-1)
bke::WindowRuntime * runtime
short pie_event_type_lock
short pie_event_type_last