Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_wm.c
| Show First 20 Lines • Show All 2,351 Lines • ▼ Show 20 Lines | static void rna_def_window(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "screen", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "screen", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_struct_type(prop, "Screen"); | RNA_def_property_struct_type(prop, "Screen"); | ||||
| RNA_def_property_ui_text(prop, "Screen", "Active workspace screen showing in the window"); | RNA_def_property_ui_text(prop, "Screen", "Active workspace screen showing in the window"); | ||||
| RNA_def_property_pointer_funcs(prop, | RNA_def_property_pointer_funcs(prop, | ||||
| "rna_Window_screen_get", | "rna_Window_screen_get", | ||||
| "rna_Window_screen_set", | "rna_Window_screen_set", | ||||
| NULL, | NULL, | ||||
| "rna_Window_screen_assign_poll"); | "rna_Window_screen_assign_poll"); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_SCREEN); | |||||
| RNA_def_property_flag(prop, PROP_NEVER_NULL | PROP_EDITABLE | PROP_CONTEXT_UPDATE); | RNA_def_property_flag(prop, PROP_NEVER_NULL | PROP_EDITABLE | PROP_CONTEXT_UPDATE); | ||||
| RNA_def_property_update(prop, 0, "rna_workspace_screen_update"); | RNA_def_property_update(prop, 0, "rna_workspace_screen_update"); | ||||
| prop = RNA_def_property(srna, "view_layer", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "view_layer", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_struct_type(prop, "ViewLayer"); | RNA_def_property_struct_type(prop, "ViewLayer"); | ||||
| RNA_def_property_pointer_funcs( | RNA_def_property_pointer_funcs( | ||||
| prop, "rna_Window_view_layer_get", "rna_Window_view_layer_set", NULL, NULL); | prop, "rna_Window_view_layer_get", "rna_Window_view_layer_set", NULL, NULL); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| ▲ Show 20 Lines • Show All 485 Lines • Show Last 20 Lines | |||||