Blender V5.3
GHOST_Types.hh File Reference
#include <cstdint>
#include <cstdio>
#include <string>
#include "MEM_guardedalloc.h"

Go to the source code of this file.

Classes

struct  GHOST_CursorBitmapRef
struct  GHOST_CursorGenerator
struct  GHOST_IconGenerator
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
struct  GHOST_CSD_Elem
struct  GHOST_CSD_Layout
struct  GHOST_CSD_Params

Macros

#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_kUserSpecialDirType_Num   (GHOST_kUserSpecialDirCaches + 1)
#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
#define GHOST_kCSDType_NUM   (int(GHOST_kCSDTypeTitlebar) + 1)
#define GHOST_CSD_DPI_FRACTIONAL_BASE   96

Typedefs

using GHOST_TBacktraceFn = void (*)(FILE *file_handle)
using GHOST_TUserDataPtr = void *
using GHOST_TEventDataPtr = const void *
using GHOST_TDragnDropDataPtr = void *
using GHOST_TEmbedderWindowID = int
using GHOST_TimerProcPtr = void (*)(GHOST_ITimerTask *task, uint64_t time)

Enumerations

enum  GHOST_TSuccess { GHOST_kFailure = 0 , GHOST_kSuccess }
enum  GHOST_GPUFlags { GHOST_gpuStereoVisual = (1 << 0) , GHOST_gpuDebugContext = (1 << 1) , GHOST_gpuVSyncIsOverridden = (1 << 2) , GHOST_gpuNoHWRaytracing = (1 << 3) }
enum  GHOST_DialogOptions { GHOST_DialogWarning = (1 << 0) , GHOST_DialogError = (1 << 1) }
enum  GHOST_TCapabilityFlag {
  GHOST_kCapabilityCursorWarp = (1 << 0) , GHOST_kCapabilityWindowPosition = (1 << 1) , GHOST_kCapabilityClipboardPrimary = (1 << 2) , GHOST_kCapabilityGPUReadFrontBuffer = (1 << 3) ,
  GHOST_kCapabilityClipboardImage = (1 << 4) , GHOST_kCapabilityDesktopSample = (1 << 5) , GHOST_kCapabilityInputIME = (1 << 6) , GHOST_kCapabilityTrackpadPhysicalDirection = (1 << 7) ,
  GHOST_kCapabilityWindowDecorationStyles = (1 << 8) , GHOST_kCapabilityKeyboardHyperKey = (1 << 9) , GHOST_kCapabilityCursorRGBA = (1 << 10) , GHOST_kCapabilityCursorGenerator = (1 << 11) ,
  GHOST_kCapabilityMultiMonitorPlacement = (1 << 12) , GHOST_kCapabilityWindowPath = (1 << 13) , GHOST_kCapabilityWindowDecorationServerSide = (1 << 14)
}
enum  GHOST_TTabletMode { GHOST_kTabletModeNone = 0 , GHOST_kTabletModeStylus , GHOST_kTabletModeEraser }
enum  GHOST_TTabletAPI { GHOST_kTabletAutomatic = 0 , GHOST_kTabletWinPointer , GHOST_kTabletWintab }
enum  GHOST_TVisibility { GHOST_kNotVisible = 0 , GHOST_kPartiallyVisible , GHOST_kFullyVisible }
enum  GHOST_TFireTimeConstant { GHOST_kFireTimeNever = 0xFFFFFFFF }
enum  GHOST_TModifierKey {
  GHOST_kModifierKeyLeftShift = 0 , GHOST_kModifierKeyRightShift , GHOST_kModifierKeyLeftAlt , GHOST_kModifierKeyRightAlt ,
  GHOST_kModifierKeyLeftControl , GHOST_kModifierKeyRightControl , GHOST_kModifierKeyLeftOS , GHOST_kModifierKeyRightOS ,
  GHOST_kModifierKeyLeftHyper , GHOST_kModifierKeyRightHyper , GHOST_kModifierKeyNum
}
enum  GHOST_TWindowTiledFlag {
  GHOST_kWindowTiledNone = 0 , GHOST_kWindowTiledLeft = (1 << 0) , GHOST_kWindowTiledRight = (1 << 1) , GHOST_kWindowTiledTop = (1 << 2) ,
  GHOST_kWindowTiledBottom = (1 << 3)
}
enum  GHOST_TWindowState { GHOST_kWindowStateNormal = 0 , GHOST_kWindowStateMaximized = 1 , GHOST_kWindowStateMinimized = 2 , GHOST_kWindowStateFullScreen = 3 }
enum  GHOST_TConsoleWindowState { GHOST_kConsoleWindowStateHide = 0 , GHOST_kConsoleWindowStateShow , GHOST_kConsoleWindowStateToggle , GHOST_kConsoleWindowStateHideForNonConsoleLaunch }
enum  GHOST_TWindowOrder { GHOST_kWindowOrderTop = 0 , GHOST_kWindowOrderBottom }
enum  GHOST_TDrawingContextType { GHOST_kDrawingContextTypeNone = 0 }
enum  GHOST_TButton {
  GHOST_kButtonMaskNone = -1 , GHOST_kButtonMaskLeft , GHOST_kButtonMaskMiddle , GHOST_kButtonMaskRight ,
  GHOST_kButtonMaskButton4 , GHOST_kButtonMaskButton5 , GHOST_kButtonMaskButton6 , GHOST_kButtonMaskButton7
}
enum  GHOST_TEventType {
  GHOST_kEventUnknown = 0 , GHOST_kEventCursorMove , GHOST_kEventButtonDown , GHOST_kEventButtonUp ,
  GHOST_kEventWheel , GHOST_kEventTrackpad , GHOST_kEventKeyDown , GHOST_kEventKeyUp ,
  GHOST_kEventQuitRequest , GHOST_kEventWindowClose , GHOST_kEventWindowActivate , GHOST_kEventWindowDeactivate ,
  GHOST_kEventWindowUpdate , GHOST_kEventWindowUpdateDecor , GHOST_kEventWindowSize , GHOST_kEventWindowMove ,
  GHOST_kEventWindowDPIHintChanged , GHOST_kEventDraggingEntered , GHOST_kEventDraggingUpdated , GHOST_kEventDraggingExited ,
  GHOST_kEventDraggingDropDone , GHOST_kEventOpenMainFile , GHOST_kEventNativeResolutionChange , GHOST_kEventImeCompositionStart ,
  GHOST_kEventImeComposition , GHOST_kEventImeCompositionEnd
}
enum  GHOST_TStandardCursor {
  GHOST_kStandardCursorDefault = 0 , GHOST_kStandardCursorRightArrow , GHOST_kStandardCursorLeftArrow , GHOST_kStandardCursorInfo ,
  GHOST_kStandardCursorDestroy , GHOST_kStandardCursorHelp , GHOST_kStandardCursorWait , GHOST_kStandardCursorText ,
  GHOST_kStandardCursorCrosshair , GHOST_kStandardCursorCrosshairA , GHOST_kStandardCursorCrosshairB , GHOST_kStandardCursorCrosshairC ,
  GHOST_kStandardCursorPencil , GHOST_kStandardCursorUpArrow , GHOST_kStandardCursorDownArrow , GHOST_kStandardCursorVerticalSplit ,
  GHOST_kStandardCursorHorizontalSplit , GHOST_kStandardCursorEraser , GHOST_kStandardCursorKnife , GHOST_kStandardCursorEyedropper ,
  GHOST_kStandardCursorZoomIn , GHOST_kStandardCursorZoomOut , GHOST_kStandardCursorMove , GHOST_kStandardCursorNSEWScroll ,
  GHOST_kStandardCursorNSScroll , GHOST_kStandardCursorEWScroll , GHOST_kStandardCursorStop , GHOST_kStandardCursorUpDown ,
  GHOST_kStandardCursorLeftRight , GHOST_kStandardCursorTopSide , GHOST_kStandardCursorBottomSide , GHOST_kStandardCursorLeftSide ,
  GHOST_kStandardCursorRightSide , GHOST_kStandardCursorTopLeftCorner , GHOST_kStandardCursorTopRightCorner , GHOST_kStandardCursorBottomRightCorner ,
  GHOST_kStandardCursorBottomLeftCorner , GHOST_kStandardCursorCopy , GHOST_kStandardCursorLeftHandle , GHOST_kStandardCursorRightHandle ,
  GHOST_kStandardCursorBothHandles , GHOST_kStandardCursorHandOpen , GHOST_kStandardCursorHandClosed , GHOST_kStandardCursorHandPoint ,
  GHOST_kStandardCursorBlade , GHOST_kStandardCursorSlip , GHOST_kStandardCursorCustom
}
enum  GHOST_TKey {
  GHOST_kKeyUnknown = -1 , GHOST_kKeyBackSpace , GHOST_kKeyTab , GHOST_kKeyLinefeed ,
  GHOST_kKeyClear , GHOST_kKeyEnter = 0x0D , GHOST_kKeyEsc = 0x1B , GHOST_kKeySpace = ' ' ,
  GHOST_kKeyQuote = 0x27 , GHOST_kKeyComma = ',' , GHOST_kKeyMinus = '-' , GHOST_kKeyPlus = '+' ,
  GHOST_kKeyPeriod = '.' , GHOST_kKeySlash = '/' , GHOST_kKey0 = '0' , GHOST_kKey1 ,
  GHOST_kKey2 , GHOST_kKey3 , GHOST_kKey4 , GHOST_kKey5 ,
  GHOST_kKey6 , GHOST_kKey7 , GHOST_kKey8 , GHOST_kKey9 ,
  GHOST_kKeySemicolon = ';' , GHOST_kKeyEqual = '=' , GHOST_kKeyA = 'A' , GHOST_kKeyB ,
  GHOST_kKeyC , GHOST_kKeyD , GHOST_kKeyE , GHOST_kKeyF ,
  GHOST_kKeyG , GHOST_kKeyH , GHOST_kKeyI , GHOST_kKeyJ ,
  GHOST_kKeyK , GHOST_kKeyL , GHOST_kKeyM , GHOST_kKeyN ,
  GHOST_kKeyO , GHOST_kKeyP , GHOST_kKeyQ , GHOST_kKeyR ,
  GHOST_kKeyS , GHOST_kKeyT , GHOST_kKeyU , GHOST_kKeyV ,
  GHOST_kKeyW , GHOST_kKeyX , GHOST_kKeyY , GHOST_kKeyZ ,
  GHOST_kKeyLeftBracket = '[' , GHOST_kKeyRightBracket = ']' , GHOST_kKeyBackslash = 0x5C , GHOST_kKeyAccentGrave = '`' ,
  GHOST_kKeyLeftShift = 0x100 , GHOST_kKeyRightShift , GHOST_kKeyLeftControl , GHOST_kKeyRightControl ,
  GHOST_kKeyLeftAlt , GHOST_kKeyRightAlt , GHOST_kKeyLeftOS , GHOST_kKeyRightOS ,
  GHOST_kKeyLeftHyper , GHOST_kKeyRightHyper , GHOST_kKeyGrLess , GHOST_kKeyApp ,
  GHOST_kKeyCapsLock , GHOST_kKeyNumLock , GHOST_kKeyScrollLock , GHOST_kKeyLeftArrow ,
  GHOST_kKeyRightArrow , GHOST_kKeyUpArrow , GHOST_kKeyDownArrow , GHOST_kKeyPrintScreen ,
  GHOST_kKeyPause , GHOST_kKeyInsert , GHOST_kKeyDelete , GHOST_kKeyHome ,
  GHOST_kKeyEnd , GHOST_kKeyUpPage , GHOST_kKeyDownPage , GHOST_kKeyNumpad0 ,
  GHOST_kKeyNumpad1 , GHOST_kKeyNumpad2 , GHOST_kKeyNumpad3 , GHOST_kKeyNumpad4 ,
  GHOST_kKeyNumpad5 , GHOST_kKeyNumpad6 , GHOST_kKeyNumpad7 , GHOST_kKeyNumpad8 ,
  GHOST_kKeyNumpad9 , GHOST_kKeyNumpadPeriod , GHOST_kKeyNumpadEnter , GHOST_kKeyNumpadPlus ,
  GHOST_kKeyNumpadMinus , GHOST_kKeyNumpadAsterisk , GHOST_kKeyNumpadSlash , GHOST_kKeyF1 ,
  GHOST_kKeyF2 , GHOST_kKeyF3 , GHOST_kKeyF4 , GHOST_kKeyF5 ,
  GHOST_kKeyF6 , GHOST_kKeyF7 , GHOST_kKeyF8 , GHOST_kKeyF9 ,
  GHOST_kKeyF10 , GHOST_kKeyF11 , GHOST_kKeyF12 , GHOST_kKeyF13 ,
  GHOST_kKeyF14 , GHOST_kKeyF15 , GHOST_kKeyF16 , GHOST_kKeyF17 ,
  GHOST_kKeyF18 , GHOST_kKeyF19 , GHOST_kKeyF20 , GHOST_kKeyF21 ,
  GHOST_kKeyF22 , GHOST_kKeyF23 , GHOST_kKeyF24 , GHOST_kKeyMediaPlay ,
  GHOST_kKeyMediaStop , GHOST_kKeyMediaFirst , GHOST_kKeyMediaLast
}
enum  GHOST_TGrabCursorMode { GHOST_kGrabDisable = 0 , GHOST_kGrabNormal , GHOST_kGrabWrap , GHOST_kGrabHide }
enum  GHOST_TAxisFlag { GHOST_kAxisNone = 0 , GHOST_kAxisX = (1 << 0) , GHOST_kAxisY = (1 << 1) }
enum  GHOST_TEventWheelAxis { GHOST_kEventWheelAxisVertical = 0 , GHOST_kEventWheelAxisHorizontal = 1 }
enum  GHOST_TTrackpadEventSubTypes {
  GHOST_kTrackpadEventUnknown = 0 , GHOST_kTrackpadEventScroll , GHOST_kTrackpadEventRotate , GHOST_kTrackpadEventSwipe ,
  GHOST_kTrackpadEventMagnify , GHOST_kTrackpadEventSmartMagnify
}
enum  GHOST_TDragnDropTypes { GHOST_kDragnDropTypeUnknown = 0 , GHOST_kDragnDropTypeFilenames , GHOST_kDragnDropTypeString , GHOST_kDragnDropTypeBitmap }
enum  GHOST_TProgress {
  GHOST_kNotStarted = 0 , GHOST_kStarting , GHOST_kInProgress , GHOST_kFinishing ,
  GHOST_kFinished
}
enum  GHOST_TUserSpecialDirTypes {
  GHOST_kUserSpecialDirDesktop = 0 , GHOST_kUserSpecialDirDocuments , GHOST_kUserSpecialDirDownloads , GHOST_kUserSpecialDirMusic ,
  GHOST_kUserSpecialDirPictures , GHOST_kUserSpecialDirVideos , GHOST_kUserSpecialDirCaches
}
enum  GHOST_TWindowDecorationStyleFlags { GHOST_kDecorationNone = 0 , GHOST_kDecorationColoredTitleBar = (1 << 0) }
enum  GHOST_TVSyncModes { GHOST_kVSyncModeUnset = -2 , GHOST_kVSyncModeAuto = -1 , GHOST_kVSyncModeOff = 0 , GHOST_kVSyncModeOn = 1 }
enum  GHOST_TDebugFlags { GHOST_kDebugDefault = (1 << 1) , GHOST_kDebugWintab = (1 << 2) }
enum  GHOST_TCSD_Type {
  GHOST_kCSDTypeBody = 0 , GHOST_kCSDTypeBorderTopLeft , GHOST_kCSDTypeBorderTopRight , GHOST_kCSDTypeBorderBottomLeft ,
  GHOST_kCSDTypeBorderBottomRight , GHOST_kCSDTypeBorderTop , GHOST_kCSDTypeBorderBottom , GHOST_kCSDTypeBorderLeft ,
  GHOST_kCSDTypeBorderRight , GHOST_kCSDTypeButtonClose , GHOST_kCSDTypeButtonMaximize , GHOST_kCSDTypeButtonMinimize ,
  GHOST_kCSDTypeButtonMenu , GHOST_kCSDTypeTitlebar
}
enum  GHOST_NDOF_ButtonT {
  GHOST_NDOF_BUTTON_NONE = -1 , GHOST_NDOF_BUTTON_INVALID = 0 , GHOST_NDOF_BUTTON_MENU = 1 , GHOST_NDOF_BUTTON_FIT = 2 ,
  GHOST_NDOF_BUTTON_TOP = 3 , GHOST_NDOF_BUTTON_LEFT = 4 , GHOST_NDOF_BUTTON_RIGHT = 5 , GHOST_NDOF_BUTTON_FRONT = 6 ,
  GHOST_NDOF_BUTTON_BOTTOM = 7 , GHOST_NDOF_BUTTON_BACK = 8 , GHOST_NDOF_BUTTON_ROLL_CW = 9 , GHOST_NDOF_BUTTON_ROLL_CCW = 10 ,
  GHOST_NDOF_BUTTON_ISO1 = 11 , GHOST_NDOF_BUTTON_ISO2 = 12 , GHOST_NDOF_BUTTON_1 = 13 , GHOST_NDOF_BUTTON_2 = 14 ,
  GHOST_NDOF_BUTTON_3 = 15 , GHOST_NDOF_BUTTON_4 = 16 , GHOST_NDOF_BUTTON_5 = 17 , GHOST_NDOF_BUTTON_6 = 18 ,
  GHOST_NDOF_BUTTON_7 = 19 , GHOST_NDOF_BUTTON_8 = 20 , GHOST_NDOF_BUTTON_9 = 21 , GHOST_NDOF_BUTTON_10 = 22 ,
  GHOST_NDOF_BUTTON_ESC = 23 , GHOST_NDOF_BUTTON_ALT = 24 , GHOST_NDOF_BUTTON_SHIFT = 25 , GHOST_NDOF_BUTTON_CTRL = 26 ,
  GHOST_NDOF_BUTTON_ROTATE = 27 , GHOST_NDOF_BUTTON_PANZOOM = 28 , GHOST_NDOF_BUTTON_DOMINANT = 29 , GHOST_NDOF_BUTTON_PLUS = 30 ,
  GHOST_NDOF_BUTTON_MINUS = 31 , GHOST_NDOF_BUTTON_SPIN_CW = 32 , GHOST_NDOF_BUTTON_SPIN_CCW = 33 , GHOST_NDOF_BUTTON_TILT_CW = 34 ,
  GHOST_NDOF_BUTTON_TILT_CCW = 35 , GHOST_NDOF_BUTTON_ENTER = 36 , GHOST_NDOF_BUTTON_DELETE = 37 , GHOST_NDOF_BUTTON_KBP_F1 = 41 ,
  GHOST_NDOF_BUTTON_KBP_F2 = 42 , GHOST_NDOF_BUTTON_KBP_F3 = 43 , GHOST_NDOF_BUTTON_KBP_F4 = 44 , GHOST_NDOF_BUTTON_KBP_F5 = 45 ,
  GHOST_NDOF_BUTTON_KBP_F6 = 46 , GHOST_NDOF_BUTTON_KBP_F7 = 47 , GHOST_NDOF_BUTTON_KBP_F8 = 48 , GHOST_NDOF_BUTTON_KBP_F9 = 49 ,
  GHOST_NDOF_BUTTON_KBP_F10 = 50 , GHOST_NDOF_BUTTON_KBP_F11 = 51 , GHOST_NDOF_BUTTON_KBP_F12 = 52 , GHOST_NDOF_BUTTON_11 = 77 ,
  GHOST_NDOF_BUTTON_12 = 78 , GHOST_NDOF_BUTTON_V1 = 103 , GHOST_NDOF_BUTTON_V2 = 104 , GHOST_NDOF_BUTTON_V3 = 105 ,
  GHOST_NDOF_BUTTON_SAVE_V1 = 139 , GHOST_NDOF_BUTTON_SAVE_V2 = 140 , GHOST_NDOF_BUTTON_SAVE_V3 = 141 , GHOST_NDOF_BUTTON_TAB = 175 ,
  GHOST_NDOF_BUTTON_SPACE = 176 , GHOST_NDOF_BUTTON_NP_F1 = 229 , GHOST_NDOF_BUTTON_NP_F2 = 230 , GHOST_NDOF_BUTTON_NP_F3 = 231 ,
  GHOST_NDOF_BUTTON_NP_F4 = 232 , GHOST_NDOF_BUTTON_USER = 0x10000
}

Variables

static const GHOST_TabletData GHOST_TABLET_DATA_NONE

Macro Definition Documentation

◆ _GHOST_KEY_MODIFIER_MAX

#define _GHOST_KEY_MODIFIER_MAX   GHOST_kKeyRightHyper

Definition at line 533 of file GHOST_Types.hh.

◆ _GHOST_KEY_MODIFIER_MIN

#define _GHOST_KEY_MODIFIER_MIN   GHOST_kKeyLeftShift

Definition at line 520 of file GHOST_Types.hh.

◆ GHOST_CAPABILITY_FLAG_ALL

#define GHOST_CAPABILITY_FLAG_ALL
Value:
@ GHOST_kCapabilityWindowDecorationServerSide
@ GHOST_kCapabilityWindowPosition
@ GHOST_kCapabilityClipboardPrimary
@ GHOST_kCapabilityKeyboardHyperKey
@ GHOST_kCapabilityCursorRGBA
@ GHOST_kCapabilityGPUReadFrontBuffer
@ GHOST_kCapabilityCursorWarp
@ GHOST_kCapabilityInputIME
@ GHOST_kCapabilityCursorGenerator
@ GHOST_kCapabilityWindowPath
@ GHOST_kCapabilityTrackpadPhysicalDirection
@ GHOST_kCapabilityMultiMonitorPlacement
@ GHOST_kCapabilityClipboardImage
@ GHOST_kCapabilityWindowDecorationStyles
@ GHOST_kCapabilityDesktopSample

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 195 of file GHOST_Types.hh.

Referenced by GHOST_SystemCocoa::getCapabilities(), GHOST_SystemHeadless::getCapabilities(), GHOST_SystemSDL::getCapabilities(), GHOST_SystemWayland::getCapabilities(), GHOST_SystemWin32::getCapabilities(), and GHOST_SystemX11::getCapabilities().

◆ GHOST_CONTEXT_PARAMS_FROM_GPU_SETTINGS

#define GHOST_CONTEXT_PARAMS_FROM_GPU_SETTINGS ( gpu_settings)
Value:
{ \
(((gpu_settings).flags & GHOST_gpuStereoVisual) != 0), \
(((gpu_settings).flags & GHOST_gpuDebugContext) != 0), \
(((gpu_settings).flags & GHOST_gpuNoHWRaytracing) != 0), \
false, \
(((gpu_settings).flags & GHOST_gpuVSyncIsOverridden) ? (gpu_settings).vsync : \
}
@ GHOST_gpuVSyncIsOverridden
@ GHOST_gpuNoHWRaytracing
@ GHOST_gpuStereoVisual
@ GHOST_gpuDebugContext
@ GHOST_kVSyncModeUnset

Definition at line 883 of file GHOST_Types.hh.

Referenced by GHOST_SystemCocoa::createWindow(), GHOST_SystemHeadless::createWindow(), GHOST_SystemWayland::createWindow(), GHOST_SystemWin32::createWindow(), and GHOST_SystemX11::createWindow().

◆ GHOST_CONTEXT_PARAMS_FROM_GPU_SETTINGS_OFFSCREEN

#define GHOST_CONTEXT_PARAMS_FROM_GPU_SETTINGS_OFFSCREEN ( gpu_settings)

◆ GHOST_CONTEXT_PARAMS_NONE

#define GHOST_CONTEXT_PARAMS_NONE
Value:
{ \
false, \
false, \
false, \
false, \
}

Definition at line 865 of file GHOST_Types.hh.

Referenced by GHOST_SystemWin32::createOffscreenContextD3D(), and GHOST_Window::GHOST_Window().

◆ GHOST_CSD_DPI_FRACTIONAL_BASE

◆ GHOST_GRAB_NEEDS_SOFTWARE_CURSOR_FOR_WARP

#define GHOST_GRAB_NEEDS_SOFTWARE_CURSOR_FOR_WARP ( grab)
Value:
((grab) == GHOST_kGrabWrap)
@ GHOST_kGrabWrap

Definition at line 628 of file GHOST_Types.hh.

◆ GHOST_kButtonNum

#define GHOST_kButtonNum   (int(GHOST_kButtonMaskButton7) + 1)

Definition at line 317 of file GHOST_Types.hh.

◆ GHOST_kCSDType_NUM

◆ GHOST_KEY_MODIFIER_CHECK

#define GHOST_KEY_MODIFIER_CHECK ( key)
Value:
#define GHOST_KEY_MODIFIER_TO_INDEX(key)
#define GHOST_KEY_MODIFIER_NUM

Definition at line 612 of file GHOST_Types.hh.

Referenced by keyboard_depressed_state_key_event(), and GHOST_SystemWin32::processKeyEvent().

◆ GHOST_KEY_MODIFIER_FROM_INDEX

#define GHOST_KEY_MODIFIER_FROM_INDEX ( key)
Value:
(GHOST_TKey)(((unsigned int)(key) + _GHOST_KEY_MODIFIER_MIN))
#define _GHOST_KEY_MODIFIER_MIN
GHOST_TKey

Definition at line 610 of file GHOST_Types.hh.

Referenced by keyboard_depressed_state_push_events_from_change().

◆ GHOST_KEY_MODIFIER_NUM

#define GHOST_KEY_MODIFIER_NUM   ((_GHOST_KEY_MODIFIER_MAX - _GHOST_KEY_MODIFIER_MIN) + 1)

◆ GHOST_KEY_MODIFIER_TO_INDEX

#define GHOST_KEY_MODIFIER_TO_INDEX ( key)
Value:
((unsigned int)(key) - _GHOST_KEY_MODIFIER_MIN)

Definition at line 609 of file GHOST_Types.hh.

Referenced by GHOST_SystemWayland::getModifierKeys(), and keyboard_depressed_state_key_event().

◆ GHOST_kNumEventTypes

#define GHOST_kNumEventTypes   (GHOST_kEventImeCompositionEnd + 1)

Definition at line 395 of file GHOST_Types.hh.

Referenced by blender::wm_event_add_ghostevent().

◆ GHOST_kStandardCursorFirstCursor

#define GHOST_kStandardCursorFirstCursor   int(GHOST_kStandardCursorDefault)

Definition at line 399 of file GHOST_Types.hh.

◆ GHOST_kStandardCursorNumCursors

#define GHOST_kStandardCursorNumCursors   (int(GHOST_kStandardCursorCustom) + 1)

Definition at line 452 of file GHOST_Types.hh.

◆ GHOST_kUserSpecialDirType_Num

#define GHOST_kUserSpecialDirType_Num   (GHOST_kUserSpecialDirCaches + 1)

Definition at line 795 of file GHOST_Types.hh.

Referenced by GHOST_SystemPathsUnix::getUserSpecialDir().

◆ GHOST_WINDOW_HDR_INFO_NONE

#define GHOST_WINDOW_HDR_INFO_NONE
Value:
{ \
false, \
false, \
1.0f, \
}

Definition at line 917 of file GHOST_Types.hh.

Referenced by GHOST_WindowWin32::updateHDRInfo().

Typedef Documentation

◆ GHOST_TBacktraceFn

using GHOST_TBacktraceFn = void (*)(FILE *file_handle)

Definition at line 23 of file GHOST_Types.hh.

◆ GHOST_TDragnDropDataPtr

using GHOST_TDragnDropDataPtr = void *

Definition at line 698 of file GHOST_Types.hh.

◆ GHOST_TEmbedderWindowID

Definition at line 1073 of file GHOST_Types.hh.

◆ GHOST_TEventDataPtr

using GHOST_TEventDataPtr = const void *

Definition at line 637 of file GHOST_Types.hh.

◆ GHOST_TimerProcPtr

using GHOST_TimerProcPtr = void (*)(GHOST_ITimerTask *task, uint64_t time)

Definition at line 1082 of file GHOST_Types.hh.

◆ GHOST_TUserDataPtr

using GHOST_TUserDataPtr = void *

Definition at line 25 of file GHOST_Types.hh.

Enumeration Type Documentation

◆ GHOST_DialogOptions

Enumerator
GHOST_DialogWarning 
GHOST_DialogError 

Definition at line 110 of file GHOST_Types.hh.

◆ GHOST_GPUFlags

Enumerator
GHOST_gpuStereoVisual 
GHOST_gpuDebugContext 
GHOST_gpuVSyncIsOverridden 
GHOST_gpuNoHWRaytracing 

Definition at line 103 of file GHOST_Types.hh.

◆ 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.

Enumerator
GHOST_NDOF_BUTTON_NONE 
GHOST_NDOF_BUTTON_INVALID 
GHOST_NDOF_BUTTON_MENU 
GHOST_NDOF_BUTTON_FIT 
GHOST_NDOF_BUTTON_TOP 
GHOST_NDOF_BUTTON_LEFT 
GHOST_NDOF_BUTTON_RIGHT 
GHOST_NDOF_BUTTON_FRONT 
GHOST_NDOF_BUTTON_BOTTOM 
GHOST_NDOF_BUTTON_BACK 
GHOST_NDOF_BUTTON_ROLL_CW 
GHOST_NDOF_BUTTON_ROLL_CCW 
GHOST_NDOF_BUTTON_ISO1 
GHOST_NDOF_BUTTON_ISO2 
GHOST_NDOF_BUTTON_1 
GHOST_NDOF_BUTTON_2 
GHOST_NDOF_BUTTON_3 
GHOST_NDOF_BUTTON_4 
GHOST_NDOF_BUTTON_5 
GHOST_NDOF_BUTTON_6 
GHOST_NDOF_BUTTON_7 
GHOST_NDOF_BUTTON_8 
GHOST_NDOF_BUTTON_9 
GHOST_NDOF_BUTTON_10 
GHOST_NDOF_BUTTON_ESC 
GHOST_NDOF_BUTTON_ALT 
GHOST_NDOF_BUTTON_SHIFT 
GHOST_NDOF_BUTTON_CTRL 
GHOST_NDOF_BUTTON_ROTATE 
GHOST_NDOF_BUTTON_PANZOOM 
GHOST_NDOF_BUTTON_DOMINANT 
GHOST_NDOF_BUTTON_PLUS 
GHOST_NDOF_BUTTON_MINUS 
GHOST_NDOF_BUTTON_SPIN_CW 
GHOST_NDOF_BUTTON_SPIN_CCW 
GHOST_NDOF_BUTTON_TILT_CW 
GHOST_NDOF_BUTTON_TILT_CCW 
GHOST_NDOF_BUTTON_ENTER 
GHOST_NDOF_BUTTON_DELETE 
GHOST_NDOF_BUTTON_KBP_F1 
GHOST_NDOF_BUTTON_KBP_F2 
GHOST_NDOF_BUTTON_KBP_F3 
GHOST_NDOF_BUTTON_KBP_F4 
GHOST_NDOF_BUTTON_KBP_F5 
GHOST_NDOF_BUTTON_KBP_F6 
GHOST_NDOF_BUTTON_KBP_F7 
GHOST_NDOF_BUTTON_KBP_F8 
GHOST_NDOF_BUTTON_KBP_F9 
GHOST_NDOF_BUTTON_KBP_F10 
GHOST_NDOF_BUTTON_KBP_F11 
GHOST_NDOF_BUTTON_KBP_F12 
GHOST_NDOF_BUTTON_11 
GHOST_NDOF_BUTTON_12 
GHOST_NDOF_BUTTON_V1 
GHOST_NDOF_BUTTON_V2 
GHOST_NDOF_BUTTON_V3 
GHOST_NDOF_BUTTON_SAVE_V1 
GHOST_NDOF_BUTTON_SAVE_V2 
GHOST_NDOF_BUTTON_SAVE_V3 
GHOST_NDOF_BUTTON_TAB 
GHOST_NDOF_BUTTON_SPACE 
GHOST_NDOF_BUTTON_NP_F1 
GHOST_NDOF_BUTTON_NP_F2 
GHOST_NDOF_BUTTON_NP_F3 
GHOST_NDOF_BUTTON_NP_F4 
GHOST_NDOF_BUTTON_USER 

Definition at line 1350 of file GHOST_Types.hh.

◆ GHOST_TAxisFlag

Enumerator
GHOST_kAxisNone 

Axis that cursor grab will wrap.

GHOST_kAxisX 
GHOST_kAxisY 

Definition at line 630 of file GHOST_Types.hh.

◆ GHOST_TButton

Set "None" as -1 so this can be used as an index.

Enumerator
GHOST_kButtonMaskNone 
GHOST_kButtonMaskLeft 
GHOST_kButtonMaskMiddle 
GHOST_kButtonMaskRight 
GHOST_kButtonMaskButton4 
GHOST_kButtonMaskButton5 
GHOST_kButtonMaskButton6 
GHOST_kButtonMaskButton7 

Definition at line 306 of file GHOST_Types.hh.

◆ GHOST_TCapabilityFlag

Static flag (relating to the back-ends support for features).

Note
When adding new capabilities, add to GHOST_CAPABILITY_FLAG_ALL, then mask out of from the getCapabilities(..) callback with an explanation for why the feature is not supported.
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_IWindow::setCursorShape is supported.

GHOST_kCapabilityMultiMonitorPlacement 

Support accurately placing windows on multiple monitors.

GHOST_kCapabilityWindowPath 

A "path" for a window is supported. This indicates that GHOST_IWindow::setPath can be used without the need to include the windows file-path in its title.

GHOST_kCapabilityWindowDecorationServerSide 

Support for window decoration styles on the "server". In other words the windowing system is capable of showing window decorations. Otherwise client-side-decorations should be used, see: WITH_GHOST_CSD.

Definition at line 122 of file GHOST_Types.hh.

◆ GHOST_TConsoleWindowState

Enumerator
GHOST_kConsoleWindowStateHide 
GHOST_kConsoleWindowStateShow 
GHOST_kConsoleWindowStateToggle 
GHOST_kConsoleWindowStateHideForNonConsoleLaunch 

Definition at line 280 of file GHOST_Types.hh.

◆ GHOST_TCSD_Type

Enumerator
GHOST_kCSDTypeBody 

Use for window contents. This must be ordered before other items so the contents its prioritized.

GHOST_kCSDTypeBorderTopLeft 
GHOST_kCSDTypeBorderTopRight 
GHOST_kCSDTypeBorderBottomLeft 
GHOST_kCSDTypeBorderBottomRight 
GHOST_kCSDTypeBorderTop 
GHOST_kCSDTypeBorderBottom 
GHOST_kCSDTypeBorderLeft 
GHOST_kCSDTypeBorderRight 
GHOST_kCSDTypeButtonClose 
GHOST_kCSDTypeButtonMaximize 
GHOST_kCSDTypeButtonMinimize 
GHOST_kCSDTypeButtonMenu 
GHOST_kCSDTypeTitlebar 

Definition at line 1085 of file GHOST_Types.hh.

◆ GHOST_TDebugFlags

Enumerator
GHOST_kDebugDefault 

Axis that cursor grab will wrap.

GHOST_kDebugWintab 

Definition at line 1056 of file GHOST_Types.hh.

◆ GHOST_TDragnDropTypes

Enumerator
GHOST_kDragnDropTypeUnknown 
GHOST_kDragnDropTypeFilenames 
GHOST_kDragnDropTypeString 
GHOST_kDragnDropTypeBitmap 

Definition at line 691 of file GHOST_Types.hh.

◆ GHOST_TDrawingContextType

Enumerator
GHOST_kDrawingContextTypeNone 

Definition at line 289 of file GHOST_Types.hh.

◆ GHOST_TEventType

Enumerator
GHOST_kEventUnknown 
GHOST_kEventCursorMove 

Mouse move event.

Note
#GHOST_GetEventData returns GHOST_TEventCursorData.
GHOST_kEventButtonDown 

Mouse button down event.

GHOST_kEventButtonUp 

Mouse button up event.

GHOST_kEventWheel 

Vertical/Horizontal mouse wheel event.

Note
#GHOST_GetEventData returns GHOST_TEventWheelData.
GHOST_kEventTrackpad 

Trackpad event.

Note
#GHOST_GetEventData returns GHOST_TEventTrackpadData.
GHOST_kEventKeyDown 

Keyboard up/down events.

Includes repeat events, check GHOST_TEventKeyData::is_repeat if detecting repeat events is needed.

Note
#GHOST_GetEventData returns GHOST_TEventKeyData.
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 320 of file GHOST_Types.hh.

◆ GHOST_TEventWheelAxis

Enumerator
GHOST_kEventWheelAxisVertical 
GHOST_kEventWheelAxisHorizontal 

Definition at line 655 of file GHOST_Types.hh.

◆ GHOST_TFireTimeConstant

Enumerator
GHOST_kFireTimeNever 

Definition at line 240 of file GHOST_Types.hh.

◆ GHOST_TGrabCursorMode

Enumerator
GHOST_kGrabDisable 

Grab not set.

GHOST_kGrabNormal 

No cursor adjustments.

GHOST_kGrabWrap 

Wrap the mouse location to prevent limiting screen bounds.

GHOST_kGrabHide 

Hide the mouse while grabbing and restore the original location on release (used for number buttons and some other draggable UI elements).

Definition at line 614 of file GHOST_Types.hh.

◆ GHOST_TKey

enum GHOST_TKey
Enumerator
GHOST_kKeyUnknown 
GHOST_kKeyBackSpace 
GHOST_kKeyTab 
GHOST_kKeyLinefeed 
GHOST_kKeyClear 
GHOST_kKeyEnter 
GHOST_kKeyEsc 
GHOST_kKeySpace 
GHOST_kKeyQuote 
GHOST_kKeyComma 
GHOST_kKeyMinus 
GHOST_kKeyPlus 
GHOST_kKeyPeriod 
GHOST_kKeySlash 
GHOST_kKey0 
GHOST_kKey1 
GHOST_kKey2 
GHOST_kKey3 
GHOST_kKey4 
GHOST_kKey5 
GHOST_kKey6 
GHOST_kKey7 
GHOST_kKey8 
GHOST_kKey9 
GHOST_kKeySemicolon 
GHOST_kKeyEqual 
GHOST_kKeyA 
GHOST_kKeyB 
GHOST_kKeyC 
GHOST_kKeyD 
GHOST_kKeyE 
GHOST_kKeyF 
GHOST_kKeyG 
GHOST_kKeyH 
GHOST_kKeyI 
GHOST_kKeyJ 
GHOST_kKeyK 
GHOST_kKeyL 
GHOST_kKeyM 
GHOST_kKeyN 
GHOST_kKeyO 
GHOST_kKeyP 
GHOST_kKeyQ 
GHOST_kKeyR 
GHOST_kKeyS 
GHOST_kKeyT 
GHOST_kKeyU 
GHOST_kKeyV 
GHOST_kKeyW 
GHOST_kKeyX 
GHOST_kKeyY 
GHOST_kKeyZ 
GHOST_kKeyLeftBracket 
GHOST_kKeyRightBracket 
GHOST_kKeyBackslash 
GHOST_kKeyAccentGrave 
GHOST_kKeyLeftShift 
GHOST_kKeyRightShift 
GHOST_kKeyLeftControl 
GHOST_kKeyRightControl 
GHOST_kKeyLeftAlt 
GHOST_kKeyRightAlt 
GHOST_kKeyLeftOS 
GHOST_kKeyRightOS 
GHOST_kKeyLeftHyper 
GHOST_kKeyRightHyper 
GHOST_kKeyGrLess 
GHOST_kKeyApp 
GHOST_kKeyCapsLock 
GHOST_kKeyNumLock 
GHOST_kKeyScrollLock 
GHOST_kKeyLeftArrow 
GHOST_kKeyRightArrow 
GHOST_kKeyUpArrow 
GHOST_kKeyDownArrow 
GHOST_kKeyPrintScreen 
GHOST_kKeyPause 
GHOST_kKeyInsert 
GHOST_kKeyDelete 
GHOST_kKeyHome 
GHOST_kKeyEnd 
GHOST_kKeyUpPage 
GHOST_kKeyDownPage 
GHOST_kKeyNumpad0 
GHOST_kKeyNumpad1 
GHOST_kKeyNumpad2 
GHOST_kKeyNumpad3 
GHOST_kKeyNumpad4 
GHOST_kKeyNumpad5 
GHOST_kKeyNumpad6 
GHOST_kKeyNumpad7 
GHOST_kKeyNumpad8 
GHOST_kKeyNumpad9 
GHOST_kKeyNumpadPeriod 
GHOST_kKeyNumpadEnter 
GHOST_kKeyNumpadPlus 
GHOST_kKeyNumpadMinus 
GHOST_kKeyNumpadAsterisk 
GHOST_kKeyNumpadSlash 
GHOST_kKeyF1 
GHOST_kKeyF2 
GHOST_kKeyF3 
GHOST_kKeyF4 
GHOST_kKeyF5 
GHOST_kKeyF6 
GHOST_kKeyF7 
GHOST_kKeyF8 
GHOST_kKeyF9 
GHOST_kKeyF10 
GHOST_kKeyF11 
GHOST_kKeyF12 
GHOST_kKeyF13 
GHOST_kKeyF14 
GHOST_kKeyF15 
GHOST_kKeyF16 
GHOST_kKeyF17 
GHOST_kKeyF18 
GHOST_kKeyF19 
GHOST_kKeyF20 
GHOST_kKeyF21 
GHOST_kKeyF22 
GHOST_kKeyF23 
GHOST_kKeyF24 
GHOST_kKeyMediaPlay 
GHOST_kKeyMediaStop 
GHOST_kKeyMediaFirst 
GHOST_kKeyMediaLast 

Definition at line 455 of file GHOST_Types.hh.

◆ GHOST_TModifierKey

Enumerator
GHOST_kModifierKeyLeftShift 
GHOST_kModifierKeyRightShift 
GHOST_kModifierKeyLeftAlt 
GHOST_kModifierKeyRightAlt 
GHOST_kModifierKeyLeftControl 
GHOST_kModifierKeyRightControl 
GHOST_kModifierKeyLeftOS 
GHOST_kModifierKeyRightOS 
GHOST_kModifierKeyLeftHyper 
GHOST_kModifierKeyRightHyper 
GHOST_kModifierKeyNum 

Definition at line 242 of file GHOST_Types.hh.

◆ GHOST_TProgress

Keep in sync with #wmProgress.

Enumerator
GHOST_kNotStarted 
GHOST_kStarting 
GHOST_kInProgress 
GHOST_kFinishing 
GHOST_kFinished 

Definition at line 734 of file GHOST_Types.hh.

◆ GHOST_TStandardCursor

Enumerator
GHOST_kStandardCursorDefault 
GHOST_kStandardCursorRightArrow 
GHOST_kStandardCursorLeftArrow 
GHOST_kStandardCursorInfo 
GHOST_kStandardCursorDestroy 
GHOST_kStandardCursorHelp 
GHOST_kStandardCursorWait 
GHOST_kStandardCursorText 
GHOST_kStandardCursorCrosshair 

Crosshair: default.

GHOST_kStandardCursorCrosshairA 

Crosshair: with outline.

GHOST_kStandardCursorCrosshairB 

Crosshair: a single "dot" (not really a crosshair).

GHOST_kStandardCursorCrosshairC 

Crosshair: stippled/half-tone black/white.

GHOST_kStandardCursorPencil 
GHOST_kStandardCursorUpArrow 
GHOST_kStandardCursorDownArrow 
GHOST_kStandardCursorVerticalSplit 
GHOST_kStandardCursorHorizontalSplit 
GHOST_kStandardCursorEraser 
GHOST_kStandardCursorKnife 
GHOST_kStandardCursorEyedropper 
GHOST_kStandardCursorZoomIn 
GHOST_kStandardCursorZoomOut 
GHOST_kStandardCursorMove 
GHOST_kStandardCursorNSEWScroll 
GHOST_kStandardCursorNSScroll 
GHOST_kStandardCursorEWScroll 
GHOST_kStandardCursorStop 
GHOST_kStandardCursorUpDown 
GHOST_kStandardCursorLeftRight 
GHOST_kStandardCursorTopSide 
GHOST_kStandardCursorBottomSide 
GHOST_kStandardCursorLeftSide 
GHOST_kStandardCursorRightSide 
GHOST_kStandardCursorTopLeftCorner 
GHOST_kStandardCursorTopRightCorner 
GHOST_kStandardCursorBottomRightCorner 
GHOST_kStandardCursorBottomLeftCorner 
GHOST_kStandardCursorCopy 
GHOST_kStandardCursorLeftHandle 
GHOST_kStandardCursorRightHandle 
GHOST_kStandardCursorBothHandles 
GHOST_kStandardCursorHandOpen 
GHOST_kStandardCursorHandClosed 
GHOST_kStandardCursorHandPoint 
GHOST_kStandardCursorBlade 
GHOST_kStandardCursorSlip 
GHOST_kStandardCursorCustom 

Definition at line 398 of file GHOST_Types.hh.

◆ GHOST_TSuccess

Enumerator
GHOST_kFailure 
GHOST_kSuccess 

Definition at line 27 of file GHOST_Types.hh.

◆ GHOST_TTabletAPI

Enumerator
GHOST_kTabletAutomatic 
GHOST_kTabletWinPointer 
GHOST_kTabletWintab 

Definition at line 217 of file GHOST_Types.hh.

◆ GHOST_TTabletMode

Enumerator
GHOST_kTabletModeNone 
GHOST_kTabletModeStylus 
GHOST_kTabletModeEraser 

Definition at line 211 of file GHOST_Types.hh.

◆ GHOST_TTrackpadEventSubTypes

Enumerator
GHOST_kTrackpadEventUnknown 
GHOST_kTrackpadEventScroll 
GHOST_kTrackpadEventRotate 
GHOST_kTrackpadEventSwipe 
GHOST_kTrackpadEventMagnify 
GHOST_kTrackpadEventSmartMagnify 

Definition at line 667 of file GHOST_Types.hh.

◆ GHOST_TUserSpecialDirTypes

Enumerator
GHOST_kUserSpecialDirDesktop 
GHOST_kUserSpecialDirDocuments 
GHOST_kUserSpecialDirDownloads 
GHOST_kUserSpecialDirMusic 
GHOST_kUserSpecialDirPictures 
GHOST_kUserSpecialDirVideos 
GHOST_kUserSpecialDirCaches 

Definition at line 785 of file GHOST_Types.hh.

◆ GHOST_TVisibility

Enumerator
GHOST_kNotVisible 
GHOST_kPartiallyVisible 
GHOST_kFullyVisible 

Definition at line 238 of file GHOST_Types.hh.

◆ GHOST_TVSyncModes

Options for VSync.

Note
with the exception of GHOST_kVSyncModeUnset, these map to the OpenGL "swap interval" argument.
Enumerator
GHOST_kVSyncModeUnset 

Up to the GPU driver to choose.

GHOST_kVSyncModeAuto 

Adaptive sync (OpenGL only).

GHOST_kVSyncModeOff 

Disable, useful for unclasped redraws for testing performance.

GHOST_kVSyncModeOn 

Force enable.

Definition at line 832 of file GHOST_Types.hh.

◆ GHOST_TWindowDecorationStyleFlags

Enumerator
GHOST_kDecorationNone 
GHOST_kDecorationColoredTitleBar 

Definition at line 797 of file GHOST_Types.hh.

◆ GHOST_TWindowOrder

Enumerator
GHOST_kWindowOrderTop 
GHOST_kWindowOrderBottom 

Definition at line 287 of file GHOST_Types.hh.

◆ GHOST_TWindowState

Note
these values are stored in #wmWindow::windowstate, don't change, only add new values.
Enumerator
GHOST_kWindowStateNormal 
GHOST_kWindowStateMaximized 
GHOST_kWindowStateMinimized 
GHOST_kWindowStateFullScreen 

Definition at line 273 of file GHOST_Types.hh.

◆ GHOST_TWindowTiledFlag

Window edges the compositor has tiled against something else (a screen edge or another window). Decorations are expected to square off against a tiled edge. See GHOST_IWindow::getTiledEdges.

Enumerator
GHOST_kWindowTiledNone 
GHOST_kWindowTiledLeft 
GHOST_kWindowTiledRight 
GHOST_kWindowTiledTop 
GHOST_kWindowTiledBottom 

Definition at line 261 of file GHOST_Types.hh.

Variable Documentation

◆ GHOST_TABLET_DATA_NONE

const GHOST_TabletData GHOST_TABLET_DATA_NONE
static
Initial value:
= {
1.0f,
0.0f,
0.0f}
@ GHOST_kTabletModeNone

Definition at line 232 of file GHOST_Types.hh.

Referenced by pointer_handle_enter(), pointer_handle_frame(), relative_pointer_handle_relative_motion_impl(), and touch_seat_handle_frame().