26 #define DEF_ICON(name) {ICON_##name, (#name), 0, (#name), ""},
27 #define DEF_ICON_VECTOR(name) {ICON_##name, (#name), 0, (#name), ""},
28 #define DEF_ICON_COLOR(name) {ICON_##name, (#name), 0, (#name), ""},
29 #define DEF_ICON_BLANK(name)
48 if (text_ctxt && text_ctxt[0]) {
75 static void rna_uiItemR(
uiLayout *layout,
79 const char *text_ctxt,
101 if (icon_value && !icon) {
113 else if (toggle == 0) {
125 static void rna_uiItemR_with_popover(
uiLayout *layout,
127 const char *propname,
129 const char *text_ctxt,
133 const char *panel_type)
156 static void rna_uiItemR_with_menu(
uiLayout *layout,
158 const char *propname,
160 const char *text_ctxt,
164 const char *menu_type)
185 static void rna_uiItemMenuEnumR(
uiLayout *layout,
187 const char *propname,
189 const char *text_ctxt,
205 static void rna_uiItemTabsEnumR(
uiLayout *layout,
208 const char *propname,
210 const char *propname_highlight,
228 if (!prop_highlight) {
251 static void rna_uiItemEnumR_string(
uiLayout *layout,
253 const char *propname,
256 const char *text_ctxt,
273 static void rna_uiItemPointerR(
uiLayout *layout,
275 const char *propname,
277 const char *searchpropname,
279 const char *text_ctxt,
282 const bool results_are_suggestions)
300 layout,
ptr, prop, searchptr, searchprop, name, icon, results_are_suggestions);
306 const char *text_ctxt,
317 RNA_warning(
"%s '%s'",
ot ?
"unknown operator" :
"operator missing srna", opname);
324 if (icon_value && !icon) {
338 const char *text_ctxt,
348 RNA_warning(
"%s '%s'",
ot ?
"unknown operator" :
"operator missing srna", opname);
354 if (icon_value && !icon) {
366 static void rna_uiItemsEnumO(
uiLayout *layout,
368 const char *propname,
369 const bool icon_only)
378 const char *propname,
380 const char *text_ctxt,
387 RNA_warning(
"%s '%s'",
ot ?
"unknown operator" :
"operator missing srna", opname);
399 static void rna_uiItemL(
uiLayout *layout,
401 const char *text_ctxt,
409 if (icon_value && !icon) {
416 static void rna_uiItemM(
uiLayout *layout,
417 const char *menuname,
419 const char *text_ctxt,
427 if (icon_value && !icon) {
431 uiItemM(layout, menuname, name, icon);
434 static void rna_uiItemM_contents(
uiLayout *layout,
const char *menuname)
439 static void rna_uiItemPopoverPanel(
uiLayout *layout,
441 const char *panel_type,
443 const char *text_ctxt,
451 if (icon_value && !icon) {
458 static void rna_uiItemPopoverPanelFromGroup(
uiLayout *layout,
463 const char *category)
468 static void rna_uiTemplateID(
uiLayout *layout,
471 const char *propname,
474 const char *unlinkop,
476 const bool live_icon,
478 const char *text_ctxt,
494 static void rna_uiTemplateAnyID(
uiLayout *layout,
496 const char *propname,
497 const char *proptypename,
499 const char *text_ctxt,
516 void rna_uiTemplateList(
uiLayout *layout,
518 const char *listtype_name,
521 const char *propname,
523 const char *active_propname,
524 const char *item_dyntip_propname,
527 const int layout_type,
529 const bool sort_reverse,
530 const bool sort_lock)
548 item_dyntip_propname,
556 static void rna_uiTemplateCacheFile(
uiLayout *layout,
559 const char *propname)
571 static void rna_uiTemplateCacheFileVelocity(
uiLayout *layout,
573 const char *propname)
583 static void rna_uiTemplateCacheFileProcedural(
uiLayout *layout,
586 const char *propname)
596 static void rna_uiTemplateCacheFileTimeSettings(
uiLayout *layout,
598 const char *propname)
608 static void rna_uiTemplateCacheFileLayers(
uiLayout *layout,
611 const char *propname)
621 static void rna_uiTemplatePathBuilder(
uiLayout *layout,
623 const char *propname,
626 const char *text_ctxt,
643 static void rna_uiTemplateEventFromKeymapItem(
651 static void rna_uiTemplateAssetView(
uiLayout *layout,
655 const char *asset_library_propname,
657 const char *assets_propname,
659 const char *active_propname,
662 const char *activate_opname,
664 const char *drag_opname,
674 asset_library_dataptr,
675 asset_library_propname,
683 r_activate_op_properties,
685 r_drag_op_properties);
692 static const EnumPropertyItem *rna_uiTemplateAssetView_filter_id_types_itemf(
717 static uiLayout *rna_uiLayoutRowWithHeading(
718 uiLayout *layout,
bool align,
const char *heading,
const char *heading_ctxt,
bool translate)
725 static uiLayout *rna_uiLayoutColumnWithHeading(
726 uiLayout *layout,
bool align,
const char *heading,
const char *heading_ctxt,
bool translate)
738 static const char *rna_ui_get_enum_name(
bContext *
C,
740 const char *propname,
741 const char *identifier)
746 const char *name =
"";
760 name = items[index].
name;
770 static const char *rna_ui_get_enum_description(
bContext *
C,
772 const char *propname,
773 const char *identifier)
778 const char *desc =
"";
802 static int rna_ui_get_enum_icon(
bContext *
C,
804 const char *propname,
805 const char *identifier)
810 int icon = ICON_NONE;
824 icon = items[index].
icon;
843 "Label to insert into the layout for this sub-layout");
849 "Override automatic translation context of the given heading");
851 func,
"translate",
true,
"",
"Translate the given heading, when UI translation is enabled");
858 prop =
RNA_def_string(func,
"text",
NULL, 0,
"",
"Override automatic text of the item");
861 func,
"text_ctxt",
NULL, 0,
"",
"Override automatic translation context of the given text");
864 func,
"translate",
true,
"",
"Translate the given text, when UI translation is enabled");
895 parm =
RNA_def_pointer(func,
"data",
"AnyType",
"",
"Data from which to take property");
897 parm =
RNA_def_string(func,
"property",
NULL, 0,
"",
"Identifier of property in data");
907 {0,
"NONE", 0,
"None",
""},
908 {
'v',
"VECTOR", 0,
"Vector",
""},
909 {
'c',
"COLOR", 0,
"Color",
""},
910 {
'h',
"HUE", 0,
"Hue",
""},
925 "Do not display the name of each asset underneath preview images"},
930 "Do not display buttons for filtering the available assets"},
935 "Do not display buttons to choose or refresh an asset library"},
939 static float node_socket_color_default[] = {0.0f, 0.0f, 0.0f, 1.0f};
943 parm =
RNA_def_pointer(func,
"layout",
"UILayout",
"",
"Sub-layout to put items in");
947 "Sub-layout. Items placed in this sublayout are placed next to each other "
949 RNA_def_boolean(func,
"align",
false,
"",
"Align buttons to each other");
953 parm =
RNA_def_pointer(func,
"layout",
"UILayout",
"",
"Sub-layout to put items in");
957 "Sub-layout. Items placed in this sublayout are placed under each other "
959 RNA_def_boolean(func,
"align",
false,
"",
"Align buttons to each other");
963 RNA_def_int(func,
"columns", 0, 0, INT_MAX,
"",
"Number of columns, 0 is automatic", 0, INT_MAX);
964 parm =
RNA_def_pointer(func,
"layout",
"UILayout",
"",
"Sub-layout to put items in");
966 RNA_def_boolean(func,
"align",
false,
"",
"Align buttons to each other");
969 RNA_def_boolean(func,
"row_major",
false,
"",
"Fill row by row, instead of column by column");
977 "Number of columns, positive are absolute fixed numbers, 0 is automatic, negative are "
978 "automatic multiple numbers along major axis (e.g. -2 will only produce 2, 4, 6 etc. "
979 "columns for row major layout, and 2, 4, 6 etc. rows for column major layout)",
982 RNA_def_boolean(func,
"even_columns",
false,
"",
"All columns will have the same width");
983 RNA_def_boolean(func,
"even_rows",
false,
"",
"All rows will have the same height");
984 RNA_def_boolean(func,
"align",
false,
"",
"Align buttons to each other");
985 parm =
RNA_def_pointer(func,
"layout",
"UILayout",
"",
"Sub-layout to put items in");
990 parm =
RNA_def_pointer(func,
"layout",
"UILayout",
"",
"Sub-layout to put items in");
993 "Sublayout (items placed in this sublayout are placed "
994 "under each other in a column and are surrounded by a box)");
998 parm =
RNA_def_pointer(func,
"layout",
"UILayout",
"",
"Sub-layout to put items in");
1006 "Percentage of width to split at (leave unset for automatic calculation)",
1009 RNA_def_boolean(func,
"align",
false,
"",
"Align buttons to each other");
1013 parm =
RNA_def_pointer(func,
"layout",
"UILayout",
"",
"Sub-layout to put items in");
1016 "Sublayout. Items placed in this sublayout are placed "
1017 "in a radial fashion around the menu center)");
1021 parm =
RNA_def_int(func,
"icon_value", ICON_NONE, 0, INT_MAX,
"",
"Icon identifier", 0, INT_MAX);
1024 parm =
RNA_def_pointer(func,
"data",
"AnyType",
"",
"Data from which to take the icon");
1027 "Return the custom icon for this data, "
1028 "use it e.g. to get materials or texture icons");
1036 parm =
RNA_def_string(func,
"identifier",
NULL, 0,
"",
"Identifier of the enum item");
1040 func =
RNA_def_function(srna,
"enum_item_description",
"rna_ui_get_enum_description");
1041 parm =
RNA_def_string(func,
"description",
NULL, 0,
"",
"UI description of the enum item");
1045 parm =
RNA_def_string(func,
"identifier",
NULL, 0,
"",
"Identifier of the enum item");
1050 parm =
RNA_def_int(func,
"icon_value", ICON_NONE, 0, INT_MAX,
"",
"Icon identifier", 0, INT_MAX);
1054 parm =
RNA_def_string(func,
"identifier",
NULL, 0,
"",
"Identifier of the enum item");
1063 RNA_def_boolean(func,
"expand",
false,
"",
"Expand button to show more detail");
1064 RNA_def_boolean(func,
"slider",
false,
"",
"Use slider widget for numeric values");
1071 "Use toggle widget for boolean values, "
1072 "or a checkbox when disabled "
1073 "(the default is -1 which uses toggle only when an icon is displayed)",
1076 RNA_def_boolean(func,
"icon_only",
false,
"",
"Draw only icons in buttons, no text");
1077 RNA_def_boolean(func,
"event",
false,
"",
"Use button to input key events");
1079 func,
"full_event",
false,
"",
"Use button to input full events including modifiers");
1084 "Draw the button itself, not just the icon/text. When false, corresponds to the "
1085 "'NONE_OR_STATUS' layout emboss type");
1093 "The index of this button, when set a single member of an array can be accessed, "
1094 "when set to -1 all array members are used",
1099 RNA_def_boolean(func,
"invert_checkbox",
false,
"",
"Draw checkbox value inverted");
1108 func =
RNA_def_function(srna,
"prop_with_popover",
"rna_uiItemR_with_popover");
1111 RNA_def_boolean(func,
"icon_only",
false,
"",
"Draw only icons in tabs, no text");
1118 RNA_def_boolean(func,
"icon_only",
false,
"",
"Draw only icons in tabs, no text");
1126 func,
"data_highlight",
"AnyType",
"",
"Data from which to take highlight property");
1129 func,
"property_highlight",
NULL, 0,
"",
"Identifier of highlight property in data");
1130 RNA_def_boolean(func,
"icon_only",
false,
"",
"Draw only icons in tabs, no text");
1141 func,
"search_data",
"AnyType",
"",
"Data from which to take collection to search in");
1144 func,
"search_property",
NULL, 0,
"",
"Identifier of search collection property");
1148 func,
"results_are_suggestions",
false,
"",
"Accept inputs that do not match any item");
1159 "The index of this button, when set a single member of an array can be accessed, "
1160 "when set to -1 all array members are used",
1164 for (
int is_menu_hold = 0; is_menu_hold < 2; is_menu_hold++) {
1165 func = (is_menu_hold) ?
RNA_def_function(srna,
"operator_menu_hold",
"rna_uiItemOMenuHold") :
1168 RNA_def_boolean(func,
"emboss",
true,
"",
"Draw the button itself, not just the icon/text");
1177 func,
"properties",
"OperatorProperties",
"",
"Operator properties to fill in");
1181 "Item. Places a button into the layout to call an Operator");
1187 parm =
RNA_def_string(func,
"property",
NULL, 0,
"",
"Identifier of property in operator");
1189 RNA_def_boolean(func,
"icon_only",
false,
"",
"Draw only icons in buttons, no text");
1191 func =
RNA_def_function(srna,
"operator_menu_enum",
"rna_uiItemMenuEnumO");
1195 parm =
RNA_def_string(func,
"property",
NULL, 0,
"",
"Identifier of property in operator");
1199 func,
"properties",
"OperatorProperties",
"",
"Operator properties to fill in");
1206 func =
RNA_def_function(srna,
"operator_enum_single",
"uiItemEnumO_string");
1208 parm =
RNA_def_string(func,
"property",
NULL, 0,
"",
"Identifier of property in operator");
1215 parm =
RNA_def_string(func,
"property",
NULL, 0,
"",
"Identifier of property in operator");
1218 func,
"value",
false,
"",
"Value of the property to call the operator with");
1223 parm =
RNA_def_string(func,
"property",
NULL, 0,
"",
"Identifier of property in operator");
1231 "Value of the property to call the operator with",
1238 parm =
RNA_def_string(func,
"property",
NULL, 0,
"",
"Identifier of property in operator");
1246 "Value of the property to call the operator with",
1253 parm =
RNA_def_string(func,
"property",
NULL, 0,
"",
"Identifier of property in operator");
1256 func,
"value",
NULL, 0,
"",
"Value of the property to call the operator with");
1285 func =
RNA_def_function(srna,
"popover_group",
"rna_uiItemPopoverPanelFromGroup");
1305 "Percentage of width to space (leave unset for default space)",
1311 func,
"Item. Inserts horizontal spacing empty space into the layout between items");
1314 func =
RNA_def_function(srna,
"context_pointer_set",
"uiLayoutSetContextPointer");
1315 parm =
RNA_def_string(func,
"name",
NULL, 0,
"Name",
"Name of entry in the context");
1317 parm =
RNA_def_pointer(func,
"data",
"AnyType",
"",
"Pointer to put in context");
1328 RNA_def_string(func,
"new",
NULL, 0,
"",
"Operator identifier to create a new ID block");
1330 func,
"open",
NULL, 0,
"",
"Operator identifier to open a file for creating a new ID block");
1331 RNA_def_string(func,
"unlink",
NULL, 0,
"",
"Operator identifier to unlink the ID block");
1334 id_template_filter_items,
1337 "Optionally limit the items which can be selected");
1338 RNA_def_boolean(func,
"live_icon",
false,
"",
"Show preview instead of fixed icon");
1341 func =
RNA_def_function(srna,
"template_ID_preview",
"uiTemplateIDPreview");
1344 RNA_def_string(func,
"new",
NULL, 0,
"",
"Operator identifier to create a new ID block");
1346 func,
"open",
NULL, 0,
"",
"Operator identifier to open a file for creating a new ID block");
1347 RNA_def_string(func,
"unlink",
NULL, 0,
"",
"Operator identifier to unlink the ID block");
1349 func,
"rows", 0, 0, INT_MAX,
"Number of thumbnail preview rows to display",
"", 0, INT_MAX);
1355 "Number of thumbnail preview columns to display",
1361 id_template_filter_items,
1364 "Optionally limit the items which can be selected");
1365 RNA_def_boolean(func,
"hide_buttons",
false,
"",
"Show only list, no buttons");
1368 parm =
RNA_def_pointer(func,
"data",
"AnyType",
"",
"Data from which to take property");
1370 parm =
RNA_def_string(func,
"property",
NULL, 0,
"",
"Identifier of property in data");
1377 "Identifier of property in data giving the type of the ID-blocks to use");
1384 RNA_def_string(func,
"new",
NULL, 0,
"",
"Operator identifier to create a new ID block");
1388 id_template_filter_items,
1391 "Optionally limit the items which can be selected");
1397 func,
"search_data",
"AnyType",
"",
"Data from which to take collection to search in");
1400 func,
"search_property",
NULL, 0,
"",
"Identifier of search collection property");
1403 func,
"new",
NULL, 0,
"",
"Operator identifier to create a new item for the collection");
1409 "Operator identifier to unlink or delete the active "
1410 "item from the collection");
1412 func =
RNA_def_function(srna,
"template_search_preview",
"uiTemplateSearchPreview");
1416 func,
"search_data",
"AnyType",
"",
"Data from which to take collection to search in");
1419 func,
"search_property",
NULL, 0,
"",
"Identifier of search collection property");
1422 func,
"new",
NULL, 0,
"",
"Operator identifier to create a new item for the collection");
1428 "Operator identifier to unlink or delete the active "
1429 "item from the collection");
1431 func,
"rows", 0, 0, INT_MAX,
"Number of thumbnail preview rows to display",
"", 0, INT_MAX);
1437 "Number of thumbnail preview columns to display",
1442 func =
RNA_def_function(srna,
"template_path_builder",
"rna_uiTemplatePathBuilder");
1443 parm =
RNA_def_pointer(func,
"data",
"AnyType",
"",
"Data from which to take property");
1445 parm =
RNA_def_string(func,
"property",
NULL, 0,
"",
"Identifier of property in data");
1447 parm =
RNA_def_pointer(func,
"root",
"ID",
"",
"ID-block from which path is evaluated from");
1451 func =
RNA_def_function(srna,
"template_modifiers",
"uiTemplateModifiers");
1455 func =
RNA_def_function(srna,
"template_constraints",
"uiTemplateConstraints");
1459 "use_bone_constraints",
1462 "Add panels for bone constraints instead of object constraints");
1464 func =
RNA_def_function(srna,
"template_grease_pencil_modifiers",
"uiTemplateGpencilModifiers");
1467 "Generates the panels for the grease pencil modifier stack");
1473 func =
RNA_def_function(srna,
"template_greasepencil_color",
"uiTemplateGpencilColorPreview");
1477 func,
"rows", 0, 0, INT_MAX,
"Number of thumbnail preview rows to display",
"", 0, INT_MAX);
1483 "Number of thumbnail preview columns to display",
1487 RNA_def_float(func,
"scale", 1.0f, 0.1f, 1.5f,
"Scale of the image thumbnails",
"", 0.5f, 1.0f);
1490 id_template_filter_items,
1493 "Optionally limit the items which can be selected");
1495 func =
RNA_def_function(srna,
"template_constraint_header",
"uiTemplateConstraintHeader");
1497 parm =
RNA_def_pointer(func,
"data",
"Constraint",
"",
"Constraint data");
1502 func,
"Item. A preview window for materials, textures, lights or worlds");
1506 RNA_def_boolean(func,
"show_buttons",
true,
"",
"Show preview buttons?");
1515 "Identifier of this preview widget, if not set the ID type will be used "
1516 "(i.e. all previews of materials without explicit ID will have the same size...)");
1518 func =
RNA_def_function(srna,
"template_curve_mapping",
"uiTemplateCurveMapping");
1520 func,
"Item. A curve mapping widget used for e.g falloff curves for lights");
1523 RNA_def_boolean(func,
"levels",
false,
"",
"Show black/white levels");
1525 RNA_def_boolean(func,
"use_negative_slope",
false,
"",
"Use a negative slope by default");
1528 func =
RNA_def_function(srna,
"template_curveprofile",
"uiTemplateCurveProfile");
1532 func =
RNA_def_function(srna,
"template_color_ramp",
"uiTemplateColorRamp");
1535 RNA_def_boolean(func,
"expand",
false,
"",
"Expand button to show more detail");
1539 parm =
RNA_def_int(func,
"icon_value", 0, 0, INT_MAX,
"Icon to display",
"", 0, INT_MAX);
1547 "Scale the icon size (by the button size)",
1554 RNA_def_boolean(func,
"show_labels",
false,
"",
"Show enum label in preview buttons");
1561 "Scale the button icon size (by the button size)",
1570 "Scale the popup icon size (by the button size)",
1574 func =
RNA_def_function(srna,
"template_histogram",
"uiTemplateHistogram");
1582 func =
RNA_def_function(srna,
"template_vectorscope",
"uiTemplateVectorscope");
1589 func,
"used_layers_data",
"AnyType",
"",
"Data from which to take property");
1592 func,
"used_layers_property",
NULL, 0,
"",
"Identifier of property in data");
1594 parm =
RNA_def_int(func,
"active_layer", 0, 0, INT_MAX,
"Active Layer",
"", 0, INT_MAX);
1597 func =
RNA_def_function(srna,
"template_color_picker",
"uiTemplateColorPicker");
1601 func,
"value_slider",
false,
"",
"Display the value slider to the right of the color wheel");
1606 "Lock the color wheel display to value 1.0 regardless of actual color");
1608 func,
"lock_luminosity",
false,
"",
"Keep the color at its original vector length");
1609 RNA_def_boolean(func,
"cubic",
false,
"",
"Cubic saturation for picking values close to white");
1614 RNA_def_boolean(func,
"color", 0,
"",
"Display the colors as colors or values");
1616 func =
RNA_def_function(srna,
"template_image_layers",
"uiTemplateImageLayers");
1625 func,
"Item(s). User interface for selecting images and their source paths");
1630 RNA_def_boolean(func,
"compact",
false,
"",
"Use more compact layout");
1631 RNA_def_boolean(func,
"multiview",
false,
"",
"Expose Multi-View options");
1633 func =
RNA_def_function(srna,
"template_image_settings",
"uiTemplateImageSettings");
1635 parm =
RNA_def_pointer(func,
"image_settings",
"ImageFormatSettings",
"",
"");
1637 RNA_def_boolean(func,
"color_management",
false,
"",
"Show color management settings");
1639 func =
RNA_def_function(srna,
"template_image_stereo_3d",
"uiTemplateImageStereo3d");
1641 parm =
RNA_def_pointer(func,
"stereo_3d_format",
"Stereo3dFormat",
"",
"");
1644 func =
RNA_def_function(srna,
"template_image_views",
"uiTemplateImageViews");
1646 parm =
RNA_def_pointer(func,
"image_settings",
"ImageFormatSettings",
"",
"");
1649 func =
RNA_def_function(srna,
"template_movieclip",
"uiTemplateMovieClip");
1651 func,
"Item(s). User interface for selecting movie clips and their source paths");
1654 RNA_def_boolean(func,
"compact",
false,
"",
"Use more compact layout");
1667 RNA_def_boolean(func,
"compact",
false,
"",
"Use more compact layout");
1670 srna,
"template_movieclip_information",
"uiTemplateMovieclipInformation");
1679 parm =
RNA_def_string(func,
"listtype_name",
NULL, 0,
"",
"Identifier of the list type to use");
1689 "If this not an empty string, the uilist gets a custom ID, otherwise it takes the "
1690 "name of the class used to define the uilist (for example, if the "
1691 "class name is \"OBJECT_UL_vgroups\", and list_id is not set by the "
1692 "script, then bl_idname = \"OBJECT_UL_vgroups\")");
1695 func,
"dataptr",
"AnyType",
"",
"Data from which to take the Collection property");
1698 func,
"propname",
NULL, 0,
"",
"Identifier of the Collection property in data");
1704 "Data from which to take the integer property, index of the active item");
1712 "Identifier of the integer property in active_data, index of the active item");
1715 "item_dyntip_propname",
1719 "Identifier of a string property in items, to use as tooltip content");
1726 "Default and minimum number of rows to display",
1730 func,
"maxrows", 5, 0, INT_MAX,
"",
"Default maximum number of rows to display", 0, INT_MAX);
1736 "Type of layout to use");
1743 "Number of items to display per row, for GRID layout",
1746 RNA_def_boolean(func,
"sort_reverse",
false,
"",
"Display items in reverse order by default");
1747 RNA_def_boolean(func,
"sort_lock",
false,
"",
"Lock display order to default value");
1749 func =
RNA_def_function(srna,
"template_running_jobs",
"uiTemplateRunningJobs");
1752 RNA_def_function(srna,
"template_operator_search",
"uiTemplateOperatorSearch");
1755 func =
RNA_def_function(srna,
"template_header_3D_mode",
"uiTemplateHeader3D_mode");
1759 func =
RNA_def_function(srna,
"template_edit_mode_selection",
"uiTemplateEditModeSelection");
1762 func,
"Inserts common 3DView Edit modes header UI (selector for selection mode)");
1764 func =
RNA_def_function(srna,
"template_reports_banner",
"uiTemplateReportsBanner");
1767 func =
RNA_def_function(srna,
"template_input_status",
"uiTemplateInputStatus");
1770 func =
RNA_def_function(srna,
"template_status_info",
"uiTemplateStatusInfo");
1791 func =
RNA_def_function(srna,
"template_texture_user",
"uiTemplateTextureUser");
1795 srna,
"template_keymap_item_properties",
"uiTemplateKeymapItemProperties");
1799 func =
RNA_def_function(srna,
"template_component_menu",
"uiTemplateComponentMenu");
1801 parm =
RNA_def_pointer(func,
"data",
"AnyType",
"",
"Data from which to take property");
1803 parm =
RNA_def_string(func,
"property",
NULL, 0,
"",
"Identifier of property in data");
1808 func =
RNA_def_function(srna,
"template_colorspace_settings",
"uiTemplateColorspaceSettings");
1813 srna,
"template_colormanaged_view_settings",
"uiTemplateColormanagedViewSettings");
1815 func,
"Item. A widget to control color managed view settings settings.");
1820 "show_global_settings",
1823 "Show widgets to control global color management settings");
1827 func =
RNA_def_function(srna,
"template_node_socket",
"uiTemplateNodeSocket");
1831 func,
"color", 4, node_socket_color_default, 0.0f, 1.0f,
"Color",
"", 0.0f, 1.0f);
1833 func =
RNA_def_function(srna,
"template_cache_file",
"rna_uiTemplateCacheFile");
1835 func,
"Item(s). User interface for selecting cache files and their source paths");
1839 func =
RNA_def_function(srna,
"template_cache_file_velocity",
"rna_uiTemplateCacheFileVelocity");
1844 srna,
"template_cache_file_procedural",
"rna_uiTemplateCacheFileProcedural");
1850 srna,
"template_cache_file_time_settings",
"rna_uiTemplateCacheFileTimeSettings");
1854 func =
RNA_def_function(srna,
"template_cache_file_layers",
"rna_uiTemplateCacheFileLayers");
1859 func =
RNA_def_function(srna,
"template_recent_files",
"uiTemplateRecentFiles");
1861 RNA_def_int(func,
"rows", 5, 1, INT_MAX,
"",
"Maximum number of items to show", 1, INT_MAX);
1862 parm =
RNA_def_int(func,
"found", 0, 0, INT_MAX,
"",
"Number of items drawn", 0, INT_MAX);
1865 func =
RNA_def_function(srna,
"template_file_select_path",
"uiTemplateFileSelectPath");
1867 "Item. A text button to set the active file browser path.");
1873 srna,
"template_event_from_keymap_item",
"rna_uiTemplateEventFromKeymapItem");
1881 func =
RNA_def_function(srna,
"template_asset_view",
"rna_uiTemplateAssetView");
1889 "Identifier of this asset view. Necessary to tell apart different asset "
1890 "views and to idenify an asset view read from a .blend");
1893 "asset_library_dataptr",
1896 "Data from which to take the active asset library property");
1899 func,
"asset_library_propname",
NULL, 0,
"",
"Identifier of the asset library property");
1902 func,
"assets_dataptr",
"AnyType",
"",
"Data from which to take the asset list property");
1905 func,
"assets_propname",
NULL, 0,
"",
"Identifier of the asset list property");
1911 "Data from which to take the integer property, index of the active item");
1919 "Identifier of the integer property in active_data, index of the active item");
1927 asset_view_template_options,
1930 "Displaying options for the asset view");
1932 "activate_operator",
1936 "Name of a custom operator to invoke when activating an item");
1939 "activate_operator_properties",
1940 "OperatorProperties",
1942 "Operator properties to fill in for the custom activate operator passed to the template");
1950 "Name of a custom operator to invoke when starting to drag an item. Never "
1951 "invoked together with the `active_operator` (if set), it's either the drag or "
1952 "the activate one");
1955 "drag_operator_properties",
1956 "OperatorProperties",
1958 "Operator properties to fill in for the custom drag operator passed to the template");
void BLI_kdtree_nd_() free(KDTree *tree)
bool BLT_translate_iface(void)
#define BLT_I18NCONTEXT_DEFAULT
const char * BLT_pgettext(const char *msgctxt, const char *msgid)
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
#define RNA_warning(format,...)
uiLayout * uiLayoutRowWithHeading(uiLayout *layout, bool align, const char *heading)
void uiItemEnumR_string_prop(uiLayout *layout, struct PointerRNA *ptr, struct PropertyRNA *prop, const char *value, const char *name, int icon)
void uiItemFullR_with_popover(uiLayout *layout, struct PointerRNA *ptr, struct PropertyRNA *prop, int index, int value, int flag, const char *name, int icon, const char *panel_type)
void uiItemPopoverPanelFromGroup(uiLayout *layout, struct bContext *C, int space_id, int region_id, const char *context, const char *category)
uiLayout * uiLayoutColumnWithHeading(uiLayout *layout, bool align, const char *heading)
void uiTemplateCacheFileLayers(uiLayout *layout, const struct bContext *C, struct PointerRNA *fileptr)
void uiTemplatePathBuilder(uiLayout *layout, struct PointerRNA *ptr, const char *propname, struct PointerRNA *root_ptr, const char *text)
void uiTemplateCacheFileVelocity(uiLayout *layout, struct PointerRNA *fileptr)
void uiItemL(uiLayout *layout, const char *name, int icon)
void uiItemFullR_with_menu(uiLayout *layout, struct PointerRNA *ptr, struct PropertyRNA *prop, int index, int value, int flag, const char *name, int icon, const char *menu_type)
void uiItemMenuEnumFullO_ptr(uiLayout *layout, struct bContext *C, struct wmOperatorType *ot, const char *propname, const char *name, int icon, struct PointerRNA *r_opptr)
void uiTemplateCacheFileProcedural(uiLayout *layout, const struct bContext *C, struct PointerRNA *fileptr)
void uiItemFullOMenuHold_ptr(uiLayout *layout, struct wmOperatorType *ot, const char *name, int icon, struct IDProperty *properties, wmOperatorCallContext context, int flag, const char *menu_id, struct PointerRNA *r_opptr)
void uiItemPopoverPanel(uiLayout *layout, const struct bContext *C, const char *panel_type, const char *name, int icon)
void uiItemFullO_ptr(uiLayout *layout, struct wmOperatorType *ot, const char *name, int icon, struct IDProperty *properties, wmOperatorCallContext context, int flag, struct PointerRNA *r_opptr)
#define UI_UL_DEFAULT_CLASS_NAME
@ UI_ITEM_R_CHECKBOX_INVERT
@ UI_TEMPLATE_ASSET_DRAW_NO_NAMES
@ UI_TEMPLATE_ASSET_DRAW_NO_LIBRARY
@ UI_TEMPLATE_ASSET_DRAW_NO_FILTER
void uiItemMContents(uiLayout *layout, const char *menuname)
int uiLayoutGetOperatorContext(uiLayout *layout)
bool uiTemplateCacheFilePointer(struct PointerRNA *ptr, const char *propname, struct PointerRNA *r_file_ptr)
void uiItemPointerR_prop(uiLayout *layout, struct PointerRNA *ptr, struct PropertyRNA *prop, struct PointerRNA *searchptr, struct PropertyRNA *searchprop, const char *name, int icon, bool results_are_suggestions)
void uiItemTabsEnumR_prop(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA *prop, struct PointerRNA *ptr_highlight, struct PropertyRNA *prop_highlight, bool icon_only)
void uiTemplateAssetView(struct uiLayout *layout, struct bContext *C, const char *list_id, struct PointerRNA *asset_library_dataptr, const char *asset_library_propname, struct PointerRNA *assets_dataptr, const char *assets_propname, struct PointerRNA *active_dataptr, const char *active_propname, const struct AssetFilterSettings *filter_settings, int display_flags, const char *activate_opname, struct PointerRNA *r_activate_op_properties, const char *drag_opname, struct PointerRNA *r_drag_op_properties)
void uiTemplateCacheFileTimeSettings(uiLayout *layout, struct PointerRNA *fileptr)
bool uiTemplateEventFromKeymapItem(struct uiLayout *layout, const char *text, const struct wmKeyMapItem *kmi, bool text_fallback)
void uiTemplateList(uiLayout *layout, struct bContext *C, const char *listtype_name, const char *list_id, struct PointerRNA *dataptr, const char *propname, struct 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 uiItemMenuEnumR_prop(uiLayout *layout, struct PointerRNA *ptr, struct PropertyRNA *prop, const char *name, int icon)
void uiTemplateID(uiLayout *layout, const struct bContext *C, struct PointerRNA *ptr, const char *propname, const char *newop, const char *openop, const char *unlinkop, int filter, bool live_icon, const char *text)
void uiTemplateAnyID(uiLayout *layout, struct PointerRNA *ptr, const char *propname, const char *proptypename, const char *text)
void uiItemFullR(uiLayout *layout, struct PointerRNA *ptr, struct PropertyRNA *prop, int index, int value, int flag, const char *name, int icon)
void uiTemplateCacheFile(uiLayout *layout, const struct bContext *C, struct PointerRNA *ptr, const char *propname)
@ UI_TEMPLATE_ID_FILTER_AVAILABLE
@ UI_TEMPLATE_ID_FILTER_ALL
@ UI_TEMPLATE_LIST_SORT_LOCK
@ UI_TEMPLATE_LIST_SORT_REVERSE
@ UI_TEMPLATE_LIST_FLAG_NONE
void uiItemsFullEnumO(uiLayout *layout, const char *opname, const char *propname, struct IDProperty *properties, wmOperatorCallContext context, int flag)
void uiItemM(uiLayout *layout, const char *menuname, const char *name, int icon)
int UI_icon_from_rnaptr(const struct bContext *C, struct PointerRNA *ptr, int rnaicon, bool big)
SyclQueue void void size_t num_bytes void
DO_INLINE void filter(lfVector *V, fmatrix3x3 *S)
void(* MEM_freeN)(void *vmemh)
const struct IDFilterEnumPropertyItem rna_enum_id_type_filter_items[]
const char * RNA_struct_identifier(const StructRNA *type)
bool RNA_property_array_check(PropertyRNA *prop)
int RNA_enum_from_identifier(const EnumPropertyItem *item, const char *identifier)
PropertyType RNA_property_type(PropertyRNA *prop)
const PointerRNA PointerRNA_NULL
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
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)
const char * RNA_struct_translation_context(const StructRNA *type)
void RNA_property_enum_items(bContext *C, PointerRNA *ptr, PropertyRNA *prop, const EnumPropertyItem **r_item, int *r_totitem, bool *r_free)
static const EnumPropertyItem curve_type_items[]
PropertyRNA * RNA_def_float(StructOrFunctionRNA *cont_, const char *identifier, float default_value, float hardmin, float hardmax, const char *ui_name, const char *ui_description, float softmin, float softmax)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, bool default_value, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_enum_flag(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, int default_value, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
PropertyRNA * RNA_def_float_array(StructOrFunctionRNA *cont_, const char *identifier, int len, const float *default_value, float hardmin, float hardmax, const char *ui_name, const char *ui_description, float softmin, float softmax)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
void RNA_def_function_output(FunctionRNA *UNUSED(func), PropertyRNA *ret)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
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)
void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, int maxlen, const char *ui_name, const char *ui_description)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, int default_value, int hardmin, int hardmax, const char *ui_name, const char *ui_description, int softmin, int softmax)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, int default_value, const char *ui_name, const char *ui_description)
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, struct StructRNA *type, struct PropertyRNA *prop, bool translate)
const EnumPropertyItem DummyRNA_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)
wmOperatorType * WM_operatortype_find(const char *idname, bool quiet)