|
Blender V5.0
|
Go to the source code of this file.
Classes | |
| struct | GHOST_CursorBitmapRef |
| struct | GHOST_CursorGenerator |
| 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_ContextParams |
| struct | GHOST_GPUSettings |
| struct | GHOST_WindowDecorationStyleSettings |
| struct | GHOST_WindowHDRInfo |
| 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) |
| #define | GHOST_CONTEXT_PARAMS_NONE |
| #define | GHOST_CONTEXT_PARAMS_FROM_GPU_SETTINGS_OFFSCREEN(gpu_settings) |
| #define | GHOST_CONTEXT_PARAMS_FROM_GPU_SETTINGS(gpu_settings) |
| #define | GHOST_WINDOW_HDR_INFO_NONE |
Typedefs | |
| typedef void(* | GHOST_TBacktraceFn) (void *file_handle) |
| typedef void * | GHOST_TUserDataPtr |
| typedef struct GHOST_CursorGenerator | GHOST_CursorGenerator |
| typedef enum GHOST_DialogOptions | GHOST_DialogOptions |
| 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 520 of file GHOST_Types.h.
| #define _GHOST_KEY_MODIFIER_MIN GHOST_kKeyLeftShift |
Definition at line 507 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 193 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_CONTEXT_PARAMS_FROM_GPU_SETTINGS | ( | gpu_settings | ) |
Definition at line 840 of file GHOST_Types.h.
Referenced by GHOST_SystemCocoa::createWindow(), GHOST_SystemHeadless::createWindow(), GHOST_SystemWayland::createWindow(), GHOST_SystemWin32::createWindow(), and GHOST_SystemX11::createWindow().
| #define GHOST_CONTEXT_PARAMS_FROM_GPU_SETTINGS_OFFSCREEN | ( | gpu_settings | ) |
Definition at line 833 of file GHOST_Types.h.
Referenced by GHOST_SystemCocoa::createOffscreenContext(), GHOST_SystemHeadless::createOffscreenContext(), GHOST_SystemSDL::createOffscreenContext(), GHOST_SystemWayland::createOffscreenContext(), GHOST_SystemWin32::createOffscreenContext(), and GHOST_SystemX11::createOffscreenContext().
| #define GHOST_CONTEXT_PARAMS_NONE |
Definition at line 826 of file GHOST_Types.h.
Referenced by GHOST_SystemWin32::createOffscreenContextD3D(), and GHOST_Window::GHOST_Window().
| #define GHOST_DECLARE_HANDLE | ( | name | ) |
Definition at line 31 of file GHOST_Types.h.
| #define GHOST_GRAB_NEEDS_SOFTWARE_CURSOR_FOR_WARP | ( | grab | ) |
Definition at line 615 of file GHOST_Types.h.
| #define GHOST_kButtonNum (int(GHOST_kButtonMaskButton7) + 1) |
Definition at line 304 of file GHOST_Types.h.
| #define GHOST_KEY_MODIFIER_CHECK | ( | key | ) |
Definition at line 599 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 597 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 595 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 596 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 382 of file GHOST_Types.h.
Referenced by wm_event_add_ghostevent().
| #define GHOST_kStandardCursorFirstCursor int(GHOST_kStandardCursorDefault) |
Definition at line 386 of file GHOST_Types.h.
Referenced by Application::Application(), Application::processEvent(), and processEvent().
| #define GHOST_kStandardCursorNumCursors (int(GHOST_kStandardCursorCustom) + 1) |
Definition at line 439 of file GHOST_Types.h.
Referenced by mainwindow_do_key(), Application::processEvent(), and processEvent().
| #define GHOST_WINDOW_HDR_INFO_NONE |
Definition at line 872 of file GHOST_Types.h.
Referenced by GHOST_WindowWin32::updateHDRInfo().
| typedef struct GHOST_CursorGenerator GHOST_CursorGenerator |
Pass this as an argument to GHOST so each ghost back-end can generate cursors on demand.
| typedef struct GHOST_TabletData GHOST_TabletData |
| typedef void(* GHOST_TBacktraceFn) (void *file_handle) |
Definition at line 53 of file GHOST_Types.h.
Definition at line 685 of file GHOST_Types.h.
Definition at line 1023 of file GHOST_Types.h.
| typedef const void* GHOST_TEventDataPtr |
Definition at line 624 of file GHOST_Types.h.
Definition at line 1036 of file GHOST_Types.h.
| typedef void* GHOST_TUserDataPtr |
Definition at line 55 of file GHOST_Types.h.
| enum GHOST_DialogOptions |
| Enumerator | |
|---|---|
| GHOST_DialogWarning | |
| GHOST_DialogError | |
Definition at line 119 of file GHOST_Types.h.
| enum GHOST_GPUFlags |
| Enumerator | |
|---|---|
| GHOST_gpuStereoVisual | |
| GHOST_gpuDebugContext | |
| GHOST_gpuVSyncIsOverridden | |
Definition at line 112 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 1230 of file GHOST_Types.h.
| enum GHOST_TAxisFlag |
| Enumerator | |
|---|---|
| GHOST_kAxisNone | Axis that cursor grab will wrap. |
| GHOST_kAxisX | |
| GHOST_kAxisY | |
Definition at line 617 of file GHOST_Types.h.
| enum GHOST_TButton |
Definition at line 293 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_kCapabilityClipboardPrimary | 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_kCapabilityClipboardImage | 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. |
| GHOST_kCapabilityCursorRGBA | Support for creation of RGBA mouse cursors. This flag is likely to be temporary as our intention is to implement on all platforms. |
| GHOST_kCapabilityCursorGenerator | Setting cursors via #GHOST_SetCursorGenerator is supported. |
| GHOST_kCapabilityMultiMonitorPlacement | Support accurately placing windows on multiple monitors. |
Definition at line 131 of file GHOST_Types.h.
| Enumerator | |
|---|---|
| GHOST_kConsoleWindowStateHide | |
| GHOST_kConsoleWindowStateShow | |
| GHOST_kConsoleWindowStateToggle | |
| GHOST_kConsoleWindowStateHideForNonConsoleLaunch | |
Definition at line 268 of file GHOST_Types.h.
| enum GHOST_TDebugFlags |
| Enumerator | |
|---|---|
| GHOST_kDebugDefault | Axis that cursor grab will wrap. |
| GHOST_kDebugWintab | |
Definition at line 1006 of file GHOST_Types.h.
| Enumerator | |
|---|---|
| GHOST_kDragnDropTypeUnknown | |
| GHOST_kDragnDropTypeFilenames | |
| GHOST_kDragnDropTypeString | |
| GHOST_kDragnDropTypeBitmap | |
Definition at line 678 of file GHOST_Types.h.
| Enumerator | |
|---|---|
| GHOST_kDrawingContextTypeNone | |
Definition at line 277 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 307 of file GHOST_Types.h.
| Enumerator | |
|---|---|
| GHOST_kEventWheelAxisVertical | |
| GHOST_kEventWheelAxisHorizontal | |
Definition at line 642 of file GHOST_Types.h.
| Enumerator | |
|---|---|
| GHOST_kFireTimeNever | |
Definition at line 241 of file GHOST_Types.h.
Definition at line 601 of file GHOST_Types.h.
| enum GHOST_TKey |
Definition at line 442 of file GHOST_Types.h.
| enum GHOST_TModifierKey |
Definition at line 243 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 721 of file GHOST_Types.h.
Definition at line 385 of file GHOST_Types.h.
| enum GHOST_TSuccess |
| Enumerator | |
|---|---|
| GHOST_kFailure | |
| GHOST_kSuccess | |
Definition at line 57 of file GHOST_Types.h.
| enum GHOST_TTabletAPI |
| Enumerator | |
|---|---|
| GHOST_kTabletAutomatic | |
| GHOST_kTabletWinPointer | |
| GHOST_kTabletWintab | |
Definition at line 214 of file GHOST_Types.h.
| enum GHOST_TTabletMode |
| Enumerator | |
|---|---|
| GHOST_kTabletModeNone | |
| GHOST_kTabletModeStylus | |
| GHOST_kTabletModeEraser | |
Definition at line 208 of file GHOST_Types.h.
| Enumerator | |
|---|---|
| GHOST_kTrackpadEventUnknown | |
| GHOST_kTrackpadEventScroll | |
| GHOST_kTrackpadEventRotate | |
| GHOST_kTrackpadEventSwipe | |
| GHOST_kTrackpadEventMagnify | |
| GHOST_kTrackpadEventSmartMagnify | |
Definition at line 654 of file GHOST_Types.h.
Definition at line 772 of file GHOST_Types.h.
| enum GHOST_TVisibility |
| Enumerator | |
|---|---|
| GHOST_kNotVisible | |
| GHOST_kPartiallyVisible | |
| GHOST_kFullyVisible | |
Definition at line 235 of file GHOST_Types.h.
| enum GHOST_TVSyncModes |
Options for VSync.
Definition at line 803 of file GHOST_Types.h.
| Enumerator | |
|---|---|
| GHOST_kDecorationNone | |
| GHOST_kDecorationColoredTitleBar | |
Definition at line 783 of file GHOST_Types.h.
| enum GHOST_TWindowOrder |
| Enumerator | |
|---|---|
| GHOST_kWindowOrderTop | |
| GHOST_kWindowOrderBottom | |
Definition at line 275 of file GHOST_Types.h.
| enum GHOST_TWindowState |
| Enumerator | |
|---|---|
| GHOST_kWindowStateNormal | |
| GHOST_kWindowStateMaximized | |
| GHOST_kWindowStateMinimized | |
| GHOST_kWindowStateFullScreen | |
Definition at line 261 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 229 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(), touch_seat_handle_frame(), and GHOST_SystemWayland::window_cursor_grab_set().