20#define WIN32_LEAN_AND_MEAN
30class GHOST_EventWindow;
116 const bool exclusive =
false,
117 const bool is_dialog =
false,
227 void putClipboard(
const char *buffer,
bool selection)
const;
261 const char *help_label,
262 const char *continue_label,
361 UINT type,
GHOST_WindowWin32 *window, WPARAM wParam, LPARAM lParam,
bool &eventhandled);
430#ifdef WITH_INPUT_NDOF
438 bool processNDOF(RAWINPUT
const &raw);
459 static LRESULT WINAPI
s_wndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
495 for (
m_hasAltGr =
false, i = 32; i < 256; ++i) {
500 if (s != -1 && (s & 0x600) == 0x600) {
GHOST_TConsoleWindowState
GHOST_TSuccess setCursorPosition(int32_t x, int32_t y)
uint64_t getMilliSeconds() const
void getMainDisplayDimensions(uint32_t &width, uint32_t &height) const
GHOST_TKey hardKey(RAWINPUT const &raw, bool *r_key_down)
uint * getClipboardImage(int *r_width, int *r_height) const
void setTabletAPI(GHOST_TTabletAPI api) override
static void processWheelEvent(GHOST_WindowWin32 *window, WPARAM wParam, LPARAM lParam)
static GHOST_EventButton * processButtonEvent(GHOST_TEventType type, GHOST_WindowWin32 *window, GHOST_TButton mask)
GHOST_TSuccess getCursorPosition(int32_t &x, int32_t &y) const
GHOST_TKey processSpecialKey(short vKey, short scanCode) const
GHOST_TSuccess hasClipboardImage() const
static GHOST_Event * processWindowSizeEvent(GHOST_WindowWin32 *window)
GHOST_TKey convertKey(short vKey, short ScanCode, short extend) const
GHOST_IContext * createOffscreenContext(GHOST_GPUSettings gpuSettings)
void putClipboard(const char *buffer, bool selection) const
static GHOST_EventCursor * processCursorEvent(GHOST_WindowWin32 *window, const int32_t screen_co[2])
GHOST_IWindow * createWindow(const char *title, int32_t left, int32_t top, uint32_t width, uint32_t height, GHOST_TWindowState state, GHOST_GPUSettings gpuSettings, const bool exclusive=false, const bool is_dialog=false, const GHOST_IWindow *parentWindow=0)
static GHOST_ContextD3D * createOffscreenContextD3D()
bool processEvents(bool waitForEvent)
char * getClipboard(bool selection) const
static GHOST_TSuccess disposeContextD3D(GHOST_ContextD3D *context)
static void processWintabEvent(GHOST_WindowWin32 *window)
uint64_t performanceCounterToMillis(__int64 perf_ticks) const
GHOST_TSuccess getButtons(GHOST_Buttons &buttons) const
GHOST_TSuccess putClipboardImage(uint *rgba, int width, int height) const
static GHOST_EventKey * processKeyEvent(GHOST_WindowWin32 *window, RAWINPUT const &raw)
void initDebug(GHOST_Debug debug) override
void getAllDisplayDimensions(uint32_t &width, uint32_t &height) const
GHOST_TSuccess getModifierKeys(GHOST_ModifierKeys &keys) const
static void processMinMaxInfo(MINMAXINFO *minmax)
bool setConsoleWindowState(GHOST_TConsoleWindowState action)
GHOST_TSuccess getPixelAtCursor(float r_color[3]) const
static GHOST_Event * processWindowEvent(GHOST_TEventType type, GHOST_WindowWin32 *window)
uint8_t getNumDisplays() const
static void processPointerEvent(UINT type, GHOST_WindowWin32 *window, WPARAM wParam, LPARAM lParam, bool &eventhandled)
GHOST_TSuccess disposeContext(GHOST_IContext *context)
void handleKeyboardChange()
GHOST_TCapabilityFlag getCapabilities() const
GHOST_TSuccess showMessageBox(const char *title, const char *message, const char *help_label, const char *continue_label, const char *link, GHOST_DialogOptions dialog_options) const
static LRESULT WINAPI s_wndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
static GHOST_TSuccess pushDragDropEvent(GHOST_TEventType eventType, GHOST_TDragnDropTypes draggedObjectType, GHOST_WindowWin32 *window, int mouseX, int mouseY, void *data)
bool m_hasPerformanceCounter
GHOST_IWindow * getWindowUnderCursor(int32_t, int32_t)
unsigned __int64 uint64_t