Blender V5.3
GHOST_WindowWin32 Class Reference

#include <GHOST_WindowWin32.hh>

Inherits GHOST_Window.

Public Member Functions

 GHOST_WindowWin32 (GHOST_SystemWin32 *system, const char *title, int32_t left, int32_t top, uint32_t width, uint32_t height, GHOST_TWindowState state, GHOST_TDrawingContextType type, const GHOST_ContextParams &context_params, GHOST_WindowWin32 *parent_window, bool dialog, const GHOST_GPUDevice &preferred_device)
 ~GHOST_WindowWin32 ()
void adjustWindowRectForClosestMonitor (LPRECT win_rect, DWORD dwStyle, DWORD dwExStyle)
bool getValid () const override
HWND getHWND () const
void * getOSWindow () const override
void setTitle (const char *title) override
std::string getTitle () const override
GHOST_TSuccess applyWindowDecorationStyle () override
void getWindowBounds (GHOST_Rect &bounds) const override
void getClientBounds (GHOST_Rect &bounds) const override
GHOST_TSuccess setClientWidth (uint32_t width) override
GHOST_TSuccess setClientHeight (uint32_t height) override
GHOST_TSuccess setClientSize (uint32_t width, uint32_t height) override
GHOST_TWindowState getState () const override
void screenToClient (int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const override
void clientToScreen (int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const override
GHOST_TSuccess setState (GHOST_TWindowState state) override
GHOST_TSuccess setOrder (GHOST_TWindowOrder order) override
GHOST_TSuccess invalidate () override
GHOST_TSuccess setProgressBar (float progress) override
GHOST_TSuccess endProgressBar () override
void updateMouseCapture (GHOST_MouseCaptureEventWin32 event)
void lostMouseCapture ()
bool isDialog () const override
HCURSOR getStandardCursor (GHOST_TStandardCursor shape) const
void loadCursor (bool visible, GHOST_TStandardCursor cursor_shape) const
bool usingTabletAPI (GHOST_TTabletAPI api) const
GHOST_TSuccess getPointerInfo (std::vector< GHOST_PointerInfoWin32 > &outPointerInfo, WPARAM wParam, LPARAM lParam)
void resetPointerPenInfo ()
GHOST_Wintab * getWintab () const
void loadWintab (bool enable)
void closeWintab ()
GHOST_TabletData getTabletData ()
void updateDPI ()
uint16_t getDPIHint () override
void ThemeRefresh ()
void updateDirectManipulation ()
void onPointerHitTest (WPARAM wParam)
GHOST_TTrackpadInfo getTrackpadInfo ()
void updateHDRInfo ()
Public Member Functions inherited from GHOST_Window
 GHOST_Window (uint32_t width, uint32_t height, GHOST_TWindowState state, const GHOST_ContextParams &context_params, const bool exclusive=false)
 ~GHOST_Window () override
void setPath (const char *) override
GHOST_TWindowDecorationStyleFlags getWindowDecorationStyleFlags () override
void setWindowDecorationStyleFlags (GHOST_TWindowDecorationStyleFlags style_flags) override
void setWindowDecorationStyleSettings (GHOST_WindowDecorationStyleSettings decoration_settings) override
GHOST_TStandardCursor getCursorShape () const override
GHOST_TSuccess setCursorShape (GHOST_TStandardCursor cursor_shape) override
GHOST_TSuccess setCustomCursorShape (const uint8_t *bitmap, const uint8_t *mask, const int size[2], const int hot_spot[2], bool can_invert_color) override
GHOST_TSuccess setCustomCursorGenerator (GHOST_CursorGenerator *cursor_generator) override
GHOST_TSuccess getCursorBitmap (GHOST_CursorBitmapRef *bitmap) override
bool getCursorVisibility () const override
GHOST_TGrabCursorMode getCursorGrabMode () const
bool getCursorGrabModeIsWarp () const
GHOST_TAxisFlag getCursorGrabAxis () const
void getCursorGrabInitPos (int32_t &x, int32_t &y) const
void getCursorGrabAccum (int32_t &x, int32_t &y) const
void setCursorGrabAccum (int32_t x, int32_t y)
GHOST_TSuccess setCursorVisibility (bool visible) override
GHOST_TSuccess setCursorGrab (GHOST_TGrabCursorMode mode, GHOST_TAxisFlag wrap_axis, GHOST_Rect *bounds, int32_t mouse_ungrab_xy[2]) override
void getCursorGrabState (GHOST_TGrabCursorMode &mode, GHOST_TAxisFlag &wrap_axis, GHOST_Rect &bounds, bool &use_software_cursor) override
GHOST_TSuccess setSwapInterval (int interval) override
GHOST_TSuccess getSwapInterval (int &interval_out) override
void setAcceptDragOperation (bool can_accept) override
GHOST_TSuccess setModifiedState (bool is_unsaved_changes) override
GHOST_TDrawingContextType getDrawingContextType () override
GHOST_TSuccess setDrawingContextType (GHOST_TDrawingContextType type) override
GHOST_IContext * getDrawingContext () override
GHOST_TSuccess swapBufferAcquire () override
GHOST_TSuccess swapBufferRelease () override
GHOST_TSuccess activateDrawingContext () override
GHOST_TSuccess updateDrawingContext ()
GHOST_Context * getContext ()
bool hasAlpha () const override
unsigned int getDefaultFramebuffer () override
GHOST_TUserDataPtr getUserData () const override
void setUserData (const GHOST_TUserDataPtr user_data) override
float getNativePixelSize () override
GHOST_WindowHDRInfo getHDRInfo () override
virtual bool canAcceptDragOperation () const
virtual GHOST_TSuccess getCursorGrabBounds (GHOST_Rect &bounds) const
Public Member Functions inherited from GHOST_IWindow
virtual ~GHOST_IWindow ()=default
virtual GHOST_TWindowTiledFlag getTiledEdges () const

Public Attributes

bool mouse_present_
bool in_live_resize_

Additional Inherited Members

Protected Member Functions inherited from GHOST_Window
virtual GHOST_TSuccess setWindowCustomCursorGenerator (GHOST_CursorGenerator *cursor_generator)
virtual bool getCursorGrabUseSoftwareDisplay ()
virtual bool getModifiedState ()
GHOST_TSuccess releaseNativeHandles ()
Protected Attributes inherited from GHOST_Window
GHOST_TDrawingContextType drawing_context_type_
GHOST_TUserDataPtr user_data_
bool cursor_visible_
GHOST_TGrabCursorMode cursor_grab_
GHOST_TAxisFlag cursor_grab_axis_
int32_t cursor_grab_init_pos_ [2]
int32_t cursor_grab_accum_pos_ [2]
GHOST_Rect cursor_grab_bounds_
GHOST_TStandardCursor cursor_shape_
bool progress_bar_visible_
bool can_accept_drag_operation_
bool is_unsaved_changes_
bool full_screen_
GHOST_TWindowDecorationStyleFlags window_decoration_style_flags_
GHOST_WindowDecorationStyleSettings window_decoration_style_settings_
GHOST_ContextParams want_context_params_
uint32_t full_screen_width_
uint32_t full_screen_height_
float native_pixel_size_
GHOST_WindowHDRInfo hdr_info_ = GHOST_WINDOW_HDR_INFO_NONE

Detailed Description

GHOST window on MS Windows OSs.

Definition at line 54 of file GHOST_WindowWin32.hh.

Constructor & Destructor Documentation

◆ GHOST_WindowWin32()

GHOST_WindowWin32::GHOST_WindowWin32 ( GHOST_SystemWin32 * system,
const char * title,
int32_t left,
int32_t top,
uint32_t width,
uint32_t height,
GHOST_TWindowState state,
GHOST_TDrawingContextType type,
const GHOST_ContextParams & context_params,
GHOST_WindowWin32 * parent_window,
bool dialog,
const GHOST_GPUDevice & preferred_device )

Constructor. Creates a new window and opens it. To check if the window was created properly, use the getValid() method.

Parameters
titleThe text shown in the title bar of the window.
leftThe coordinate of the left edge of the window.
topThe coordinate of the top edge of the window.
widthThe width the window.
heightThe height the window.
stateThe state the window is initially opened with.
typeThe type of drawing context installed in this window.
context_paramsContext parameters such as stereo visual for quad buffered stereo.
parent_windowTODO.
preferred_devicePreferred device to use when new device will be created.

Definition at line 54 of file GHOST_WindowWin32.cc.

References adjustWindowRectForClosestMonitor(), alloc_utf16_from_8(), blender::BLI_getenv(), CLSID_TaskbarList, GHOST_DirectManipulationHelper::create(), getDPIHint(), GHOST_System::getTabletAPI(), GHOST_DropTargetWin32::GHOST_DropTargetWin32(), GHOST_kTabletWinPointer, GHOST_kWindowStateFullScreen, GHOST_kWindowStateMaximized, GHOST_kWindowStateMinimized, GHOST_kWindowStateNormal, GHOST_Window::GHOST_Window(), GHOST_WindowWin32(), in_live_resize_, loadWintab(), lostMouseCapture(), mouse_present_, GHOST_Window::setDrawingContextType(), state, ThemeRefresh(), and updateHDRInfo().

Referenced by GHOST_SystemWin32::createWindow(), GHOST_WindowWin32(), and ~GHOST_WindowWin32().

◆ ~GHOST_WindowWin32()

GHOST_WindowWin32::~GHOST_WindowWin32 ( )

Destructor. Closes the window and disposes resources allocated.

Definition at line 258 of file GHOST_WindowWin32.cc.

References closeWintab(), GHOST_WindowWin32(), GHOST_Window::releaseNativeHandles(), and TBPF_NOPROGRESS.

Member Function Documentation

◆ adjustWindowRectForClosestMonitor()

void GHOST_WindowWin32::adjustWindowRectForClosestMonitor ( LPRECT win_rect,
DWORD dwStyle,
DWORD dwExStyle )

Adjusts a requested window rect to fit and position correctly in monitor.

Parameters
win_rectpointer to rectangle that will be modified.
dwStyleThe Window Style of the window whose required size is to be calculated.
dwExStyleThe Extended Window Style of the window.

Definition at line 314 of file GHOST_WindowWin32.cc.

Referenced by GHOST_WindowWin32().

◆ applyWindowDecorationStyle()

GHOST_TSuccess GHOST_WindowWin32::applyWindowDecorationStyle ( )
overridevirtual

◆ clientToScreen()

void GHOST_WindowWin32::clientToScreen ( int32_t inX,
int32_t inY,
int32_t & outX,
int32_t & outY ) const
overridevirtual

Converts a point in client rectangle coordinates to screen coordinates.

Parameters
inXThe x-coordinate in the client rectangle.
inYThe y-coordinate in the client rectangle.
outXThe x-coordinate on the screen.
outYThe y-coordinate on the screen.

Implements GHOST_IWindow.

Definition at line 528 of file GHOST_WindowWin32.cc.

Referenced by GHOST_SystemWin32::s_wndProc().

◆ closeWintab()

void GHOST_WindowWin32::closeWintab ( )

Closes Wintab for the window.

Definition at line 978 of file GHOST_WindowWin32.cc.

References WINTAB_PRINTF.

Referenced by GHOST_SystemWin32::setTabletAPI(), and ~GHOST_WindowWin32().

◆ endProgressBar()

GHOST_TSuccess GHOST_WindowWin32::endProgressBar ( )
overridevirtual

Hides the progress bar in the icon

Reimplemented from GHOST_Window.

Definition at line 1206 of file GHOST_WindowWin32.cc.

References GHOST_kFailure, GHOST_kSuccess, and TBPF_NOPROGRESS.

◆ getClientBounds()

void GHOST_WindowWin32::getClientBounds ( GHOST_Rect & bounds) const
overridevirtual

Returns the client rectangle dimensions. The left and top members of the rectangle are always zero.

Parameters
boundsThe bounding rectangle of the client area of the window.

Implements GHOST_IWindow.

Definition at line 419 of file GHOST_WindowWin32.cc.

References GHOST_Rect::b_, GHOST_Rect::l_, GHOST_Rect::r_, and GHOST_Rect::t_.

Referenced by loadWintab(), GHOST_SystemWin32::processCursorEvent(), setClientHeight(), setClientSize(), and setClientWidth().

◆ getDPIHint()

uint16_t GHOST_WindowWin32::getDPIHint ( )
overridevirtual

Returns the recommended DPI for this window.

Returns
The recommended DPI for this window.

Reimplemented from GHOST_Window.

Definition at line 1041 of file GHOST_WindowWin32.cc.

Referenced by GHOST_WindowWin32(), and updateDPI().

◆ getHWND()

HWND GHOST_WindowWin32::getHWND ( ) const

Access to the handle of the window.

Returns
The handle of the window.

Definition at line 364 of file GHOST_WindowWin32.cc.

Referenced by GHOST_DropTargetWin32::GHOST_DropTargetWin32(), GHOST_SystemWin32::processButtonEvent(), GHOST_SystemWin32::processWintabEvent(), and GHOST_SystemWin32::s_wndProc().

◆ getOSWindow()

void * GHOST_WindowWin32::getOSWindow ( ) const
overridevirtual

Returns the handle of the window.

Returns
The handle of the window.

Reimplemented from GHOST_Window.

Definition at line 369 of file GHOST_WindowWin32.cc.

◆ getPointerInfo()

GHOST_TSuccess GHOST_WindowWin32::getPointerInfo ( std::vector< GHOST_PointerInfoWin32 > & outPointerInfo,
WPARAM wParam,
LPARAM lParam )

Translate WM_POINTER events into GHOST_PointerInfoWin32 structs.

Parameters
outPointerInfoStorage to return resulting GHOST_PointerInfoWin32 structs.
wParamWPARAM of the event.
lParamLPARAM of the event.
Returns
True if #outPointerInfo was updated.

Definition at line 855 of file GHOST_WindowWin32.cc.

References GET_POINTERID_WPARAM, GHOST_ISystem::getSystem(), GHOST_kButtonMaskButton4, GHOST_kButtonMaskButton5, GHOST_kButtonMaskLeft, GHOST_kButtonMaskMiddle, GHOST_kButtonMaskRight, GHOST_kFailure, GHOST_kSuccess, GHOST_kTabletModeEraser, GHOST_kTabletModeStylus, and GHOST_SystemWin32::performanceCounterToMillis().

Referenced by GHOST_SystemWin32::processPointerEvent().

◆ getStandardCursor()

◆ getState()

GHOST_TWindowState GHOST_WindowWin32::getState ( ) const
overridevirtual

Returns the state of the window (normal, minimized, maximized).

Returns
The state of the window.

Implements GHOST_IWindow.

Definition at line 505 of file GHOST_WindowWin32.cc.

References GHOST_kWindowStateFullScreen, GHOST_kWindowStateMaximized, GHOST_kWindowStateMinimized, and GHOST_kWindowStateNormal.

Referenced by GHOST_SystemWin32::s_wndProc(), setOrder(), setState(), and GHOST_SystemWin32::setTabletAPI().

◆ getTabletData()

GHOST_TabletData GHOST_WindowWin32::getTabletData ( )

Get the most recent Windows Pointer tablet data.

Returns
Most recent pointer tablet data.

Definition at line 1003 of file GHOST_WindowWin32.cc.

References GHOST_kTabletWintab, and usingTabletAPI().

Referenced by GHOST_SystemWin32::processButtonEvent(), GHOST_SystemWin32::processCursorEvent(), and GHOST_SystemWin32::s_wndProc().

◆ getTitle()

std::string GHOST_WindowWin32::getTitle ( ) const
overridevirtual

Returns the title displayed in the title bar.

Returns
The title displayed in the title bar.

Implements GHOST_IWindow.

Definition at line 381 of file GHOST_WindowWin32.cc.

References conv_utf_16_to_8(), count_utf_8_from_16(), and L.

◆ getTrackpadInfo()

GHOST_TTrackpadInfo GHOST_WindowWin32::getTrackpadInfo ( )

Definition at line 249 of file GHOST_WindowWin32.cc.

Referenced by GHOST_SystemWin32::processTrackpad().

◆ getValid()

bool GHOST_WindowWin32::getValid ( ) const
overridevirtual

Returns indication as to whether the window is valid.

Returns
The validity of the window.

Reimplemented from GHOST_Window.

Definition at line 359 of file GHOST_WindowWin32.cc.

References GHOST_Window::getValid().

Referenced by GHOST_SystemWin32::createWindow().

◆ getWindowBounds()

void GHOST_WindowWin32::getWindowBounds ( GHOST_Rect & bounds) const
overridevirtual

Returns the window rectangle dimensions. The dimensions are given in screen coordinates that are relative to the upper-left corner of the screen.

Parameters
boundsThe bounding rectangle of the window.

Implements GHOST_IWindow.

Definition at line 409 of file GHOST_WindowWin32.cc.

References GHOST_Rect::b_, GHOST_Rect::l_, GHOST_Rect::r_, and GHOST_Rect::t_.

Referenced by setClientHeight(), setClientSize(), and setClientWidth().

◆ getWintab()

GHOST_Wintab * GHOST_WindowWin32::getWintab ( ) const

Retrieves pointer to Wintab if Wintab is the set Tablet API.

Returns
Pointer to Wintab member.

Definition at line 949 of file GHOST_WindowWin32.cc.

Referenced by GHOST_SystemWin32::processWintabEvent(), and GHOST_SystemWin32::s_wndProc().

◆ invalidate()

GHOST_TSuccess GHOST_WindowWin32::invalidate ( )
overridevirtual

Invalidates the contents of this window.

Implements GHOST_IWindow.

Definition at line 610 of file GHOST_WindowWin32.cc.

References GHOST_kFailure, and GHOST_kSuccess.

◆ isDialog()

bool GHOST_WindowWin32::isDialog ( ) const
overridevirtual

Reimplemented from GHOST_Window.

Definition at line 685 of file GHOST_WindowWin32.cc.

◆ loadCursor()

void GHOST_WindowWin32::loadCursor ( bool visible,
GHOST_TStandardCursor cursor_shape ) const

◆ loadWintab()

void GHOST_WindowWin32::loadWintab ( bool enable)

Loads Wintab context for the window.

Parameters
enableTrue if Wintab should be enabled after loading. Wintab should not be enabled if the window is minimized.

Definition at line 954 of file GHOST_WindowWin32.cc.

References getClientBounds(), GHOST_Rect::isInside(), GHOST_Wintab::loadWintab(), WINTAB_PRINTF, x, and y.

Referenced by GHOST_WindowWin32(), and GHOST_SystemWin32::setTabletAPI().

◆ lostMouseCapture()

void GHOST_WindowWin32::lostMouseCapture ( )

Inform the window that it has lost mouse capture, called in response to native window system messages (WA_INACTIVE, WM_CAPTURECHANGED) or if ReleaseCapture() is explicitly called (for new window creation).

Definition at line 676 of file GHOST_WindowWin32.cc.

Referenced by GHOST_WindowWin32(), and GHOST_SystemWin32::s_wndProc().

◆ onPointerHitTest()

void GHOST_WindowWin32::onPointerHitTest ( WPARAM wParam)

Handle DM_POINTERHITTEST events.

Parameters
wParamwParam from the event.

Definition at line 234 of file GHOST_WindowWin32.cc.

References GET_POINTERID_WPARAM.

Referenced by GHOST_SystemWin32::s_wndProc().

◆ resetPointerPenInfo()

void GHOST_WindowWin32::resetPointerPenInfo ( )

Resets pointer pen tablet state.

Definition at line 944 of file GHOST_WindowWin32.cc.

Referenced by GHOST_SystemWin32::s_wndProc(), and GHOST_SystemWin32::setTabletAPI().

◆ screenToClient()

void GHOST_WindowWin32::screenToClient ( int32_t inX,
int32_t inY,
int32_t & outX,
int32_t & outY ) const
overridevirtual

Converts a point in screen coordinates to client rectangle coordinates

Parameters
inXThe x-coordinate on the screen.
inYThe y-coordinate on the screen.
outXThe x-coordinate in the client rectangle.
outYThe y-coordinate in the client rectangle.

Implements GHOST_IWindow.

Definition at line 517 of file GHOST_WindowWin32.cc.

◆ setClientHeight()

GHOST_TSuccess GHOST_WindowWin32::setClientHeight ( uint32_t height)
overridevirtual

Resizes client rectangle height.

Parameters
heightThe new height of the client area of the window.

Implements GHOST_IWindow.

Definition at line 467 of file GHOST_WindowWin32.cc.

References getClientBounds(), GHOST_Rect::getHeight(), GHOST_Rect::getWidth(), getWindowBounds(), GHOST_kFailure, and GHOST_kSuccess.

◆ setClientSize()

GHOST_TSuccess GHOST_WindowWin32::setClientSize ( uint32_t width,
uint32_t height )
overridevirtual

Resizes client rectangle.

Parameters
widthThe new width of the client area of the window.
heightThe new height of the client area of the window.

Implements GHOST_IWindow.

Definition at line 486 of file GHOST_WindowWin32.cc.

References getClientBounds(), GHOST_Rect::getHeight(), GHOST_Rect::getWidth(), getWindowBounds(), GHOST_kFailure, and GHOST_kSuccess.

◆ setClientWidth()

GHOST_TSuccess GHOST_WindowWin32::setClientWidth ( uint32_t width)
overridevirtual

Resizes client rectangle width.

Parameters
widthThe new width of the client area of the window.

Implements GHOST_IWindow.

Definition at line 448 of file GHOST_WindowWin32.cc.

References getClientBounds(), GHOST_Rect::getHeight(), GHOST_Rect::getWidth(), getWindowBounds(), GHOST_kFailure, and GHOST_kSuccess.

◆ setOrder()

GHOST_TSuccess GHOST_WindowWin32::setOrder ( GHOST_TWindowOrder order)
overridevirtual

Sets the order of the window (bottom, top).

Parameters
orderThe order of the window.
Returns
Indication of success.

Implements GHOST_IWindow.

Definition at line 582 of file GHOST_WindowWin32.cc.

References getState(), GHOST_kFailure, GHOST_kSuccess, GHOST_kWindowOrderBottom, GHOST_kWindowStateMinimized, GHOST_kWindowStateNormal, and setState().

◆ setProgressBar()

GHOST_TSuccess GHOST_WindowWin32::setProgressBar ( float progress)
overridevirtual

Sets the progress bar value displayed in the window/application icon

Parameters
progressThe progress percentage (0.0 to 1.0).

Reimplemented from GHOST_Window.

Definition at line 1196 of file GHOST_WindowWin32.cc.

References GHOST_kFailure, and GHOST_kSuccess.

◆ setState()

GHOST_TSuccess GHOST_WindowWin32::setState ( GHOST_TWindowState state)
overridevirtual

Sets the state of the window (normal, minimized, maximized).

Parameters
stateThe state of the window.
Returns
Indication of success.

Implements GHOST_IWindow.

Definition at line 539 of file GHOST_WindowWin32.cc.

References getState(), GHOST_kFailure, GHOST_kSuccess, GHOST_kWindowStateFullScreen, GHOST_kWindowStateMaximized, GHOST_kWindowStateMinimized, GHOST_kWindowStateNormal, and state.

Referenced by GHOST_SystemWin32::s_wndProc(), and setOrder().

◆ setTitle()

void GHOST_WindowWin32::setTitle ( const char * title)
overridevirtual

Sets the title displayed in the title bar.

Parameters
titleThe title to display in the title bar.

Implements GHOST_IWindow.

Definition at line 374 of file GHOST_WindowWin32.cc.

References alloc_utf16_from_8().

◆ ThemeRefresh()

void GHOST_WindowWin32::ThemeRefresh ( )

Called when OS colors change and when the window is created.

Definition at line 1013 of file GHOST_WindowWin32.cc.

References L.

Referenced by GHOST_WindowWin32(), and GHOST_SystemWin32::s_wndProc().

◆ updateDirectManipulation()

void GHOST_WindowWin32::updateDirectManipulation ( )

Drive DirectManipulation context.

Definition at line 225 of file GHOST_WindowWin32.cc.

Referenced by GHOST_SystemWin32::driveTrackpad().

◆ updateDPI()

void GHOST_WindowWin32::updateDPI ( )

Definition at line 1034 of file GHOST_WindowWin32.cc.

References getDPIHint().

Referenced by GHOST_SystemWin32::s_wndProc().

◆ updateHDRInfo()

◆ updateMouseCapture()

void GHOST_WindowWin32::updateMouseCapture ( GHOST_MouseCaptureEventWin32 event)

Set or Release mouse capture (should be called for any real button press).

Parameters
eventWhether mouse was pressed and released, or an operator grabbed or ungrabbed the mouse.

Definition at line 690 of file GHOST_WindowWin32.cc.

References MousePressed, MouseReleased, OperatorGrab, and OperatorUngrab.

Referenced by GHOST_SystemWin32::processButtonEvent(), GHOST_SystemWin32::processPointerEvent(), and GHOST_SystemWin32::processWintabEvent().

◆ usingTabletAPI()

bool GHOST_WindowWin32::usingTabletAPI ( GHOST_TTabletAPI api) const

Query whether given tablet API should be used.

Parameters
apiTablet API to test.

Definition at line 985 of file GHOST_WindowWin32.cc.

References GHOST_kTabletAutomatic, GHOST_kTabletWinPointer, and GHOST_kTabletWintab.

Referenced by getTabletData(), GHOST_SystemWin32::processPointerEvent(), GHOST_SystemWin32::s_wndProc(), and GHOST_SystemWin32::setTabletAPI().

Member Data Documentation

◆ in_live_resize_

bool GHOST_WindowWin32::in_live_resize_

True if the window currently resizing.

Definition at line 298 of file GHOST_WindowWin32.hh.

Referenced by GHOST_WindowWin32(), GHOST_SystemWin32::processWindowSizeEvent(), and GHOST_SystemWin32::s_wndProc().

◆ mouse_present_

bool GHOST_WindowWin32::mouse_present_

True if the mouse is either over or captured by the window.

Definition at line 295 of file GHOST_WindowWin32.hh.

Referenced by GHOST_WindowWin32(), and GHOST_SystemWin32::s_wndProc().


The documentation for this class was generated from the following files: