42 #define DEF_ICON(name) {ICON_##name, (#name), 0, (#name), ""},
43 #define DEF_ICON_VECTOR(name) {ICON_##name, (#name), 0, (#name), ""},
44 #define DEF_ICON_COLOR(name) {ICON_##name, (#name), 0, (#name), ""},
45 #define DEF_ICON_BLANK(name)
62 if (text_ctxt && text_ctxt[0]) {
89 static void rna_uiItemR(
uiLayout *layout,
93 const char *text_ctxt,
105 bool invert_checkbox)
115 if (icon_value && !icon) {
127 else if (toggle == 0) {
139 static void rna_uiItemR_with_popover(
uiLayout *layout,
141 const char *propname,
143 const char *text_ctxt,
147 const char *panel_type)
170 static void rna_uiItemR_with_menu(
uiLayout *layout,
172 const char *propname,
174 const char *text_ctxt,
178 const char *menu_type)
199 static void rna_uiItemMenuEnumR(
uiLayout *layout,
201 const char *propname,
203 const char *text_ctxt,
219 static void rna_uiItemTabsEnumR(
uiLayout *layout,
222 const char *propname,
224 const char *propname_highlight,
242 if (!prop_highlight) {
265 static void rna_uiItemEnumR_string(
uiLayout *layout,
267 const char *propname,
270 const char *text_ctxt,
287 static void rna_uiItemPointerR(
uiLayout *layout,
289 const char *propname,
291 const char *searchpropname,
293 const char *text_ctxt,
318 const char *text_ctxt,
329 RNA_warning(
"%s '%s'",
ot ?
"unknown operator" :
"operator missing srna", opname);
336 if (icon_value && !icon) {
350 const char *text_ctxt,
360 RNA_warning(
"%s '%s'",
ot ?
"unknown operator" :
"operator missing srna", opname);
366 if (icon_value && !icon) {
378 static void rna_uiItemsEnumO(
uiLayout *layout,
380 const char *propname,
381 const bool icon_only)
387 static void rna_uiItemMenuEnumO(
uiLayout *layout,
390 const char *propname,
392 const char *text_ctxt,
399 RNA_warning(
"%s '%s'",
ot ?
"unknown operator" :
"operator missing srna", opname);
409 static void rna_uiItemL(
uiLayout *layout,
411 const char *text_ctxt,
419 if (icon_value && !icon) {
426 static void rna_uiItemM(
uiLayout *layout,
427 const char *menuname,
429 const char *text_ctxt,
437 if (icon_value && !icon) {
441 uiItemM(layout, menuname, name, icon);
444 static void rna_uiItemM_contents(
uiLayout *layout,
const char *menuname)
449 static void rna_uiItemPopoverPanel(
uiLayout *layout,
451 const char *panel_type,
453 const char *text_ctxt,
461 if (icon_value && !icon) {
468 static void rna_uiItemPopoverPanelFromGroup(
uiLayout *layout,
473 const char *category)
478 static void rna_uiTemplateID(
uiLayout *layout,
481 const char *propname,
484 const char *unlinkop,
486 const bool live_icon,
488 const char *text_ctxt,
504 static void rna_uiTemplateAnyID(
uiLayout *layout,
506 const char *propname,
507 const char *proptypename,
509 const char *text_ctxt,
526 static void rna_uiTemplateCacheFile(
uiLayout *layout,
529 const char *propname)
541 static void rna_uiTemplatePathBuilder(
uiLayout *layout,
543 const char *propname,
546 const char *text_ctxt,
563 static void rna_uiTemplateEventFromKeymapItem(
571 static uiLayout *rna_uiLayoutRowWithHeading(
572 uiLayout *layout,
bool align,
const char *heading,
const char *heading_ctxt,
bool translate)
579 static uiLayout *rna_uiLayoutColumnWithHeading(
580 uiLayout *layout,
bool align,
const char *heading,
const char *heading_ctxt,
bool translate)
592 static const char *rna_ui_get_enum_name(
bContext *
C,
594 const char *propname,
595 const char *identifier)
600 const char *name =
"";
614 name = items[index].
name;
624 static const char *rna_ui_get_enum_description(
bContext *
C,
626 const char *propname,
627 const char *identifier)
632 const char *desc =
"";
656 static int rna_ui_get_enum_icon(
bContext *
C,
658 const char *propname,
659 const char *identifier)
664 int icon = ICON_NONE;
678 icon = items[index].
icon;
697 "Label to insert into the layout for this sub-layout");
703 "Override automatic translation context of the given heading");
705 func,
"translate",
true,
"",
"Translate the given heading, when UI translation is enabled");
712 prop =
RNA_def_string(func,
"text",
NULL, 0,
"",
"Override automatic text of the item");
715 func,
"text_ctxt",
NULL, 0,
"",
"Override automatic translation context of the given text");
718 func,
"translate",
true,
"",
"Translate the given text, when UI translation is enabled");
749 parm =
RNA_def_pointer(func,
"data",
"AnyType",
"",
"Data from which to take property");
751 parm =
RNA_def_string(func,
"property",
NULL, 0,
"",
"Identifier of property in data");
761 {0,
"NONE", 0,
"None",
""},
762 {
'v',
"VECTOR", 0,
"Vector",
""},
763 {
'c',
"COLOR", 0,
"Color",
""},
764 {
'h',
"HUE", 0,
"Hue",
""},
774 static float node_socket_color_default[] = {0.0f, 0.0f, 0.0f, 1.0f};
778 parm =
RNA_def_pointer(func,
"layout",
"UILayout",
"",
"Sub-layout to put items in");
782 "Sub-layout. Items placed in this sublayout are placed next to each other "
784 RNA_def_boolean(func,
"align",
false,
"",
"Align buttons to each other");
788 parm =
RNA_def_pointer(func,
"layout",
"UILayout",
"",
"Sub-layout to put items in");
792 "Sub-layout. Items placed in this sublayout are placed under each other "
794 RNA_def_boolean(func,
"align",
false,
"",
"Align buttons to each other");
798 RNA_def_int(func,
"columns", 0, 0, INT_MAX,
"",
"Number of columns, 0 is automatic", 0, INT_MAX);
799 parm =
RNA_def_pointer(func,
"layout",
"UILayout",
"",
"Sub-layout to put items in");
801 RNA_def_boolean(func,
"align",
false,
"",
"Align buttons to each other");
804 RNA_def_boolean(func,
"row_major",
false,
"",
"Fill row by row, instead of column by column");
812 "Number of columns, positive are absolute fixed numbers, 0 is automatic, negative are "
813 "automatic multiple numbers along major axis (e.g. -2 will only produce 2, 4, 6 etc. "
814 "columns for row major layout, and 2, 4, 6 etc. rows for column major layout)",
817 RNA_def_boolean(func,
"even_columns",
false,
"",
"All columns will have the same width");
818 RNA_def_boolean(func,
"even_rows",
false,
"",
"All rows will have the same height");
819 RNA_def_boolean(func,
"align",
false,
"",
"Align buttons to each other");
820 parm =
RNA_def_pointer(func,
"layout",
"UILayout",
"",
"Sub-layout to put items in");
825 parm =
RNA_def_pointer(func,
"layout",
"UILayout",
"",
"Sub-layout to put items in");
828 "Sublayout (items placed in this sublayout are placed "
829 "under each other in a column and are surrounded by a box)");
833 parm =
RNA_def_pointer(func,
"layout",
"UILayout",
"",
"Sub-layout to put items in");
841 "Percentage of width to split at (leave unset for automatic calculation)",
844 RNA_def_boolean(func,
"align",
false,
"",
"Align buttons to each other");
848 parm =
RNA_def_pointer(func,
"layout",
"UILayout",
"",
"Sub-layout to put items in");
851 "Sublayout. Items placed in this sublayout are placed "
852 "in a radial fashion around the menu center)");
856 parm =
RNA_def_int(func,
"icon_value", ICON_NONE, 0, INT_MAX,
"",
"Icon identifier", 0, INT_MAX);
859 parm =
RNA_def_pointer(func,
"data",
"AnyType",
"",
"Data from which to take the icon");
862 "Return the custom icon for this data, "
863 "use it e.g. to get materials or texture icons");
871 parm =
RNA_def_string(func,
"identifier",
NULL, 0,
"",
"Identifier of the enum item");
875 func =
RNA_def_function(srna,
"enum_item_description",
"rna_ui_get_enum_description");
876 parm =
RNA_def_string(func,
"description",
NULL, 0,
"",
"UI description of the enum item");
880 parm =
RNA_def_string(func,
"identifier",
NULL, 0,
"",
"Identifier of the enum item");
885 parm =
RNA_def_int(func,
"icon_value", ICON_NONE, 0, INT_MAX,
"",
"Icon identifier", 0, INT_MAX);
889 parm =
RNA_def_string(func,
"identifier",
NULL, 0,
"",
"Identifier of the enum item");
898 RNA_def_boolean(func,
"expand",
false,
"",
"Expand button to show more detail");
899 RNA_def_boolean(func,
"slider",
false,
"",
"Use slider widget for numeric values");
906 "Use toggle widget for boolean values, "
907 "or a checkbox when disabled "
908 "(the default is -1 which uses toggle only when an icon is displayed)",
911 RNA_def_boolean(func,
"icon_only",
false,
"",
"Draw only icons in buttons, no text");
912 RNA_def_boolean(func,
"event",
false,
"",
"Use button to input key events");
914 func,
"full_event",
false,
"",
"Use button to input full events including modifiers");
919 "Draw the button itself, not just the icon/text. When false, corresponds to the "
920 "'NONE_OR_STATUS' layout emboss type");
928 "The index of this button, when set a single member of an array can be accessed, "
929 "when set to -1 all array members are used",
934 RNA_def_boolean(func,
"invert_checkbox",
false,
"",
"Draw checkbox value inverted");
943 func =
RNA_def_function(srna,
"prop_with_popover",
"rna_uiItemR_with_popover");
946 RNA_def_boolean(func,
"icon_only",
false,
"",
"Draw only icons in tabs, no text");
953 RNA_def_boolean(func,
"icon_only",
false,
"",
"Draw only icons in tabs, no text");
961 func,
"data_highlight",
"AnyType",
"",
"Data from which to take highlight property");
964 func,
"property_highlight",
NULL, 0,
"",
"Identifier of highlight property in data");
965 RNA_def_boolean(func,
"icon_only",
false,
"",
"Draw only icons in tabs, no text");
976 func,
"search_data",
"AnyType",
"",
"Data from which to take collection to search in");
979 func,
"search_property",
NULL, 0,
"",
"Identifier of search collection property");
992 "The index of this button, when set a single member of an array can be accessed, "
993 "when set to -1 all array members are used",
997 for (
int is_menu_hold = 0; is_menu_hold < 2; is_menu_hold++) {
998 func = (is_menu_hold) ?
RNA_def_function(srna,
"operator_menu_hold",
"rna_uiItemOMenuHold") :
1001 RNA_def_boolean(func,
"emboss",
true,
"",
"Draw the button itself, not just the icon/text");
1010 func,
"properties",
"OperatorProperties",
"",
"Operator properties to fill in");
1014 "Item. Places a button into the layout to call an Operator");
1020 parm =
RNA_def_string(func,
"property",
NULL, 0,
"",
"Identifier of property in operator");
1022 RNA_def_boolean(func,
"icon_only",
false,
"",
"Draw only icons in buttons, no text");
1024 func =
RNA_def_function(srna,
"operator_menu_enum",
"rna_uiItemMenuEnumO");
1027 parm =
RNA_def_string(func,
"property",
NULL, 0,
"",
"Identifier of property in operator");
1034 func =
RNA_def_function(srna,
"operator_enum_single",
"uiItemEnumO_string");
1036 parm =
RNA_def_string(func,
"property",
NULL, 0,
"",
"Identifier of property in operator");
1043 parm =
RNA_def_string(func,
"property",
NULL, 0,
"",
"Identifier of property in operator");
1046 func,
"value",
false,
"",
"Value of the property to call the operator with");
1051 parm =
RNA_def_string(func,
"property",
NULL, 0,
"",
"Identifier of property in operator");
1059 "Value of the property to call the operator with",
1066 parm =
RNA_def_string(func,
"property",
NULL, 0,
"",
"Identifier of property in operator");
1074 "Value of the property to call the operator with",
1081 parm =
RNA_def_string(func,
"property",
NULL, 0,
"",
"Identifier of property in operator");
1084 func,
"value",
NULL, 0,
"",
"Value of the property to call the operator with");
1113 func =
RNA_def_function(srna,
"popover_group",
"rna_uiItemPopoverPanelFromGroup");
1133 "Percentage of width to space (leave unset for default space)",
1139 func,
"Item. Inserts horizontal spacing empty space into the layout between items");
1142 func =
RNA_def_function(srna,
"context_pointer_set",
"uiLayoutSetContextPointer");
1143 parm =
RNA_def_string(func,
"name",
NULL, 0,
"Name",
"Name of entry in the context");
1145 parm =
RNA_def_pointer(func,
"data",
"AnyType",
"",
"Pointer to put in context");
1156 RNA_def_string(func,
"new",
NULL, 0,
"",
"Operator identifier to create a new ID block");
1158 func,
"open",
NULL, 0,
"",
"Operator identifier to open a file for creating a new ID block");
1159 RNA_def_string(func,
"unlink",
NULL, 0,
"",
"Operator identifier to unlink the ID block");
1162 id_template_filter_items,
1165 "Optionally limit the items which can be selected");
1166 RNA_def_boolean(func,
"live_icon",
false,
"",
"Show preview instead of fixed icon");
1169 func =
RNA_def_function(srna,
"template_ID_preview",
"uiTemplateIDPreview");
1172 RNA_def_string(func,
"new",
NULL, 0,
"",
"Operator identifier to create a new ID block");
1174 func,
"open",
NULL, 0,
"",
"Operator identifier to open a file for creating a new ID block");
1175 RNA_def_string(func,
"unlink",
NULL, 0,
"",
"Operator identifier to unlink the ID block");
1177 func,
"rows", 0, 0, INT_MAX,
"Number of thumbnail preview rows to display",
"", 0, INT_MAX);
1183 "Number of thumbnail preview columns to display",
1189 id_template_filter_items,
1192 "Optionally limit the items which can be selected");
1193 RNA_def_boolean(func,
"hide_buttons",
false,
"",
"Show only list, no buttons");
1196 parm =
RNA_def_pointer(func,
"data",
"AnyType",
"",
"Data from which to take property");
1198 parm =
RNA_def_string(func,
"property",
NULL, 0,
"",
"Identifier of property in data");
1205 "Identifier of property in data giving the type of the ID-blocks to use");
1212 RNA_def_string(func,
"new",
NULL, 0,
"",
"Operator identifier to create a new ID block");
1216 id_template_filter_items,
1219 "Optionally limit the items which can be selected");
1225 func,
"search_data",
"AnyType",
"",
"Data from which to take collection to search in");
1228 func,
"search_property",
NULL, 0,
"",
"Identifier of search collection property");
1231 func,
"new",
NULL, 0,
"",
"Operator identifier to create a new item for the collection");
1237 "Operator identifier to unlink or delete the active "
1238 "item from the collection");
1240 func =
RNA_def_function(srna,
"template_search_preview",
"uiTemplateSearchPreview");
1244 func,
"search_data",
"AnyType",
"",
"Data from which to take collection to search in");
1247 func,
"search_property",
NULL, 0,
"",
"Identifier of search collection property");
1250 func,
"new",
NULL, 0,
"",
"Operator identifier to create a new item for the collection");
1256 "Operator identifier to unlink or delete the active "
1257 "item from the collection");
1259 func,
"rows", 0, 0, INT_MAX,
"Number of thumbnail preview rows to display",
"", 0, INT_MAX);
1265 "Number of thumbnail preview columns to display",
1270 func =
RNA_def_function(srna,
"template_path_builder",
"rna_uiTemplatePathBuilder");
1271 parm =
RNA_def_pointer(func,
"data",
"AnyType",
"",
"Data from which to take property");
1273 parm =
RNA_def_string(func,
"property",
NULL, 0,
"",
"Identifier of property in data");
1275 parm =
RNA_def_pointer(func,
"root",
"ID",
"",
"ID-block from which path is evaluated from");
1279 func =
RNA_def_function(srna,
"template_modifiers",
"uiTemplateModifiers");
1283 func =
RNA_def_function(srna,
"template_constraints",
"uiTemplateConstraints");
1287 "use_bone_constraints",
1290 "Add panels for bone constraints instead of object constraints");
1292 func =
RNA_def_function(srna,
"template_grease_pencil_modifiers",
"uiTemplateGpencilModifiers");
1295 "Generates the panels for the grease pencil modifier stack");
1301 func =
RNA_def_function(srna,
"template_greasepencil_color",
"uiTemplateGpencilColorPreview");
1305 func,
"rows", 0, 0, INT_MAX,
"Number of thumbnail preview rows to display",
"", 0, INT_MAX);
1311 "Number of thumbnail preview columns to display",
1315 RNA_def_float(func,
"scale", 1.0f, 0.1f, 1.5f,
"Scale of the image thumbnails",
"", 0.5f, 1.0f);
1318 id_template_filter_items,
1321 "Optionally limit the items which can be selected");
1323 func =
RNA_def_function(srna,
"template_constraint_header",
"uiTemplateConstraintHeader");
1325 parm =
RNA_def_pointer(func,
"data",
"Constraint",
"",
"Constraint data");
1330 func,
"Item. A preview window for materials, textures, lights or worlds");
1334 RNA_def_boolean(func,
"show_buttons",
true,
"",
"Show preview buttons?");
1343 "Identifier of this preview widget, if not set the ID type will be used "
1344 "(i.e. all previews of materials without explicit ID will have the same size...)");
1346 func =
RNA_def_function(srna,
"template_curve_mapping",
"uiTemplateCurveMapping");
1348 func,
"Item. A curve mapping widget used for e.g falloff curves for lights");
1351 RNA_def_boolean(func,
"levels",
false,
"",
"Show black/white levels");
1353 RNA_def_boolean(func,
"use_negative_slope",
false,
"",
"Use a negative slope by default");
1356 func =
RNA_def_function(srna,
"template_curveprofile",
"uiTemplateCurveProfile");
1360 func =
RNA_def_function(srna,
"template_color_ramp",
"uiTemplateColorRamp");
1363 RNA_def_boolean(func,
"expand",
false,
"",
"Expand button to show more detail");
1367 parm =
RNA_def_int(func,
"icon_value", 0, 0, INT_MAX,
"Icon to display",
"", 0, INT_MAX);
1375 "Scale the icon size (by the button size)",
1382 RNA_def_boolean(func,
"show_labels",
false,
"",
"Show enum label in preview buttons");
1389 "Scale the button icon size (by the button size)",
1398 "Scale the popup icon size (by the button size)",
1402 func =
RNA_def_function(srna,
"template_histogram",
"uiTemplateHistogram");
1410 func =
RNA_def_function(srna,
"template_vectorscope",
"uiTemplateVectorscope");
1417 func,
"used_layers_data",
"AnyType",
"",
"Data from which to take property");
1420 func,
"used_layers_property",
NULL, 0,
"",
"Identifier of property in data");
1422 parm =
RNA_def_int(func,
"active_layer", 0, 0, INT_MAX,
"Active Layer",
"", 0, INT_MAX);
1425 func =
RNA_def_function(srna,
"template_color_picker",
"uiTemplateColorPicker");
1429 func,
"value_slider",
false,
"",
"Display the value slider to the right of the color wheel");
1434 "Lock the color wheel display to value 1.0 regardless of actual color");
1436 func,
"lock_luminosity",
false,
"",
"Keep the color at its original vector length");
1437 RNA_def_boolean(func,
"cubic",
false,
"",
"Cubic saturation for picking values close to white");
1442 RNA_def_boolean(func,
"color", 0,
"",
"Display the colors as colors or values");
1444 func =
RNA_def_function(srna,
"template_image_layers",
"uiTemplateImageLayers");
1453 func,
"Item(s). User interface for selecting images and their source paths");
1458 RNA_def_boolean(func,
"compact",
false,
"",
"Use more compact layout");
1459 RNA_def_boolean(func,
"multiview",
false,
"",
"Expose Multi-View options");
1461 func =
RNA_def_function(srna,
"template_image_settings",
"uiTemplateImageSettings");
1463 parm =
RNA_def_pointer(func,
"image_settings",
"ImageFormatSettings",
"",
"");
1465 RNA_def_boolean(func,
"color_management",
false,
"",
"Show color management settings");
1467 func =
RNA_def_function(srna,
"template_image_stereo_3d",
"uiTemplateImageStereo3d");
1469 parm =
RNA_def_pointer(func,
"stereo_3d_format",
"Stereo3dFormat",
"",
"");
1472 func =
RNA_def_function(srna,
"template_image_views",
"uiTemplateImageViews");
1474 parm =
RNA_def_pointer(func,
"image_settings",
"ImageFormatSettings",
"",
"");
1477 func =
RNA_def_function(srna,
"template_movieclip",
"uiTemplateMovieClip");
1479 func,
"Item(s). User interface for selecting movie clips and their source paths");
1482 RNA_def_boolean(func,
"compact",
false,
"",
"Use more compact layout");
1495 RNA_def_boolean(func,
"compact",
false,
"",
"Use more compact layout");
1498 srna,
"template_movieclip_information",
"uiTemplateMovieclipInformation");
1507 parm =
RNA_def_string(func,
"listtype_name",
NULL, 0,
"",
"Identifier of the list type to use");
1517 "If this not an empty string, the uilist gets a custom ID, otherwise it takes the "
1518 "name of the class used to define the uilist (for example, if the "
1519 "class name is \"OBJECT_UL_vgroups\", and list_id is not set by the "
1520 "script, then bl_idname = \"OBJECT_UL_vgroups\")");
1523 func,
"dataptr",
"AnyType",
"",
"Data from which to take the Collection property");
1526 func,
"propname",
NULL, 0,
"",
"Identifier of the Collection property in data");
1532 "Data from which to take the integer property, index of the active item");
1540 "Identifier of the integer property in active_data, index of the active item");
1543 "item_dyntip_propname",
1547 "Identifier of a string property in items, to use as tooltip content");
1554 "Default and minimum number of rows to display",
1558 func,
"maxrows", 5, 0, INT_MAX,
"",
"Default maximum number of rows to display", 0, INT_MAX);
1564 "Type of layout to use");
1571 "Number of items to display per row, for GRID layout",
1574 RNA_def_boolean(func,
"sort_reverse",
false,
"",
"Display items in reverse order by default");
1575 RNA_def_boolean(func,
"sort_lock",
false,
"",
"Lock display order to default value");
1577 func =
RNA_def_function(srna,
"template_running_jobs",
"uiTemplateRunningJobs");
1580 RNA_def_function(srna,
"template_operator_search",
"uiTemplateOperatorSearch");
1583 func =
RNA_def_function(srna,
"template_header_3D_mode",
"uiTemplateHeader3D_mode");
1587 func =
RNA_def_function(srna,
"template_edit_mode_selection",
"uiTemplateEditModeSelection");
1590 func,
"Inserts common 3DView Edit modes header UI (selector for selection mode)");
1592 func =
RNA_def_function(srna,
"template_reports_banner",
"uiTemplateReportsBanner");
1595 func =
RNA_def_function(srna,
"template_input_status",
"uiTemplateInputStatus");
1616 func =
RNA_def_function(srna,
"template_texture_user",
"uiTemplateTextureUser");
1620 srna,
"template_keymap_item_properties",
"uiTemplateKeymapItemProperties");
1624 func =
RNA_def_function(srna,
"template_component_menu",
"uiTemplateComponentMenu");
1626 parm =
RNA_def_pointer(func,
"data",
"AnyType",
"",
"Data from which to take property");
1628 parm =
RNA_def_string(func,
"property",
NULL, 0,
"",
"Identifier of property in data");
1633 func =
RNA_def_function(srna,
"template_colorspace_settings",
"uiTemplateColorspaceSettings");
1638 srna,
"template_colormanaged_view_settings",
"uiTemplateColormanagedViewSettings");
1640 func,
"Item. A widget to control color managed view settings settings.");
1645 "show_global_settings",
1648 "Show widgets to control global color management settings");
1652 func =
RNA_def_function(srna,
"template_node_socket",
"uiTemplateNodeSocket");
1656 func,
"color", 4, node_socket_color_default, 0.0f, 1.0f,
"Color",
"", 0.0f, 1.0f);
1658 func =
RNA_def_function(srna,
"template_cache_file",
"rna_uiTemplateCacheFile");
1660 func,
"Item(s). User interface for selecting cache files and their source paths");
1664 func =
RNA_def_function(srna,
"template_recent_files",
"uiTemplateRecentFiles");
1666 RNA_def_int(func,
"rows", 5, 1, INT_MAX,
"",
"Maximum number of items to show", 1, INT_MAX);
1667 parm =
RNA_def_int(func,
"found", 0, 0, INT_MAX,
"",
"Number of items drawn", 0, INT_MAX);
1670 func =
RNA_def_function(srna,
"template_file_select_path",
"uiTemplateFileSelectPath");
1672 "Item. A text button to set the active file browser path.");
1678 srna,
"template_event_from_keymap_item",
"rna_uiTemplateEventFromKeymapItem");
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)
@ UI_ITEM_R_CHECKBOX_INVERT
void uiItemPopoverPanelFromGroup(uiLayout *layout, struct bContext *C, int space_id, int region_id, const char *context, const char *category)
void uiItemsFullEnumO(uiLayout *layout, const char *opname, const char *propname, struct IDProperty *properties, int context, int flag)
void uiItemMenuEnumO_ptr(uiLayout *layout, struct bContext *C, struct wmOperatorType *ot, const char *propname, const char *name, int icon)
uiLayout * uiLayoutColumnWithHeading(uiLayout *layout, bool align, const char *heading)
void uiTemplatePathBuilder(uiLayout *layout, struct PointerRNA *ptr, const char *propname, struct PointerRNA *root_ptr, const char *text)
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 uiItemFullOMenuHold_ptr(uiLayout *layout, struct wmOperatorType *ot, const char *name, int icon, struct IDProperty *properties, int context, int flag, const char *menu_id, struct PointerRNA *r_opptr)
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, const bool live_icon, const char *text)
void uiItemFullO_ptr(uiLayout *layout, struct wmOperatorType *ot, const char *name, int icon, struct IDProperty *properties, int context, int flag, struct PointerRNA *r_opptr)
@ UI_TEMPLATE_ID_FILTER_AVAILABLE
@ UI_TEMPLATE_ID_FILTER_ALL
#define UI_UL_DEFAULT_CLASS_NAME
void uiItemPointerR_prop(uiLayout *layout, struct PointerRNA *ptr, struct PropertyRNA *prop, struct PointerRNA *searchptr, struct PropertyRNA *searchprop, const char *name, int icon)
void uiItemPopoverPanel(uiLayout *layout, struct bContext *C, const char *panel_type, const char *name, int icon)
void uiItemMContents(uiLayout *layout, const char *menuname)
int uiLayoutGetOperatorContext(uiLayout *layout)
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)
bool uiTemplateEventFromKeymapItem(struct uiLayout *layout, const char *text, const struct wmKeyMapItem *kmi, bool text_fallback)
void uiItemMenuEnumR_prop(uiLayout *layout, struct PointerRNA *ptr, struct PropertyRNA *prop, const char *name, int icon)
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)
void uiItemM(uiLayout *layout, const char *menuname, const char *name, int icon)
int UI_icon_from_rnaptr(struct bContext *C, struct PointerRNA *ptr, int rnaicon, const bool big)
DO_INLINE void filter(lfVector *V, fmatrix3x3 *S)
void(* MEM_freeN)(void *vmemh)
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_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_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)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
void RNA_def_function_flag(FunctionRNA *func, int flag)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, int maxlen, const char *ui_name, const char *ui_description)
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 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)
struct SELECTID_Context context
wmOperatorType * WM_operatortype_find(const char *idname, bool quiet)