27#define DEF_ICON(name) {ICON_##name, (#name), 0, (#name), ""},
28#define DEF_ICON_VECTOR(name) {ICON_##name, (#name), 0, (#name), ""},
29#define DEF_ICON_COLOR(name) {ICON_##name, (#name), 0, (#name), ""},
30#define DEF_ICON_BLANK(name)
33 {0,
nullptr, 0,
nullptr,
nullptr},
54 if (text_ctxt && text_ctxt[0]) {
81static void rna_uiItemR(
uiLayout *layout,
85 const char *text_ctxt,
88 const char *placeholder,
108 if (icon_value && !icon) {
126 else if (toggle == 0) {
139 if (emboss ==
false) {
142 if (invert_checkbox) {
149static void rna_uiItemR_with_popover(
uiLayout *layout,
151 const char *propname,
153 const char *text_ctxt,
157 const char *panel_type)
182static void rna_uiItemR_with_menu(
uiLayout *layout,
184 const char *propname,
186 const char *text_ctxt,
190 const char *menu_type)
212static void rna_uiItemMenuEnumR(
uiLayout *layout,
214 const char *propname,
216 const char *text_ctxt,
232static void rna_uiItemTabsEnumR(
uiLayout *layout,
235 const char *propname,
237 const char *propname_highlight,
255 if (!prop_highlight) {
278static void rna_uiItemEnumR_string(
uiLayout *layout,
280 const char *propname,
283 const char *text_ctxt,
300static void rna_uiItemPointerR(
uiLayout *layout,
302 const char *propname,
304 const char *searchpropname,
306 const char *text_ctxt,
309 const bool results_are_suggestions)
327 layout,
ptr, prop, searchptr, searchprop, name, icon, results_are_suggestions);
333 const char *text_ctxt,
339 const float search_weight)
345 RNA_warning(
"%s '%s'",
ot ?
"operator missing srna" :
"unknown operator", opname);
352 if (icon_value && !icon) {
356 if (emboss ==
false) {
377 const char *text_ctxt,
387 RNA_warning(
"%s '%s'",
ot ?
"operator missing srna" :
"unknown operator", opname);
393 if (icon_value && !icon) {
397 if (emboss ==
false) {
410static void rna_uiItemsEnumO(
uiLayout *layout,
412 const char *propname,
413 const bool icon_only)
422 const char *propname,
424 const char *text_ctxt,
431 RNA_warning(
"%s '%s'",
ot ?
"operator missing srna" :
"unknown operator", opname);
443static void rna_uiItemL(
uiLayout *layout,
445 const char *text_ctxt,
453 if (icon_value && !icon) {
460static void rna_uiItemM(
uiLayout *layout,
461 const char *menuname,
463 const char *text_ctxt,
471 if (icon_value && !icon) {
475 uiItemM(layout, menuname, name, icon);
478static void rna_uiItemM_contents(
uiLayout *layout,
const char *menuname)
483static void rna_uiItemPopoverPanel(
uiLayout *layout,
485 const char *panel_type,
487 const char *text_ctxt,
495 if (icon_value && !icon) {
502static void rna_uiItemPopoverPanelFromGroup(
uiLayout *layout,
507 const char *category)
512static void rna_uiItemProgress(
uiLayout *layout,
514 const char *text_ctxt,
526static void rna_uiItemSeparator(
uiLayout *layout,
float factor,
int type)
531static void rna_uiTemplateID(
uiLayout *layout,
534 const char *propname,
537 const char *unlinkop,
539 const bool live_icon,
541 const char *text_ctxt,
554 uiTemplateID(layout, C,
ptr, propname, newop, openop, unlinkop, filter, live_icon, name);
557static void rna_uiTemplateAnyID(
uiLayout *layout,
559 const char *propname,
560 const char *proptypename,
562 const char *text_ctxt,
579static void rna_uiTemplateAction(
uiLayout *layout,
583 const char *unlinkop,
585 const char *text_ctxt,
586 const bool translate)
592static void rna_uiTemplateSearch(
uiLayout *layout,
595 const char *propname,
597 const char *searchpropname,
599 const char *unlinkop,
601 const char *text_ctxt,
614 uiTemplateSearch(layout, C,
ptr, propname, searchptr, searchpropname, newop, unlinkop, name);
617static void rna_uiTemplateSearchPreview(
uiLayout *layout,
620 const char *propname,
622 const char *searchpropname,
624 const char *unlinkop,
626 const char *text_ctxt,
642 layout, C,
ptr, propname, searchptr, searchpropname, newop, unlinkop, rows, cols, name);
645void rna_uiTemplateList(
uiLayout *layout,
647 const char *listtype_name,
650 const char *propname,
652 const char *active_propname,
653 const char *item_dyntip_propname,
656 const int layout_type,
658 const bool sort_reverse,
659 const bool sort_lock)
677 item_dyntip_propname,
685static void rna_uiTemplateCacheFile(
uiLayout *layout,
688 const char *propname)
700static void rna_uiTemplateCacheFileVelocity(
uiLayout *layout,
702 const char *propname)
712static void rna_uiTemplateCacheFileProcedural(
uiLayout *layout,
715 const char *propname)
725static void rna_uiTemplateCacheFileTimeSettings(
uiLayout *layout,
727 const char *propname)
737static void rna_uiTemplateCacheFileLayers(
uiLayout *layout,
740 const char *propname)
750static void rna_uiTemplatePathBuilder(
uiLayout *layout,
752 const char *propname,
755 const char *text_ctxt,
772static void rna_uiTemplateEventFromKeymapItem(
780static void rna_uiTemplateAssetView(
uiLayout *layout,
784 const char *asset_library_propname,
786 const char *assets_propname,
788 const char *active_propname,
791 const char *activate_opname,
793 const char *drag_opname,
802 asset_library_dataptr,
803 asset_library_propname,
811 r_activate_op_properties,
813 r_drag_op_properties);
820static const EnumPropertyItem *rna_uiTemplateAssetView_filter_id_types_itemf(
845static uiLayout *rna_uiLayoutRowWithHeading(
846 uiLayout *layout,
bool align,
const char *heading,
const char *heading_ctxt,
bool translate)
853static uiLayout *rna_uiLayoutColumnWithHeading(
854 uiLayout *layout,
bool align,
const char *heading,
const char *heading_ctxt,
bool translate)
861void rna_uiLayoutPanelProp(
uiLayout *layout,
865 const char *property,
870 if (panel ==
nullptr) {
872 *r_layout_header =
nullptr;
873 *r_layout_body =
nullptr;
878 *r_layout_header = panel_layout.
header;
879 *r_layout_body = panel_layout.
body;
882void rna_uiLayoutPanel(
uiLayout *layout,
886 const bool default_closed,
891 if (panel ==
nullptr) {
893 *r_layout_header =
nullptr;
894 *r_layout_body =
nullptr;
898 *r_layout_header = panel_layout.
header;
899 *r_layout_body = panel_layout.
body;
902static void rna_uiLayout_template_node_asset_menu_items(
uiLayout *layout,
904 const char *catalog_path)
907 ed::space_node::ui_template_node_asset_menu_items(*layout, *C,
StringRef(catalog_path));
910static void rna_uiLayout_template_node_operator_asset_menu_items(
uiLayout *layout,
912 const char *catalog_path)
915 ed::geometry::ui_template_node_operator_asset_menu_items(*layout, *C,
StringRef(catalog_path));
918static void rna_uiLayout_template_modifier_asset_menu_items(
uiLayout *layout,
919 const char *catalog_path)
922 ed::object::ui_template_modifier_asset_menu_items(*layout,
StringRef(catalog_path));
925static void rna_uiLayout_template_node_operator_root_items(
uiLayout *layout,
bContext *C)
935static const char *rna_ui_get_enum_name(
bContext *C,
937 const char *propname,
938 const char *identifier)
943 const char *name =
"";
957 name = items[index].
name;
967static const char *rna_ui_get_enum_description(
bContext *C,
969 const char *propname,
970 const char *identifier)
975 const char *desc =
"";
999static int rna_ui_get_enum_icon(
bContext *C,
1001 const char *propname,
1002 const char *identifier)
1007 int icon = ICON_NONE;
1021 icon = items[index].
icon;
1031void rna_uiTemplateAssetShelfPopover(
uiLayout *layout,
1033 const char *asset_shelf_id,
1038 if (icon_value && !icon) {
1049 const char *text_ctxt,
1052 const char *cancel_text,
1053 bool cancel_default)
1068 RNA_warning(
"%s '%s'",
ot ?
"operator missing srna" :
"unknown operator", opname);
1075 if (cancel_text && cancel_text[0]) {
1080 layout,
ot, text, cancel_text, icon, cancel_default, &opptr);
1094 "Label to insert into the layout for this sub-layout");
1100 "Override automatic translation context of the given heading");
1102 func,
"translate",
true,
"",
"Translate the given heading, when UI translation is enabled");
1112 "Override automatic translation context of the given text");
1115 func,
"translate",
true,
"",
"Translate the given text, when UI translation is enabled");
1122 prop =
RNA_def_string(func,
"text",
nullptr, 0,
"",
"Override automatic text of the item");
1141 parm =
RNA_def_string(func,
"operator",
nullptr, 0,
"",
"Identifier of the operator");
1155 parm =
RNA_def_pointer(func,
"data",
"AnyType",
"",
"Data from which to take property");
1157 parm =
RNA_def_string(func,
"property",
nullptr, 0,
"",
"Identifier of property in data");
1167 {0,
"NONE", 0,
"None",
""},
1168 {
'v',
"VECTOR", 0,
"Vector",
""},
1169 {
'c',
"COLOR", 0,
"Color",
""},
1170 {
'h',
"HUE", 0,
"Hue",
""},
1171 {0,
nullptr, 0,
nullptr,
nullptr},
1177 {0,
nullptr, 0,
nullptr,
nullptr},
1183 {0,
nullptr, 0,
nullptr,
nullptr},
1191 "Do not display the name of each asset underneath preview images"},
1196 "Do not display buttons for filtering the available assets"},
1201 "Do not display buttons to choose or refresh an asset library"},
1202 {0,
nullptr, 0,
nullptr,
nullptr},
1210 "Best guess at what type of separator is needed."},
1215 "Horizontal or Vertical empty space, depending on layout direction."},
1220 "Horizontal or Vertical line, depending on layout direction."},
1221 {0,
nullptr, 0,
nullptr,
nullptr},
1224 static const float node_socket_color_default[] = {0.0f, 0.0f, 0.0f, 1.0f};
1228 parm =
RNA_def_pointer(func,
"layout",
"UILayout",
"",
"Sub-layout to put items in");
1232 "Sub-layout. Items placed in this sublayout are placed next to each other "
1234 RNA_def_boolean(func,
"align",
false,
"",
"Align buttons to each other");
1238 parm =
RNA_def_pointer(func,
"layout",
"UILayout",
"",
"Sub-layout to put items in");
1242 "Sub-layout. Items placed in this sublayout are placed under each other "
1244 RNA_def_boolean(func,
"align",
false,
"",
"Align buttons to each other");
1250 "Creates a collapsable panel. Whether it is open or closed is stored in the region using "
1251 "the given idname. This can only be used when the panel has the full width of the panel "
1252 "region available to it. So it can't be used in e.g. in a box or columns.");
1254 parm =
RNA_def_string(func,
"idname",
nullptr, 0,
"",
"Identifier of the panel");
1260 "When true, the panel will be open the first time it is shown");
1261 parm =
RNA_def_pointer(func,
"layout_header",
"UILayout",
"",
"Sub-layout to put items in");
1267 "Sub-layout to put items in. Will be none if the panel is collapsed.");
1273 "Similar to `.panel(...)` but instead of storing whether it is open or closed in the "
1274 "region, it is stored in the provided boolean property. This should be used when multiple "
1275 "instances of the same panel can exist. For example one for every item in a collection "
1276 "property or list. This can only be used when the panel has the full width of the panel "
1277 "region available to it. So it can't be used in e.g. in a box or columns.");
1280 func,
"data",
"AnyType",
"",
"Data from which to take the open-state property");
1288 "Identifier of the boolean property that determines whether the panel is open or closed");
1290 parm =
RNA_def_pointer(func,
"layout_header",
"UILayout",
"",
"Sub-layout to put items in");
1296 "Sub-layout to put items in. Will be none if the panel is collapsed.");
1300 RNA_def_int(func,
"columns", 0, 0, INT_MAX,
"",
"Number of columns, 0 is automatic", 0, INT_MAX);
1301 parm =
RNA_def_pointer(func,
"layout",
"UILayout",
"",
"Sub-layout to put items in");
1303 RNA_def_boolean(func,
"align",
false,
"",
"Align buttons to each other");
1306 RNA_def_boolean(func,
"row_major",
false,
"",
"Fill row by row, instead of column by column");
1314 "Number of columns, positive are absolute fixed numbers, 0 is automatic, negative are "
1315 "automatic multiple numbers along major axis (e.g. -2 will only produce 2, 4, 6 etc. "
1316 "columns for row major layout, and 2, 4, 6 etc. rows for column major layout).",
1319 RNA_def_boolean(func,
"even_columns",
false,
"",
"All columns will have the same width");
1320 RNA_def_boolean(func,
"even_rows",
false,
"",
"All rows will have the same height");
1321 RNA_def_boolean(func,
"align",
false,
"",
"Align buttons to each other");
1322 parm =
RNA_def_pointer(func,
"layout",
"UILayout",
"",
"Sub-layout to put items in");
1327 parm =
RNA_def_pointer(func,
"layout",
"UILayout",
"",
"Sub-layout to put items in");
1330 "Sublayout (items placed in this sublayout are placed "
1331 "under each other in a column and are surrounded by a box)");
1335 parm =
RNA_def_pointer(func,
"layout",
"UILayout",
"",
"Sub-layout to put items in");
1343 "Percentage of width to split at (leave unset for automatic calculation)",
1346 RNA_def_boolean(func,
"align",
false,
"",
"Align buttons to each other");
1350 parm =
RNA_def_pointer(func,
"layout",
"UILayout",
"",
"Sub-layout to put items in");
1353 "Sublayout. Items placed in this sublayout are placed "
1354 "in a radial fashion around the menu center).");
1358 parm =
RNA_def_int(func,
"icon_value", ICON_NONE, 0, INT_MAX,
"",
"Icon identifier", 0, INT_MAX);
1361 parm =
RNA_def_pointer(func,
"data",
"AnyType",
"",
"Data from which to take the icon");
1364 "Return the custom icon for this data, "
1365 "use it e.g. to get materials or texture icons.");
1369 parm =
RNA_def_string(func,
"name",
nullptr, 0,
"",
"UI name of the enum item");
1373 parm =
RNA_def_string(func,
"identifier",
nullptr, 0,
"",
"Identifier of the enum item");
1377 func =
RNA_def_function(srna,
"enum_item_description",
"rna_ui_get_enum_description");
1378 parm =
RNA_def_string(func,
"description",
nullptr, 0,
"",
"UI description of the enum item");
1382 parm =
RNA_def_string(func,
"identifier",
nullptr, 0,
"",
"Identifier of the enum item");
1387 parm =
RNA_def_int(func,
"icon_value", ICON_NONE, 0, INT_MAX,
"",
"Icon identifier", 0, INT_MAX);
1391 parm =
RNA_def_string(func,
"identifier",
nullptr, 0,
"",
"Identifier of the enum item");
1398 "Item. Exposes an RNA item and places it into the layout.");
1402 func,
"placeholder",
nullptr, 0,
"",
"Hint describing the expected value when empty");
1404 RNA_def_boolean(func,
"expand",
false,
"",
"Expand button to show more detail");
1405 RNA_def_boolean(func,
"slider",
false,
"",
"Use slider widget for numeric values");
1412 "Use toggle widget for boolean values, "
1413 "or a checkbox when disabled "
1414 "(the default is -1 which uses toggle only when an icon is displayed)",
1417 RNA_def_boolean(func,
"icon_only",
false,
"",
"Draw only icons in buttons, no text");
1418 RNA_def_boolean(func,
"event",
false,
"",
"Use button to input key events");
1420 func,
"full_event",
false,
"",
"Use button to input full events including modifiers");
1425 "Draw the button itself, not just the icon/text. When false, corresponds to the "
1426 "'NONE_OR_STATUS' layout emboss type.");
1434 "The index of this button, when set a single member of an array can be accessed, "
1435 "when set to -1 all array members are used",
1440 RNA_def_boolean(func,
"invert_checkbox",
false,
"",
"Draw checkbox value inverted");
1449 func =
RNA_def_function(srna,
"prop_with_popover",
"rna_uiItemR_with_popover");
1452 RNA_def_boolean(func,
"icon_only",
false,
"",
"Draw only icons in tabs, no text");
1453 parm =
RNA_def_string(func,
"panel",
nullptr, 0,
"",
"Identifier of the panel");
1459 RNA_def_boolean(func,
"icon_only",
false,
"",
"Draw only icons in tabs, no text");
1460 parm =
RNA_def_string(func,
"menu",
nullptr, 0,
"",
"Identifier of the menu");
1467 func,
"data_highlight",
"AnyType",
"",
"Data from which to take highlight property");
1470 func,
"property_highlight",
nullptr, 0,
"",
"Identifier of highlight property in data");
1471 RNA_def_boolean(func,
"icon_only",
false,
"",
"Draw only icons in tabs, no text");
1475 parm =
RNA_def_string(func,
"value",
nullptr, 0,
"",
"Enum property value");
1482 func,
"search_data",
"AnyType",
"",
"Data from which to take collection to search in");
1485 func,
"search_property",
nullptr, 0,
"",
"Identifier of search collection property");
1489 func,
"results_are_suggestions",
false,
"",
"Accept inputs that do not match any item");
1500 "The index of this button, when set a single member of an array can be accessed, "
1501 "when set to -1 all array members are used",
1505 for (
int is_menu_hold = 0; is_menu_hold < 2; is_menu_hold++) {
1506 func = (is_menu_hold) ?
RNA_def_function(srna,
"operator_menu_hold",
"rna_uiItemOMenuHold") :
1509 RNA_def_boolean(func,
"emboss",
true,
"",
"Draw the button itself, not just the icon/text");
1514 parm =
RNA_def_string(func,
"menu",
nullptr, 0,
"",
"Identifier of the menu");
1524 "Influences the sorting when using menu-seach",
1529 func,
"properties",
"OperatorProperties",
"",
"Operator properties to fill in");
1533 "Item. Places a button into the layout to call an Operator.");
1537 parm =
RNA_def_string(func,
"operator",
nullptr, 0,
"",
"Identifier of the operator");
1539 parm =
RNA_def_string(func,
"property",
nullptr, 0,
"",
"Identifier of property in operator");
1541 RNA_def_boolean(func,
"icon_only",
false,
"",
"Draw only icons in buttons, no text");
1543 func =
RNA_def_function(srna,
"operator_menu_enum",
"rna_uiItemMenuEnumO");
1547 parm =
RNA_def_string(func,
"property",
nullptr, 0,
"",
"Identifier of property in operator");
1551 func,
"properties",
"OperatorProperties",
"",
"Operator properties to fill in");
1558 func =
RNA_def_function(srna,
"operator_enum_single",
"uiItemEnumO_string");
1560 parm =
RNA_def_string(func,
"property",
nullptr, 0,
"",
"Identifier of property in operator");
1562 parm =
RNA_def_string(func,
"value",
nullptr, 0,
"",
"Enum property value");
1567 parm =
RNA_def_string(func,
"property",
nullptr, 0,
"",
"Identifier of property in operator");
1570 func,
"value",
false,
"",
"Value of the property to call the operator with");
1575 parm =
RNA_def_string(func,
"property",
nullptr, 0,
"",
"Identifier of property in operator");
1583 "Value of the property to call the operator with",
1590 parm =
RNA_def_string(func,
"property",
nullptr, 0,
"",
"Identifier of property in operator");
1598 "Value of the property to call the operator with",
1605 parm =
RNA_def_string(func,
"property",
nullptr, 0,
"",
"Identifier of property in operator");
1608 func,
"value",
nullptr, 0,
"",
"Value of the property to call the operator with");
1619 parm =
RNA_def_string(func,
"menu",
nullptr, 0,
"",
"Identifier of the menu");
1626 parm =
RNA_def_string(func,
"menu",
nullptr, 0,
"",
"Identifier of the menu");
1631 parm =
RNA_def_string(func,
"panel",
nullptr, 0,
"",
"Identifier of the panel");
1637 func =
RNA_def_function(srna,
"popover_group",
"rna_uiItemPopoverPanelFromGroup");
1644 parm =
RNA_def_string(func,
"context",
nullptr, 0,
"",
"panel type context");
1646 parm =
RNA_def_string(func,
"category",
nullptr, 0,
"",
"panel type category");
1651 "Item. Inserts empty space into the layout between items.");
1658 "Percentage of width to space (leave unset for default space)",
1663 rna_enum_separator_type_items,
1666 "The type of the separator");
1670 func,
"Item. Inserts horizontal spacing empty space into the layout between items.");
1681 "Amount of progress from 0.0f to 1.0f",
1686 progress_type_items,
1689 "The type of progress indicator");
1692 func =
RNA_def_function(srna,
"context_pointer_set",
"uiLayoutSetContextPointer");
1693 parm =
RNA_def_string(func,
"name",
nullptr, 0,
"Name",
"Name of entry in the context");
1695 parm =
RNA_def_pointer(func,
"data",
"AnyType",
"",
"Pointer to put in context");
1698 func =
RNA_def_function(srna,
"context_string_set",
"uiLayoutSetContextString");
1699 parm =
RNA_def_string(func,
"name",
nullptr, 0,
"Name",
"Name of entry in the context");
1701 parm =
RNA_def_string(func,
"value",
nullptr, 0,
"Value",
"String to put in context");
1712 RNA_def_string(func,
"new",
nullptr, 0,
"",
"Operator identifier to create a new ID block");
1718 "Operator identifier to open a file for creating a new ID block");
1719 RNA_def_string(func,
"unlink",
nullptr, 0,
"",
"Operator identifier to unlink the ID block");
1722 id_template_filter_items,
1725 "Optionally limit the items which can be selected");
1726 RNA_def_boolean(func,
"live_icon",
false,
"",
"Show preview instead of fixed icon");
1729 func =
RNA_def_function(srna,
"template_ID_preview",
"uiTemplateIDPreview");
1732 RNA_def_string(func,
"new",
nullptr, 0,
"",
"Operator identifier to create a new ID block");
1738 "Operator identifier to open a file for creating a new ID block");
1739 RNA_def_string(func,
"unlink",
nullptr, 0,
"",
"Operator identifier to unlink the ID block");
1741 func,
"rows", 0, 0, INT_MAX,
"Number of thumbnail preview rows to display",
"", 0, INT_MAX);
1747 "Number of thumbnail preview columns to display",
1753 id_template_filter_items,
1756 "Optionally limit the items which can be selected");
1757 RNA_def_boolean(func,
"hide_buttons",
false,
"",
"Show only list, no buttons");
1760 parm =
RNA_def_pointer(func,
"data",
"AnyType",
"",
"Data from which to take property");
1762 parm =
RNA_def_string(func,
"property",
nullptr, 0,
"",
"Identifier of property in data");
1769 "Identifier of property in data giving the type of the ID-blocks to use");
1776 RNA_def_string(func,
"new",
nullptr, 0,
"",
"Operator identifier to create a new ID block");
1777 RNA_def_string(func,
"menu",
nullptr, 0,
"",
"Context menu identifier");
1780 id_template_filter_items,
1783 "Optionally limit the items which can be selected");
1787 parm =
RNA_def_pointer(func,
"id",
"ID",
"",
"The data-block for which to select an Action");
1789 RNA_def_string(func,
"new",
nullptr, 0,
"",
"Operator identifier to create a new ID block");
1790 RNA_def_string(func,
"unlink",
nullptr, 0,
"",
"Operator identifier to unlink the ID block");
1797 func,
"search_data",
"AnyType",
"",
"Data from which to take collection to search in");
1800 func,
"search_property",
nullptr, 0,
"",
"Identifier of search collection property");
1803 func,
"new",
nullptr, 0,
"",
"Operator identifier to create a new item for the collection");
1809 "Operator identifier to unlink or delete the active "
1810 "item from the collection");
1813 func =
RNA_def_function(srna,
"template_search_preview",
"rna_uiTemplateSearchPreview");
1817 func,
"search_data",
"AnyType",
"",
"Data from which to take collection to search in");
1820 func,
"search_property",
nullptr, 0,
"",
"Identifier of search collection property");
1823 func,
"new",
nullptr, 0,
"",
"Operator identifier to create a new item for the collection");
1829 "Operator identifier to unlink or delete the active "
1830 "item from the collection");
1833 func,
"rows", 0, 0, INT_MAX,
"Number of thumbnail preview rows to display",
"", 0, INT_MAX);
1839 "Number of thumbnail preview columns to display",
1844 func =
RNA_def_function(srna,
"template_path_builder",
"rna_uiTemplatePathBuilder");
1845 parm =
RNA_def_pointer(func,
"data",
"AnyType",
"",
"Data from which to take property");
1847 parm =
RNA_def_string(func,
"property",
nullptr, 0,
"",
"Identifier of property in data");
1849 parm =
RNA_def_pointer(func,
"root",
"ID",
"",
"ID-block from which path is evaluated from");
1853 func =
RNA_def_function(srna,
"template_modifiers",
"uiTemplateModifiers");
1857 func =
RNA_def_function(srna,
"template_collection_exporters",
"uiTemplateCollectionExporters");
1861 func =
RNA_def_function(srna,
"template_constraints",
"uiTemplateConstraints");
1865 "use_bone_constraints",
1868 "Add panels for bone constraints instead of object constraints");
1874 func =
RNA_def_function(srna,
"template_greasepencil_color",
"uiTemplateGpencilColorPreview");
1878 func,
"rows", 0, 0, INT_MAX,
"Number of thumbnail preview rows to display",
"", 0, INT_MAX);
1884 "Number of thumbnail preview columns to display",
1888 RNA_def_float(func,
"scale", 1.0f, 0.1f, 1.5f,
"Scale of the image thumbnails",
"", 0.5f, 1.0f);
1891 id_template_filter_items,
1894 "Optionally limit the items which can be selected");
1896 func =
RNA_def_function(srna,
"template_constraint_header",
"uiTemplateConstraintHeader");
1898 parm =
RNA_def_pointer(func,
"data",
"Constraint",
"",
"Constraint data");
1903 func,
"Item. A preview window for materials, textures, lights or worlds.");
1907 RNA_def_boolean(func,
"show_buttons",
true,
"",
"Show preview buttons?");
1916 "Identifier of this preview widget, if not set the ID type will be used "
1917 "(i.e. all previews of materials without explicit ID will have the same size...).");
1919 func =
RNA_def_function(srna,
"template_curve_mapping",
"uiTemplateCurveMapping");
1921 func,
"Item. A curve mapping widget used for e.g falloff curves for lights.");
1924 RNA_def_boolean(func,
"levels",
false,
"",
"Show black/white levels");
1926 RNA_def_boolean(func,
"use_negative_slope",
false,
"",
"Use a negative slope by default");
1929 func =
RNA_def_function(srna,
"template_curveprofile",
"uiTemplateCurveProfile");
1933 func =
RNA_def_function(srna,
"template_color_ramp",
"uiTemplateColorRamp");
1936 RNA_def_boolean(func,
"expand",
false,
"",
"Expand button to show more detail");
1940 parm =
RNA_def_int(func,
"icon_value", 0, 0, INT_MAX,
"Icon to display",
"", 0, INT_MAX);
1948 "Scale the icon size (by the button size)",
1955 RNA_def_boolean(func,
"show_labels",
false,
"",
"Show enum label in preview buttons");
1962 "Scale the button icon size (by the button size)",
1971 "Scale the popup icon size (by the button size)",
1975 func =
RNA_def_function(srna,
"template_histogram",
"uiTemplateHistogram");
1983 func =
RNA_def_function(srna,
"template_vectorscope",
"uiTemplateVectorscope");
1990 func,
"used_layers_data",
"AnyType",
"",
"Data from which to take property");
1993 func,
"used_layers_property",
nullptr, 0,
"",
"Identifier of property in data");
1995 parm =
RNA_def_int(func,
"active_layer", 0, 0, INT_MAX,
"Active Layer",
"", 0, INT_MAX);
1998 func =
RNA_def_function(srna,
"template_color_picker",
"uiTemplateColorPicker");
2002 func,
"value_slider",
false,
"",
"Display the value slider to the right of the color wheel");
2007 "Lock the color wheel display to value 1.0 regardless of actual color");
2009 func,
"lock_luminosity",
false,
"",
"Keep the color at its original vector length");
2010 RNA_def_boolean(func,
"cubic",
false,
"",
"Cubic saturation for picking values close to white");
2015 RNA_def_boolean(func,
"color",
false,
"",
"Display the colors as colors or values");
2017 func =
RNA_def_function(srna,
"template_image_layers",
"uiTemplateImageLayers");
2026 func,
"Item(s). User interface for selecting images and their source paths.");
2031 RNA_def_boolean(func,
"compact",
false,
"",
"Use more compact layout");
2032 RNA_def_boolean(func,
"multiview",
false,
"",
"Expose Multi-View options");
2034 func =
RNA_def_function(srna,
"template_image_settings",
"uiTemplateImageSettings");
2036 parm =
RNA_def_pointer(func,
"image_settings",
"ImageFormatSettings",
"",
"");
2038 RNA_def_boolean(func,
"color_management",
false,
"",
"Show color management settings");
2040 func =
RNA_def_function(srna,
"template_image_stereo_3d",
"uiTemplateImageStereo3d");
2042 parm =
RNA_def_pointer(func,
"stereo_3d_format",
"Stereo3dFormat",
"",
"");
2045 func =
RNA_def_function(srna,
"template_image_views",
"uiTemplateImageViews");
2047 parm =
RNA_def_pointer(func,
"image_settings",
"ImageFormatSettings",
"",
"");
2050 func =
RNA_def_function(srna,
"template_movieclip",
"uiTemplateMovieClip");
2052 func,
"Item(s). User interface for selecting movie clips and their source paths.");
2055 RNA_def_boolean(func,
"compact",
false,
"",
"Use more compact layout");
2068 RNA_def_boolean(func,
"compact",
false,
"",
"Use more compact layout");
2071 srna,
"template_movieclip_information",
"uiTemplateMovieclipInformation");
2081 func,
"listtype_name",
nullptr, 0,
"",
"Identifier of the list type to use");
2089 "Identifier of this list widget. Necessary to tell apart different list widgets. Mandatory "
2092 "If this not an empty string, the uilist gets a custom ID, otherwise it takes the "
2093 "name of the class used to define the uilist (for example, if the "
2094 "class name is \"OBJECT_UL_vgroups\", and list_id is not set by the "
2095 "script, then bl_idname = \"OBJECT_UL_vgroups\")");
2098 func,
"dataptr",
"AnyType",
"",
"Data from which to take the Collection property");
2101 func,
"propname",
nullptr, 0,
"",
"Identifier of the Collection property in data");
2107 "Data from which to take the integer property, index of the active item");
2115 "Identifier of the integer property in active_data, index of the active item");
2118 "item_dyntip_propname",
2122 "Identifier of a string property in items, to use as tooltip content");
2129 "Default and minimum number of rows to display",
2133 func,
"maxrows", 5, 0, INT_MAX,
"",
"Default maximum number of rows to display", 0, INT_MAX);
2139 "Type of layout to use");
2146 "Number of items to display per row, for GRID layout",
2149 RNA_def_boolean(func,
"sort_reverse",
false,
"",
"Display items in reverse order by default");
2150 RNA_def_boolean(func,
"sort_lock",
false,
"",
"Lock display order to default value");
2152 func =
RNA_def_function(srna,
"template_running_jobs",
"uiTemplateRunningJobs");
2155 RNA_def_function(srna,
"template_operator_search",
"uiTemplateOperatorSearch");
2158 func =
RNA_def_function(srna,
"template_header_3D_mode",
"uiTemplateHeader3D_mode");
2162 func =
RNA_def_function(srna,
"template_edit_mode_selection",
"uiTemplateEditModeSelection");
2165 func,
"Inserts common 3DView Edit modes header UI (selector for selection mode)");
2167 func =
RNA_def_function(srna,
"template_reports_banner",
"uiTemplateReportsBanner");
2170 func =
RNA_def_function(srna,
"template_input_status",
"uiTemplateInputStatus");
2173 func =
RNA_def_function(srna,
"template_status_info",
"uiTemplateStatusInfo");
2195 srna,
"template_node_asset_menu_items",
"rna_uiLayout_template_node_asset_menu_items");
2200 "template_modifier_asset_menu_items",
2201 "rna_uiLayout_template_modifier_asset_menu_items");
2205 "template_node_operator_asset_menu_items",
2206 "rna_uiLayout_template_node_operator_asset_menu_items");
2211 "template_node_operator_asset_root_items",
2212 "rna_uiLayout_template_node_operator_root_items");
2215 func =
RNA_def_function(srna,
"template_texture_user",
"uiTemplateTextureUser");
2219 srna,
"template_keymap_item_properties",
"uiTemplateKeymapItemProperties");
2223 func =
RNA_def_function(srna,
"template_component_menu",
"uiTemplateComponentMenu");
2225 parm =
RNA_def_pointer(func,
"data",
"AnyType",
"",
"Data from which to take property");
2227 parm =
RNA_def_string(func,
"property",
nullptr, 0,
"",
"Identifier of property in data");
2232 func =
RNA_def_function(srna,
"template_colorspace_settings",
"uiTemplateColorspaceSettings");
2237 srna,
"template_colormanaged_view_settings",
"uiTemplateColormanagedViewSettings");
2243 "show_global_settings",
2246 "Show widgets to control global color management settings");
2250 func =
RNA_def_function(srna,
"template_node_socket",
"uiTemplateNodeSocket");
2254 func,
"color", 4, node_socket_color_default, 0.0f, 1.0f,
"Color",
"", 0.0f, 1.0f);
2256 func =
RNA_def_function(srna,
"template_cache_file",
"rna_uiTemplateCacheFile");
2258 func,
"Item(s). User interface for selecting cache files and their source paths");
2262 func =
RNA_def_function(srna,
"template_cache_file_velocity",
"rna_uiTemplateCacheFileVelocity");
2267 srna,
"template_cache_file_procedural",
"rna_uiTemplateCacheFileProcedural");
2273 srna,
"template_cache_file_time_settings",
"rna_uiTemplateCacheFileTimeSettings");
2277 func =
RNA_def_function(srna,
"template_cache_file_layers",
"rna_uiTemplateCacheFileLayers");
2282 func =
RNA_def_function(srna,
"template_recent_files",
"uiTemplateRecentFiles");
2284 RNA_def_int(func,
"rows", 5, 1, INT_MAX,
"",
"Maximum number of items to show", 1, INT_MAX);
2285 parm =
RNA_def_int(func,
"found", 0, 0, INT_MAX,
"",
"Number of items drawn", 0, INT_MAX);
2288 func =
RNA_def_function(srna,
"template_file_select_path",
"uiTemplateFileSelectPath");
2290 "Item. A text button to set the active file browser path.");
2296 srna,
"template_event_from_keymap_item",
"rna_uiTemplateEventFromKeymapItem");
2304 func =
RNA_def_function(srna,
"template_asset_view",
"rna_uiTemplateAssetView");
2312 "Identifier of this asset view. Necessary to tell apart different asset "
2313 "views and to identify an asset view read from a .blend");
2316 "asset_library_dataptr",
2319 "Data from which to take the active asset library property");
2322 func,
"asset_library_propname",
nullptr, 0,
"",
"Identifier of the asset library property");
2325 func,
"assets_dataptr",
"AnyType",
"",
"Data from which to take the asset list property");
2328 func,
"assets_propname",
nullptr, 0,
"",
"Identifier of the asset list property");
2334 "Data from which to take the integer property, index of the active item");
2342 "Identifier of the integer property in active_data, index of the active item");
2347 parm,
nullptr,
nullptr,
"rna_uiTemplateAssetView_filter_id_types_itemf");
2351 asset_view_template_options,
2354 "Displaying options for the asset view");
2356 "activate_operator",
2360 "Name of a custom operator to invoke when activating an item");
2363 "activate_operator_properties",
2364 "OperatorProperties",
2366 "Operator properties to fill in for the custom activate operator passed to the template");
2374 "Name of a custom operator to invoke when starting to drag an item. Never "
2375 "invoked together with the ``active_operator`` (if set), it's either the drag or "
2376 "the activate one");
2379 "drag_operator_properties",
2380 "OperatorProperties",
2382 "Operator properties to fill in for the custom drag operator passed to the template");
2387 srna,
"template_light_linking_collection",
"uiTemplateLightLinkingCollection");
2389 "Visualization of a content of a light linking collection");
2394 "Layout to set active list element as context properties");
2398 func =
RNA_def_function(srna,
"template_bone_collection_tree",
"uiTemplateBoneCollectionTree");
2403 srna,
"template_grease_pencil_layer_tree",
"uiTemplateGreasePencilLayerTree");
2407 func =
RNA_def_function(srna,
"template_node_tree_interface",
"uiTemplateNodeTreeInterface");
2411 "NodeTreeInterface",
2412 "Node Tree Interface",
2413 "Interface of a node tree to display");
2416 func =
RNA_def_function(srna,
"template_node_inputs",
"uiTemplateNodeInputs");
2419 parm =
RNA_def_pointer(func,
"node",
"Node",
"Node",
"Display inputs of this node");
2422 func =
RNA_def_function(srna,
"template_asset_shelf_popover",
"rna_uiTemplateAssetShelfPopover");
2430 "Identifier of the asset shelf to display (``bl_idname``)");
2433 func,
"name",
nullptr, 0,
"",
"Optional name to indicate the active asset");
2442 func =
RNA_def_function(srna,
"template_popup_confirm",
"rna_uiTemplatePopupConfirm");
2449 "Optional text to use for the cancel, not shown when an empty string");
2450 RNA_def_boolean(func,
"cancel_default",
false,
"",
"Cancel button by default");
2452 func,
"Add confirm & cancel buttons into a popup which will close the popup when pressed");
2456 func,
"properties",
"OperatorProperties",
"",
"Operator properties to fill in");
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
void BLI_kdtree_nd_ free(KDTree *tree)
bool BLT_translate_iface()
const char * BLT_pgettext(const char *msgctxt, const char *msgid)
#define BLT_I18NCONTEXT_DEFAULT
#define RNA_warning(format,...)
constexpr PointerRNA PointerRNA_NULL
Panel * uiLayoutGetRootPanel(uiLayout *layout)
void uiItemsFullEnumO(uiLayout *layout, const char *opname, const char *propname, IDProperty *properties, wmOperatorCallContext context, eUI_Item_Flag flag, const int active=-1)
void uiTemplateSearch(uiLayout *layout, const bContext *C, PointerRNA *ptr, const char *propname, PointerRNA *searchptr, const char *searchpropname, const char *newop, const char *unlinkop, const char *text=nullptr)
void uiLayoutSetSearchWeight(uiLayout *layout, float weight)
void uiItemL(uiLayout *layout, const char *name, int icon)
void uiTemplateCacheFileProcedural(uiLayout *layout, const bContext *C, PointerRNA *fileptr)
void uiItemFullR_with_popover(uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, const char *name, int icon, const char *panel_type)
void uiTemplateAssetView(uiLayout *layout, const bContext *C, const char *list_id, PointerRNA *asset_library_dataptr, const char *asset_library_propname, PointerRNA *assets_dataptr, const char *assets_propname, PointerRNA *active_dataptr, const char *active_propname, const blender::ed::asset::AssetFilterSettings *filter_settings, int display_flags, const char *activate_opname, PointerRNA *r_activate_op_properties, const char *drag_opname, PointerRNA *r_drag_op_properties)
void uiTemplateCacheFileLayers(uiLayout *layout, const bContext *C, PointerRNA *fileptr)
uiBlock * uiLayoutGetBlock(uiLayout *layout)
void UI_popup_block_template_confirm_op(uiLayout *layout, wmOperatorType *ot, const char *confirm_text, const char *cancel_text, const int icon, bool cancel_default, PointerRNA *r_ptr)
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)
bool uiTemplateCacheFilePointer(PointerRNA *ptr, const char *propname, PointerRNA *r_file_ptr)
@ UI_BUT_PROGRESS_TYPE_BAR
@ UI_BUT_PROGRESS_TYPE_RING
void uiTemplateAction(uiLayout *layout, const bContext *C, ID *id, const char *newop, const char *unlinkop, const char *text)
void uiTemplateAnyID(uiLayout *layout, PointerRNA *ptr, const char *propname, const char *proptypename, const char *text)
wmOperatorCallContext uiLayoutGetOperatorContext(uiLayout *layout)
void uiItemPopoverPanelFromGroup(uiLayout *layout, bContext *C, int space_id, int region_id, const char *context, const char *category)
uiLayout * uiLayoutRowWithHeading(uiLayout *layout, bool align, const char *heading)
void uiItemS_ex(uiLayout *layout, float factor, LayoutSeparatorType type=LayoutSeparatorType::Auto)
void uiItemFullO_ptr(uiLayout *layout, wmOperatorType *ot, const char *name, int icon, IDProperty *properties, wmOperatorCallContext context, eUI_Item_Flag flag, PointerRNA *r_opptr)
float uiLayoutGetSearchWeight(uiLayout *layout)
void uiItemMenuEnumR_prop(uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, const char *name, int icon)
void uiTemplateList(uiLayout *layout, const bContext *C, const char *listtype_name, const char *list_id, PointerRNA *dataptr, const char *propname, PointerRNA *active_dataptr, const char *active_propname, const char *item_dyntip_propname, int rows, int maxrows, int layout_type, int columns, enum uiTemplateListFlags flags)
void uiItemProgressIndicator(uiLayout *layout, const char *text, float factor, enum eButProgressType progress_type)
#define UI_UL_DEFAULT_CLASS_NAME
void uiTemplateCacheFileVelocity(uiLayout *layout, PointerRNA *fileptr)
PanelLayout uiLayoutPanel(const bContext *C, uiLayout *layout, const char *idname, bool default_closed)
void uiItemMContents(uiLayout *layout, const char *menuname)
void uiItemFullR_with_menu(uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, const char *name, int icon, const char *menu_type)
void uiItemEnumR_string_prop(uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, const char *value, const char *name, int icon)
uiLayout * uiLayoutColumnWithHeading(uiLayout *layout, bool align, const char *heading)
bool uiTemplateEventFromKeymapItem(uiLayout *layout, const char *text, const wmKeyMapItem *kmi, bool text_fallback)
PanelLayout uiLayoutPanelProp(const bContext *C, uiLayout *layout, PointerRNA *open_prop_owner, const char *open_prop_name)
bool UI_popup_block_template_confirm_is_supported(const uiBlock *block)
void uiTemplateID(uiLayout *layout, const bContext *C, PointerRNA *ptr, const char *propname, const char *newop, const char *openop, const char *unlinkop, int filter=UI_TEMPLATE_ID_FILTER_ALL, bool live_icon=false, const char *text=nullptr)
void uiItemFullOMenuHold_ptr(uiLayout *layout, wmOperatorType *ot, const char *name, int icon, IDProperty *properties, wmOperatorCallContext context, eUI_Item_Flag flag, const char *menu_id, PointerRNA *r_opptr)
void uiItemPointerR_prop(uiLayout *layout, PointerRNA *ptr, PropertyRNA *prop, PointerRNA *searchptr, PropertyRNA *searchprop, const char *name, int icon, bool results_are_suggestions)
void uiTemplateSearchPreview(uiLayout *layout, bContext *C, PointerRNA *ptr, const char *propname, PointerRNA *searchptr, const char *searchpropname, const char *newop, const char *unlinkop, int rows, int cols, const char *text=nullptr)
@ UI_TEMPLATE_ID_FILTER_AVAILABLE
@ UI_TEMPLATE_ID_FILTER_ALL
void uiTemplateCacheFile(uiLayout *layout, const bContext *C, PointerRNA *ptr, const char *propname)
void uiTemplatePathBuilder(uiLayout *layout, PointerRNA *ptr, const char *propname, PointerRNA *root_ptr, const char *text)
@ UI_TEMPLATE_ASSET_DRAW_NO_NAMES
@ UI_TEMPLATE_ASSET_DRAW_NO_LIBRARY
@ UI_TEMPLATE_ASSET_DRAW_NO_FILTER
void uiItemMenuEnumFullO_ptr(uiLayout *layout, const bContext *C, wmOperatorType *ot, const char *propname, const char *name, int icon, PointerRNA *r_opptr)
void uiTemplateCacheFileTimeSettings(uiLayout *layout, PointerRNA *fileptr)
void uiItemTabsEnumR_prop(uiLayout *layout, bContext *C, PointerRNA *ptr, PropertyRNA *prop, PointerRNA *ptr_highlight, PropertyRNA *prop_highlight, bool icon_only)
void uiItemPopoverPanel(uiLayout *layout, const bContext *C, const char *panel_type, const char *name, int icon)
@ UI_TEMPLATE_LIST_SORT_LOCK
@ UI_TEMPLATE_LIST_SORT_REVERSE
@ UI_TEMPLATE_LIST_FLAG_NONE
void uiItemM(uiLayout *layout, const char *menuname, const char *name, int icon)
@ UI_ITEM_R_CHECKBOX_INVERT
int UI_icon_from_rnaptr(const bContext *C, PointerRNA *ptr, int rnaicon, bool big)
draw_view push_constant(Type::INT, "radiance_src") .push_constant(Type capture_info_buf storage_buf(1, Qualifier::READ, "ObjectBounds", "bounds_buf[]") .push_constant(Type draw_view int
void MEM_freeN(void *vmemh)
void ui_template_node_operator_asset_root_items(uiLayout &layout, const bContext &C)
void template_asset_shelf_popover(uiLayout &layout, const bContext &C, StringRefNull asset_shelf_id, StringRefNull name, int icon)
const IDFilterEnumPropertyItem rna_enum_id_type_filter_items[]
bool RNA_property_array_check(PropertyRNA *prop)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
int RNA_enum_from_identifier(const EnumPropertyItem *item, const char *identifier)
PropertyType RNA_property_type(PropertyRNA *prop)
const char * RNA_struct_identifier(const StructRNA *type)
void RNA_property_enum_items_gettexted(bContext *C, PointerRNA *ptr, PropertyRNA *prop, const EnumPropertyItem **r_item, int *r_totitem, bool *r_free)
const char * RNA_property_translation_context(const PropertyRNA *prop)
int RNA_struct_ui_icon(const StructRNA *type)
bool RNA_pointer_is_null(const PointerRNA *ptr)
PropertySubType RNA_property_subtype(PropertyRNA *prop)
void RNA_property_enum_items(bContext *C, PointerRNA *ptr, PropertyRNA *prop, const EnumPropertyItem **r_item, int *r_totitem, bool *r_free)
const char * RNA_struct_translation_context(const StructRNA *type)
static const EnumPropertyItem curve_type_items[]
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
PropertyRNA * RNA_def_float(StructOrFunctionRNA *cont_, const char *identifier, const float default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
PropertyRNA * RNA_def_enum_flag(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
void RNA_enum_item_end(EnumPropertyItem **items, int *totitem)
void RNA_def_function_flag(FunctionRNA *func, int flag)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
PropertyRNA * RNA_def_float_array(StructOrFunctionRNA *cont_, const char *identifier, const int len, const float *default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
void RNA_def_function_output(FunctionRNA *, PropertyRNA *ret)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, const int default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
const char * rna_translate_ui_text(const char *text, const char *text_ctxt, StructRNA *type, PropertyRNA *prop, bool translate)
const EnumPropertyItem rna_enum_dummy_NULL_items[]
const EnumPropertyItem rna_enum_region_type_items[]
const EnumPropertyItem rna_enum_space_type_items[]
const EnumPropertyItem rna_enum_uilist_layout_type_items[]
static void api_ui_item_common_text(FunctionRNA *func)
static void api_ui_item_common(FunctionRNA *func)
static void api_ui_item_rna_common(FunctionRNA *func)
static void api_ui_item_op(FunctionRNA *func)
static void api_ui_item_op_common(FunctionRNA *func)
static void api_ui_item_common_heading(FunctionRNA *func)
const EnumPropertyItem rna_enum_icon_items[]
void RNA_api_ui_layout(StructRNA *srna)
void api_ui_item_common_translation(FunctionRNA *func)
wmOperatorType * WM_operatortype_find(const char *idname, bool quiet)