Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/WM_types.h
| Show First 20 Lines • Show All 562 Lines • ▼ Show 20 Lines | typedef struct wmOperatorType { | ||||
| * that the operator might still fail to execute even if this return true */ | * that the operator might still fail to execute even if this return true */ | ||||
| int (*poll)(struct bContext *) ATTR_WARN_UNUSED_RESULT; | int (*poll)(struct bContext *) ATTR_WARN_UNUSED_RESULT; | ||||
| /* optional panel for redo and repeat, autogenerated if not set */ | /* optional panel for redo and repeat, autogenerated if not set */ | ||||
| void (*ui)(struct bContext *, struct wmOperator *); | void (*ui)(struct bContext *, struct wmOperator *); | ||||
| /* rna for properties */ | /* rna for properties */ | ||||
| struct StructRNA *srna; | struct StructRNA *srna; | ||||
| /* The count of basic/non-advanced properties. Works as a threshold property count | |||||
| * after which all properties are considered advanced. Set to -1 if unused. */ | |||||
| int tot_basic_props; | |||||
| /* previous settings - for initializing on re-use */ | /* previous settings - for initializing on re-use */ | ||||
| struct IDProperty *last_properties; | struct IDProperty *last_properties; | ||||
| /* Default rna property to use for generic invoke functions. | /* Default rna property to use for generic invoke functions. | ||||
| * menus, enum search... etc. Example: Enum 'type' for a Delete menu */ | * menus, enum search... etc. Example: Enum 'type' for a Delete menu */ | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| ▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines | |||||