Blender  V2.93
Functions | Variables
#include <stdlib.h>
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "DNA_userdef_types.h"
#include "DNA_windowmanager_types.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#include "BKE_keyconfig.h"
#include "BKE_workspace.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "rna_internal.h"
#include "WM_types.h"

Go to the source code of this file.

Functions

static void rna_def_operator_options_runtime (BlenderRNA *brna)
 
static void rna_def_operator (BlenderRNA *brna)
 
static void rna_def_macro_operator (BlenderRNA *brna)
 
static void rna_def_operator_type_macro (BlenderRNA *brna)
 
static void rna_def_operator_utils (BlenderRNA *brna)
 
static void rna_def_operator_filelist_element (BlenderRNA *brna)
 
static void rna_def_event (BlenderRNA *brna)
 
static void rna_def_timer (BlenderRNA *brna)
 
static void rna_def_popup_menu_wrapper (BlenderRNA *brna, const char *rna_type, const char *c_type, const char *layout_get_fn)
 
static void rna_def_popupmenu (BlenderRNA *brna)
 
static void rna_def_popovermenu (BlenderRNA *brna)
 
static void rna_def_piemenu (BlenderRNA *brna)
 
static void rna_def_window_stereo3d (BlenderRNA *brna)
 
static void rna_def_window (BlenderRNA *brna)
 
static void rna_def_wm_keyconfigs (BlenderRNA *brna, PropertyRNA *cprop)
 
static void rna_def_windowmanager (BlenderRNA *brna)
 
static void rna_def_keymap_items (BlenderRNA *brna, PropertyRNA *cprop)
 
static void rna_def_wm_keymaps (BlenderRNA *brna, PropertyRNA *cprop)
 
static void rna_def_keyconfig_prefs (BlenderRNA *brna)
 
static void rna_def_keyconfig (BlenderRNA *brna)
 
void RNA_def_wm (BlenderRNA *brna)
 

Variables

const EnumPropertyItem rna_enum_event_type_items []
 
const EnumPropertyItem rna_enum_event_value_all_items []
 
const EnumPropertyItem rna_enum_event_value_keymouse_items []
 
const EnumPropertyItem rna_enum_event_value_tweak_items []
 
const EnumPropertyItem rna_enum_keymap_propvalue_items []
 
const EnumPropertyItem rna_enum_event_type_mask_items []
 
const EnumPropertyItem rna_enum_operator_type_flag_items []
 
const EnumPropertyItem rna_enum_operator_return_items []
 
const EnumPropertyItem rna_enum_operator_property_tags []
 
const EnumPropertyItem rna_enum_wm_report_items []
 

Function Documentation

◆ rna_def_event()

static void rna_def_event ( BlenderRNA brna)
static

◆ rna_def_keyconfig()

static void rna_def_keyconfig ( BlenderRNA brna)
static

◆ rna_def_keyconfig_prefs()

static void rna_def_keyconfig_prefs ( BlenderRNA brna)
static

◆ rna_def_keymap_items()

static void rna_def_keymap_items ( BlenderRNA brna,
PropertyRNA cprop 
)
static

◆ rna_def_macro_operator()

static void rna_def_macro_operator ( BlenderRNA brna)
static

◆ rna_def_operator()

static void rna_def_operator ( BlenderRNA brna)
static

◆ rna_def_operator_filelist_element()

static void rna_def_operator_filelist_element ( BlenderRNA brna)
static

◆ rna_def_operator_options_runtime()

static void rna_def_operator_options_runtime ( BlenderRNA brna)
static

◆ rna_def_operator_type_macro()

static void rna_def_operator_type_macro ( BlenderRNA brna)
static

◆ rna_def_operator_utils()

static void rna_def_operator_utils ( BlenderRNA brna)
static

◆ rna_def_piemenu()

static void rna_def_piemenu ( BlenderRNA brna)
static

Definition at line 2321 of file rna_wm.c.

References rna_def_popup_menu_wrapper().

Referenced by RNA_def_wm().

◆ rna_def_popovermenu()

static void rna_def_popovermenu ( BlenderRNA brna)
static

Definition at line 2316 of file rna_wm.c.

References rna_def_popup_menu_wrapper().

Referenced by RNA_def_wm().

◆ rna_def_popup_menu_wrapper()

static void rna_def_popup_menu_wrapper ( BlenderRNA brna,
const char *  rna_type,
const char *  c_type,
const char *  layout_get_fn 
)
static

◆ rna_def_popupmenu()

static void rna_def_popupmenu ( BlenderRNA brna)
static

Definition at line 2311 of file rna_wm.c.

References rna_def_popup_menu_wrapper().

Referenced by RNA_def_wm().

◆ rna_def_timer()

static void rna_def_timer ( BlenderRNA brna)
static

◆ rna_def_window()

static void rna_def_window ( BlenderRNA brna)
static

◆ rna_def_window_stereo3d()

static void rna_def_window_stereo3d ( BlenderRNA brna)
static

◆ rna_def_windowmanager()

static void rna_def_windowmanager ( BlenderRNA brna)
static

◆ RNA_def_wm()

void RNA_def_wm ( BlenderRNA brna)

◆ rna_def_wm_keyconfigs()

static void rna_def_wm_keyconfigs ( BlenderRNA brna,
PropertyRNA cprop 
)
static

◆ rna_def_wm_keymaps()

static void rna_def_wm_keymaps ( BlenderRNA brna,
PropertyRNA cprop 
)
static

Variable Documentation

◆ rna_enum_event_type_items

const EnumPropertyItem rna_enum_event_type_items[]

◆ rna_enum_event_type_mask_items

const EnumPropertyItem rna_enum_event_type_mask_items[]
Initial value:
= {
{EVT_TYPE_MASK_KEYBOARD_MODIFIER, "KEYBOARD_MODIFIER", 0, "Keyboard Modifier", ""},
{EVT_TYPE_MASK_KEYBOARD, "KEYBOARD", 0, "Keyboard", ""},
{EVT_TYPE_MASK_MOUSE_WHEEL, "MOUSE_WHEEL", 0, "Mouse Wheel", ""},
{EVT_TYPE_MASK_MOUSE_GESTURE, "MOUSE_GESTURE", 0, "Mouse Gesture", ""},
{EVT_TYPE_MASK_MOUSE_BUTTON, "MOUSE_BUTTON", 0, "Mouse Button", ""},
{EVT_TYPE_MASK_MOUSE, "MOUSE", 0, "Mouse", ""},
{EVT_TYPE_MASK_NDOF, "NDOF", 0, "NDOF", ""},
{EVT_TYPE_MASK_TWEAK, "TWEAK", 0, "Tweak", ""},
{EVT_TYPE_MASK_ACTIONZONE, "ACTIONZONE", 0, "Action Zone", ""},
{0, NULL, 0, NULL, NULL},
}
@ EVT_TYPE_MASK_TWEAK
@ EVT_TYPE_MASK_ACTIONZONE
@ EVT_TYPE_MASK_KEYBOARD_MODIFIER
@ EVT_TYPE_MASK_NDOF
@ EVT_TYPE_MASK_MOUSE_WHEEL
@ EVT_TYPE_MASK_MOUSE_GESTURE
@ EVT_TYPE_MASK_MOUSE_BUTTON
@ EVT_TYPE_MASK_MOUSE
@ EVT_TYPE_MASK_KEYBOARD

Definition at line 426 of file rna_wm.c.

Referenced by RNA_api_keyconfigs(), and RNA_api_keymapitems().

◆ rna_enum_event_value_all_items

const EnumPropertyItem rna_enum_event_value_all_items[]
Initial value:
= {
{KM_ANY, "ANY", 0, "Any", ""},
{KM_PRESS, "PRESS", 0, "Press", ""},
{KM_RELEASE, "RELEASE", 0, "Release", ""},
{KM_CLICK, "CLICK", 0, "Click", ""},
{KM_DBL_CLICK, "DOUBLE_CLICK", 0, "Double Click", ""},
{KM_CLICK_DRAG, "CLICK_DRAG", 0, "Click Drag", ""},
{EVT_GESTURE_N, "NORTH", 0, "North", ""},
{EVT_GESTURE_NE, "NORTH_EAST", 0, "North-East", ""},
{EVT_GESTURE_E, "EAST", 0, "East", ""},
{EVT_GESTURE_SE, "SOUTH_EAST", 0, "South-East", ""},
{EVT_GESTURE_S, "SOUTH", 0, "South", ""},
{EVT_GESTURE_SW, "SOUTH_WEST", 0, "South-West", ""},
{EVT_GESTURE_W, "WEST", 0, "West", ""},
{EVT_GESTURE_NW, "NORTH_WEST", 0, "North-West", ""},
{KM_NOTHING, "NOTHING", 0, "Nothing", ""},
{0, NULL, 0, NULL, NULL},
}
#define KM_CLICK
Definition: WM_types.h:244
#define KM_ANY
Definition: WM_types.h:240
#define KM_CLICK_DRAG
Definition: WM_types.h:246
#define KM_PRESS
Definition: WM_types.h:242
#define KM_NOTHING
Definition: WM_types.h:241
#define KM_DBL_CLICK
Definition: WM_types.h:245
#define KM_RELEASE
Definition: WM_types.h:243
@ EVT_GESTURE_NW
@ EVT_GESTURE_SW
@ EVT_GESTURE_W
@ EVT_GESTURE_N
@ EVT_GESTURE_NE
@ EVT_GESTURE_SE
@ EVT_GESTURE_E
@ EVT_GESTURE_S
Note
This contains overlapping items from:

This is needed for km.keymap_items.new value argument, to accept values from different types.

Definition at line 376 of file rna_wm.c.

Referenced by event_ids_from_type_and_value(), RNA_api_keymapitems(), RNA_api_window(), rna_def_event(), and rna_def_keyconfig().

◆ rna_enum_event_value_keymouse_items

const EnumPropertyItem rna_enum_event_value_keymouse_items[]
Initial value:
= {
{KM_ANY, "ANY", 0, "Any", ""},
{KM_PRESS, "PRESS", 0, "Press", ""},
{KM_RELEASE, "RELEASE", 0, "Release", ""},
{KM_CLICK, "CLICK", 0, "Click", ""},
{KM_DBL_CLICK, "DOUBLE_CLICK", 0, "Double Click", ""},
{KM_CLICK_DRAG, "CLICK_DRAG", 0, "Click Drag", ""},
{KM_NOTHING, "NOTHING", 0, "Nothing", ""},
{0, NULL, 0, NULL, NULL},
}

Definition at line 395 of file rna_wm.c.

◆ rna_enum_event_value_tweak_items

const EnumPropertyItem rna_enum_event_value_tweak_items[]
Initial value:
= {
{KM_ANY, "ANY", 0, "Any", ""},
{EVT_GESTURE_N, "NORTH", 0, "North", ""},
{EVT_GESTURE_NE, "NORTH_EAST", 0, "North-East", ""},
{EVT_GESTURE_E, "EAST", 0, "East", ""},
{EVT_GESTURE_SE, "SOUTH_EAST", 0, "South-East", ""},
{EVT_GESTURE_S, "SOUTH", 0, "South", ""},
{EVT_GESTURE_SW, "SOUTH_WEST", 0, "South-West", ""},
{EVT_GESTURE_W, "WEST", 0, "West", ""},
{EVT_GESTURE_NW, "NORTH_WEST", 0, "North-West", ""},
{0, NULL, 0, NULL, NULL},
}

Definition at line 407 of file rna_wm.c.

Referenced by event_ids_from_type_and_value().

◆ rna_enum_keymap_propvalue_items

const EnumPropertyItem rna_enum_keymap_propvalue_items[]
Initial value:
= {
{0, "NONE", 0, "", ""},
{0, NULL, 0, NULL, NULL},
}

Definition at line 420 of file rna_wm.c.

Referenced by rna_def_keyconfig().

◆ rna_enum_operator_property_tags

const EnumPropertyItem rna_enum_operator_property_tags[]
Initial value:
= {
"ADVANCED",
0,
"Advanced",
"The property is advanced so UI is suggested to hide it"},
{0, NULL, 0, NULL, NULL},
}
@ OP_PROP_TAG_ADVANCED
Definition: WM_types.h:214

Definition at line 498 of file rna_wm.c.

Referenced by rna_def_operator(), and wm_operatortype_append__begin().

◆ rna_enum_operator_return_items

const EnumPropertyItem rna_enum_operator_return_items[]
Initial value:
= {
"RUNNING_MODAL",
0,
"Running Modal",
"Keep the operator running with blender"},
"CANCELLED",
0,
"Cancelled",
"The operator exited without doing anything, so no undo entry should be pushed"},
"FINISHED",
0,
"Finished",
"The operator exited after completing its action"},
{OPERATOR_PASS_THROUGH, "PASS_THROUGH", 0, "Pass Through", "Do nothing and pass the event on"},
{OPERATOR_INTERFACE, "INTERFACE", 0, "Interface", "Handled but not executed (popup menus)"},
{0, NULL, 0, NULL, NULL},
}
@ OPERATOR_CANCELLED
@ OPERATOR_INTERFACE
@ OPERATOR_FINISHED
@ OPERATOR_RUNNING_MODAL
@ OPERATOR_PASS_THROUGH

Definition at line 476 of file rna_wm.c.

Referenced by pyop_call(), RNA_api_operator(), rna_def_gizmo(), and rna_generic_op_invoke().

◆ rna_enum_operator_type_flag_items

const EnumPropertyItem rna_enum_operator_type_flag_items[]
Initial value:
= {
"REGISTER",
0,
"Register",
"Display in the info window and support the redo toolbar panel"},
{OPTYPE_UNDO, "UNDO", 0, "Undo", "Push an undo event (needed for operator redo)"},
"UNDO_GROUPED",
0,
"Grouped Undo",
"Push a single undo event for repeated instances of this operator"},
{OPTYPE_BLOCKING, "BLOCKING", 0, "Blocking", "Block anything else from using the cursor"},
{OPTYPE_MACRO, "MACRO", 0, "Macro", "Use to check if an operator is a macro"},
"GRAB_CURSOR",
0,
"Grab Pointer",
"Use so the operator grabs the mouse focus, enables wrapping when continuous grab "
"is enabled"},
{OPTYPE_GRAB_CURSOR_X, "GRAB_CURSOR_X", 0, "Grab Pointer X", "Grab, only warping the X axis"},
{OPTYPE_GRAB_CURSOR_Y, "GRAB_CURSOR_Y", 0, "Grab Pointer Y", "Grab, only warping the Y axis"},
{OPTYPE_PRESET, "PRESET", 0, "Preset", "Display a preset button with the operators settings"},
{OPTYPE_INTERNAL, "INTERNAL", 0, "Internal", "Removes the operator from search results"},
{0, NULL, 0, NULL, NULL},
}
@ OPTYPE_PRESET
Definition: WM_types.h:168
@ OPTYPE_INTERNAL
Definition: WM_types.h:175
@ OPTYPE_MACRO
Definition: WM_types.h:158
@ OPTYPE_BLOCKING
Definition: WM_types.h:157
@ OPTYPE_UNDO_GROUPED
Definition: WM_types.h:180
@ OPTYPE_UNDO
Definition: WM_types.h:155
@ OPTYPE_GRAB_CURSOR_XY
Definition: WM_types.h:161
@ OPTYPE_REGISTER
Definition: WM_types.h:153
@ OPTYPE_GRAB_CURSOR_X
Definition: WM_types.h:163
@ OPTYPE_GRAB_CURSOR_Y
Definition: WM_types.h:165

Definition at line 449 of file rna_wm.c.

Referenced by rna_def_macro_operator(), and rna_def_operator().

◆ rna_enum_wm_report_items

const EnumPropertyItem rna_enum_wm_report_items[]
Initial value:
= {
{RPT_DEBUG, "DEBUG", 0, "Debug", ""},
{RPT_INFO, "INFO", 0, "Info", ""},
{RPT_OPERATOR, "OPERATOR", 0, "Operator", ""},
{RPT_PROPERTY, "PROPERTY", 0, "Property", ""},
{RPT_WARNING, "WARNING", 0, "Warning", ""},
{RPT_ERROR, "ERROR", 0, "Error", ""},
{RPT_ERROR_INVALID_INPUT, "ERROR_INVALID_INPUT", 0, "Invalid Input", ""},
{RPT_ERROR_INVALID_CONTEXT, "ERROR_INVALID_CONTEXT", 0, "Invalid Context", ""},
{RPT_ERROR_OUT_OF_MEMORY, "ERROR_OUT_OF_MEMORY", 0, "Out of Memory", ""},
{0, NULL, 0, NULL, NULL},
}
@ RPT_ERROR_OUT_OF_MEMORY
@ RPT_ERROR_INVALID_INPUT
@ RPT_ERROR_INVALID_CONTEXT

Definition at line 508 of file rna_wm.c.

Referenced by RNA_api_macro(), RNA_api_operator(), and rna_def_render_engine().