12#include "RNA_prototypes.hh"
25 U.runtime.is_dirty =
true;
33 layout.
label(title, ICON_NONE);
66 "UI_OT_unset_property_button",
92 if (old_but_count < 0) {
97 for (
Button &but : block->
buttons() | std::views::drop(old_but_count)) {
#define RNA_STRUCT_BEGIN_SKIP_RNA_TYPE(sptr, prop)
static void keymap_item_modified(bContext *, void *kmi_p, void *)
void button_func_set(Button *but, std::function< void(bContext &)> func)
void uiTemplateKeymapItemProperties(Layout *layout, PointerRNA *ptr)
Button * uiDefIconButO(Block *block, ButtonType type, StringRefNull opname, wm::OpCallContext opcontext, int icon, int x, int y, short width, short height, std::optional< StringRef > tip)
void button_flag_enable(Button *but, int64_t flag)
static void template_keymap_item_properties(Layout &layout, const char *title, PointerRNA *ptr)
void block_emboss_set(Block *block, EmbossType emboss)
PointerRNA RNA_property_pointer_get(PointerRNA *ptr, PropertyRNA *prop)
bool RNA_struct_is_a(const StructRNA *type, const StructRNA *srna)
void WM_operator_properties_sanitize(PointerRNA *ptr, const bool no_context)
PropertyType RNA_property_type(PropertyRNA *prop)
PointerRNA RNA_pointer_get(PointerRNA *ptr, const char *name)
void WM_keyconfig_update_tag(wmKeyMap *keymap, wmKeyMapItem *kmi)
bool RNA_property_is_set(PointerRNA *ptr, PropertyRNA *prop)
const char * RNA_property_ui_name(const PropertyRNA *prop, const PointerRNA *ptr)
Vector< std::unique_ptr< Button > > buttons_ptrs
std::ranges::transform_view< std::ranges::ref_view< const Vector< std::unique_ptr< Button > > >, Button &(*)(const std::unique_ptr< Button > &)> buttons() const
void label(StringRef name, int icon)
Layout & column_flow(int number, bool align)
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< StringRef > name_opt, int icon, std::optional< StringRef > placeholder=std::nullopt)
void active_set(bool active)
void separator(float factor=1.0f, LayoutSeparatorType type=LayoutSeparatorType::Auto)