|
Blender V4.5
|
Go to the source code of this file.
Classes | |
| struct | GHOST_CursorBitmapRef |
| struct | GHOST_TabletData |
| struct | GHOST_TEventCursorData |
| struct | GHOST_TEventButtonData |
| struct | GHOST_TEventWheelData |
| struct | GHOST_TEventTrackpadData |
| struct | GHOST_TEventDragnDropData |
| struct | GHOST_TEventImeData |
| struct | GHOST_TStringArray |
| struct | GHOST_TEventKeyData |
| struct | GHOST_GPUDevice |
| struct | GHOST_GPUSettings |
| struct | GHOST_WindowDecorationStyleSettings |
| struct | GHOST_Debug |
Macros | |
| #define | GHOST_DECLARE_HANDLE(name) |
| #define | GHOST_CAPABILITY_FLAG_ALL |
| #define | GHOST_kButtonNum (int(GHOST_kButtonMaskButton7) + 1) |
| #define | GHOST_kNumEventTypes (GHOST_kEventImeCompositionEnd + 1) |
| #define | GHOST_kStandardCursorFirstCursor int(GHOST_kStandardCursorDefault) |
| #define | GHOST_kStandardCursorNumCursors (int(GHOST_kStandardCursorCustom) + 1) |
| #define | _GHOST_KEY_MODIFIER_MIN GHOST_kKeyLeftShift |
| #define | _GHOST_KEY_MODIFIER_MAX GHOST_kKeyRightHyper |
| #define | GHOST_KEY_MODIFIER_NUM ((_GHOST_KEY_MODIFIER_MAX - _GHOST_KEY_MODIFIER_MIN) + 1) |
| #define | GHOST_KEY_MODIFIER_TO_INDEX(key) |
| #define | GHOST_KEY_MODIFIER_FROM_INDEX(key) |
| #define | GHOST_KEY_MODIFIER_CHECK(key) |
| #define | GHOST_GRAB_NEEDS_SOFTWARE_CURSOR_FOR_WARP(grab) |
Typedefs | |
| typedef void(* | GHOST_TBacktraceFn) (void *file_handle) |
| typedef enum GHOST_DialogOptions | GHOST_DialogOptions |
| typedef void * | GHOST_TUserDataPtr |
| typedef struct GHOST_TabletData | GHOST_TabletData |
| typedef const void * | GHOST_TEventDataPtr |
| typedef void * | GHOST_TDragnDropDataPtr |
| typedef int | GHOST_TEmbedderWindowID |
| typedef void(* | GHOST_TimerProcPtr) (struct GHOST_TimerTaskHandle__ *task, uint64_t time) |
Functions | |
| GHOST_DECLARE_HANDLE (GHOST_SystemHandle) | |
| GHOST_DECLARE_HANDLE (GHOST_TimerTaskHandle) | |
| GHOST_DECLARE_HANDLE (GHOST_WindowHandle) | |
| GHOST_DECLARE_HANDLE (GHOST_EventHandle) | |
| GHOST_DECLARE_HANDLE (GHOST_RectangleHandle) | |
| GHOST_DECLARE_HANDLE (GHOST_EventConsumerHandle) | |
| GHOST_DECLARE_HANDLE (GHOST_ContextHandle) | |
| GHOST_DECLARE_HANDLE (GHOST_XrContextHandle) | |
Variables | |
| static const GHOST_TabletData | GHOST_TABLET_DATA_NONE |
| #define _GHOST_KEY_MODIFIER_MAX GHOST_kKeyRightHyper |
Definition at line 459 of file GHOST_Types.h.
| #define _GHOST_KEY_MODIFIER_MIN GHOST_kKeyLeftShift |
Definition at line 446 of file GHOST_Types.h.
| #define GHOST_CAPABILITY_FLAG_ALL |
Back-ends should use this, masking out features which are not supported with notes as to why those features cannot be supported.
Definition at line 138 of file GHOST_Types.h.
Referenced by GHOST_SystemCocoa::getCapabilities(), GHOST_SystemHeadless::getCapabilities(), GHOST_SystemSDL::getCapabilities(), GHOST_SystemWayland::getCapabilities(), GHOST_SystemWin32::getCapabilities(), and GHOST_SystemX11::getCapabilities().
| #define GHOST_DECLARE_HANDLE | ( | name | ) |
Definition at line 34 of file GHOST_Types.h.
| #define GHOST_GRAB_NEEDS_SOFTWARE_CURSOR_FOR_WARP | ( | grab | ) |
Definition at line 554 of file GHOST_Types.h.
| #define GHOST_kButtonNum (int(GHOST_kButtonMaskButton7) + 1) |
Definition at line 248 of file GHOST_Types.h.
| #define GHOST_KEY_MODIFIER_CHECK | ( | key | ) |
Definition at line 538 of file GHOST_Types.h.
Referenced by keyboard_depressed_state_key_event(), and GHOST_SystemWin32::processKeyEvent().
| #define GHOST_KEY_MODIFIER_FROM_INDEX | ( | key | ) |
Definition at line 536 of file GHOST_Types.h.
Referenced by keyboard_depressed_state_push_events_from_change().
| #define GHOST_KEY_MODIFIER_NUM ((_GHOST_KEY_MODIFIER_MAX - _GHOST_KEY_MODIFIER_MIN) + 1) |
Definition at line 534 of file GHOST_Types.h.
Referenced by keyboard_depressed_state_push_events_from_change(), and keyboard_depressed_state_reset().
| #define GHOST_KEY_MODIFIER_TO_INDEX | ( | key | ) |
Definition at line 535 of file GHOST_Types.h.
Referenced by GHOST_SystemWayland::getModifierKeys(), and keyboard_depressed_state_key_event().
| #define GHOST_kNumEventTypes (GHOST_kEventImeCompositionEnd + 1) |
Definition at line 326 of file GHOST_Types.h.
Referenced by wm_event_add_ghostevent().
| #define GHOST_kStandardCursorFirstCursor int(GHOST_kStandardCursorDefault) |
Definition at line 330 of file GHOST_Types.h.
Referenced by Application::Application(), Application::processEvent(), and processEvent().
| #define GHOST_kStandardCursorNumCursors (int(GHOST_kStandardCursorCustom) + 1) |
Definition at line 378 of file GHOST_Types.h.
Referenced by mainwindow_do_key(), Application::processEvent(), and processEvent().
| typedef struct GHOST_TabletData GHOST_TabletData |
| typedef void(* GHOST_TBacktraceFn) (void *file_handle) |
Definition at line 56 of file GHOST_Types.h.
Definition at line 624 of file GHOST_Types.h.
Definition at line 876 of file GHOST_Types.h.
| typedef const void* GHOST_TEventDataPtr |
Definition at line 563 of file GHOST_Types.h.
Definition at line 889 of file GHOST_Types.h.
| typedef void* GHOST_TUserDataPtr |
Definition at line 78 of file GHOST_Types.h.
| enum GHOST_DialogOptions |
| Enumerator | |
|---|---|
| GHOST_DialogWarning | |
| GHOST_DialogError | |
Definition at line 73 of file GHOST_Types.h.
| enum GHOST_GPUFlags |
| Enumerator | |
|---|---|
| GHOST_gpuStereoVisual | |
| GHOST_gpuDebugContext | |
Definition at line 68 of file GHOST_Types.h.
| enum GHOST_NDOF_ButtonT |
NDOF device button event types.
SpaceMouse devices ship with an internal identifier number for each button. Deprecated versions of the 3DxWare SDK have a virtualkeys.h header file where some of these numbers are found but it is basically an arbitrary assignment made by the vendor (3Dconnexion) since the application has the freedom to override as necessary.
Definition at line 1083 of file GHOST_Types.h.
| enum GHOST_TAxisFlag |
| Enumerator | |
|---|---|
| GHOST_kAxisNone | Axis that cursor grab will wrap. |
| GHOST_kAxisX | |
| GHOST_kAxisY | |
Definition at line 556 of file GHOST_Types.h.
| enum GHOST_TButton |
Definition at line 237 of file GHOST_Types.h.
Static flag (relating to the back-ends support for features).
| Enumerator | |
|---|---|
| GHOST_kCapabilityCursorWarp | Set when warping the cursor is supported (re-positioning the users cursor). |
| GHOST_kCapabilityWindowPosition | Set when getting/setting the window position is supported. |
| GHOST_kCapabilityPrimaryClipboard | Set when a separate primary clipboard is supported. This is a convention for X11/WAYLAND, select text & MMB to paste (without an explicit copy). |
| GHOST_kCapabilityGPUReadFrontBuffer | Support for reading the front-buffer. |
| GHOST_kCapabilityClipboardImages | Set when there is support for system clipboard copy/paste. |
| GHOST_kCapabilityDesktopSample | Support for sampling a color outside of the Blender windows. |
| GHOST_kCapabilityInputIME | Supports IME text input methods (when WITH_INPUT_IME is defined). |
| GHOST_kCapabilityTrackpadPhysicalDirection | Support detecting the physical trackpad direction. |
| GHOST_kCapabilityWindowDecorationStyles | Support for window decoration styles. |
| GHOST_kCapabilityKeyboardHyperKey | Support for the "Hyper" modifier key. |
Definition at line 89 of file GHOST_Types.h.
| Enumerator | |
|---|---|
| GHOST_kConsoleWindowStateHide | |
| GHOST_kConsoleWindowStateShow | |
| GHOST_kConsoleWindowStateToggle | |
| GHOST_kConsoleWindowStateHideForNonConsoleLaunch | |
Definition at line 212 of file GHOST_Types.h.
| enum GHOST_TDebugFlags |
| Enumerator | |
|---|---|
| GHOST_kDebugDefault | Axis that cursor grab will wrap. |
| GHOST_kDebugWintab | |
Definition at line 859 of file GHOST_Types.h.
| Enumerator | |
|---|---|
| GHOST_kDragnDropTypeUnknown | |
| GHOST_kDragnDropTypeFilenames | |
| GHOST_kDragnDropTypeString | |
| GHOST_kDragnDropTypeBitmap | |
Definition at line 617 of file GHOST_Types.h.
| Enumerator | |
|---|---|
| GHOST_kDrawingContextTypeNone | |
Definition at line 221 of file GHOST_Types.h.
| enum GHOST_TEventType |
| Enumerator | |
|---|---|
| GHOST_kEventUnknown | |
| GHOST_kEventCursorMove | Mouse move event.
|
| GHOST_kEventButtonDown | Mouse button down event. |
| GHOST_kEventButtonUp | Mouse button up event. |
| GHOST_kEventWheel | Vertical/Horizontal mouse wheel event.
|
| GHOST_kEventTrackpad | Trackpad event.
|
| GHOST_kEventKeyDown | Keyboard up/down events. Includes repeat events, check GHOST_TEventKeyData::is_repeat if detecting repeat events is needed.
|
| GHOST_kEventKeyUp | |
| GHOST_kEventQuitRequest | |
| GHOST_kEventWindowClose | |
| GHOST_kEventWindowActivate | |
| GHOST_kEventWindowDeactivate | |
| GHOST_kEventWindowUpdate | |
| GHOST_kEventWindowUpdateDecor | Client side window decorations have changed and need to be redrawn. |
| GHOST_kEventWindowSize | |
| GHOST_kEventWindowMove | |
| GHOST_kEventWindowDPIHintChanged | |
| GHOST_kEventDraggingEntered | |
| GHOST_kEventDraggingUpdated | |
| GHOST_kEventDraggingExited | |
| GHOST_kEventDraggingDropDone | |
| GHOST_kEventOpenMainFile | |
| GHOST_kEventNativeResolutionChange | |
| GHOST_kEventImeCompositionStart | |
| GHOST_kEventImeComposition | |
| GHOST_kEventImeCompositionEnd | |
Definition at line 251 of file GHOST_Types.h.
| Enumerator | |
|---|---|
| GHOST_kEventWheelAxisVertical | |
| GHOST_kEventWheelAxisHorizontal | |
Definition at line 581 of file GHOST_Types.h.
| Enumerator | |
|---|---|
| GHOST_kFireTimeNever | |
Definition at line 185 of file GHOST_Types.h.
Definition at line 540 of file GHOST_Types.h.
| enum GHOST_TKey |
Definition at line 381 of file GHOST_Types.h.
| enum GHOST_TModifierKey |
Definition at line 187 of file GHOST_Types.h.
| enum GHOST_TProgress |
Keep in sync with wmProgress.
| Enumerator | |
|---|---|
| GHOST_kNotStarted | |
| GHOST_kStarting | |
| GHOST_kInProgress | |
| GHOST_kFinishing | |
| GHOST_kFinished | |
Definition at line 660 of file GHOST_Types.h.
Definition at line 329 of file GHOST_Types.h.
| enum GHOST_TSuccess |
| Enumerator | |
|---|---|
| GHOST_kFailure | |
| GHOST_kSuccess | |
Definition at line 80 of file GHOST_Types.h.
| enum GHOST_TTabletAPI |
| Enumerator | |
|---|---|
| GHOST_kTabletAutomatic | |
| GHOST_kTabletWinPointer | |
| GHOST_kTabletWintab | |
Definition at line 158 of file GHOST_Types.h.
| enum GHOST_TTabletMode |
| Enumerator | |
|---|---|
| GHOST_kTabletModeNone | |
| GHOST_kTabletModeStylus | |
| GHOST_kTabletModeEraser | |
Definition at line 152 of file GHOST_Types.h.
| Enumerator | |
|---|---|
| GHOST_kTrackpadEventUnknown | |
| GHOST_kTrackpadEventScroll | |
| GHOST_kTrackpadEventRotate | |
| GHOST_kTrackpadEventSwipe | |
| GHOST_kTrackpadEventMagnify | |
| GHOST_kTrackpadEventSmartMagnify | |
Definition at line 593 of file GHOST_Types.h.
Definition at line 711 of file GHOST_Types.h.
| enum GHOST_TVisibility |
| Enumerator | |
|---|---|
| GHOST_kNotVisible | |
| GHOST_kPartiallyVisible | |
| GHOST_kFullyVisible | |
Definition at line 179 of file GHOST_Types.h.
| Enumerator | |
|---|---|
| GHOST_kDecorationNone | |
| GHOST_kDecorationColoredTitleBar | |
Definition at line 722 of file GHOST_Types.h.
| enum GHOST_TWindowOrder |
| Enumerator | |
|---|---|
| GHOST_kWindowOrderTop | |
| GHOST_kWindowOrderBottom | |
Definition at line 219 of file GHOST_Types.h.
| enum GHOST_TWindowState |
| Enumerator | |
|---|---|
| GHOST_kWindowStateNormal | |
| GHOST_kWindowStateMaximized | |
| GHOST_kWindowStateMinimized | |
| GHOST_kWindowStateFullScreen | |
Definition at line 205 of file GHOST_Types.h.
| GHOST_DECLARE_HANDLE | ( | GHOST_ContextHandle | ) |
| GHOST_DECLARE_HANDLE | ( | GHOST_EventConsumerHandle | ) |
| GHOST_DECLARE_HANDLE | ( | GHOST_EventHandle | ) |
| GHOST_DECLARE_HANDLE | ( | GHOST_RectangleHandle | ) |
| GHOST_DECLARE_HANDLE | ( | GHOST_SystemHandle | ) |
Creates a "handle" for a C++ GHOST object. A handle is just an opaque pointer to an empty struct. In the API the pointer is cast to the actual C++ class. The 'name' argument to the macro is the name of the handle to create.
| GHOST_DECLARE_HANDLE | ( | GHOST_TimerTaskHandle | ) |
| GHOST_DECLARE_HANDLE | ( | GHOST_WindowHandle | ) |
| GHOST_DECLARE_HANDLE | ( | GHOST_XrContextHandle | ) |
|
static |
Definition at line 173 of file GHOST_Types.h.
Referenced by GHOST_WindowWin32::getTabletData(), GHOST_WindowCocoa::GHOST_WindowCocoa(), GHOST_WindowWin32::GHOST_WindowWin32(), GHOST_WindowX11::GHOST_WindowX11(), GHOST_SystemCocoa::handleTabletEvent(), GHOST_SystemCocoa::handleWindowEvent(), GHOST_Wintab::leaveRange(), pointer_handle_enter(), pointer_handle_frame(), GHOST_SystemWin32::processCursorEvent(), relative_pointer_handle_relative_motion_impl(), GHOST_WindowWin32::resetPointerPenInfo(), and GHOST_SystemWayland::window_cursor_grab_set().