Blender V5.3
GHOST_DirectManipulationHelper Class Reference

#include <GHOST_TrackpadWin32.hh>

Public Member Functions

 ~GHOST_DirectManipulationHelper ()
void update ()
void onPointerHitTest (UINT32 pointerId)
void setDPI (uint16_t dpi)
GHOST_TTrackpadInfo getTrackpadInfo ()

Static Public Member Functions

static GHOST_DirectManipulationHelper * create (HWND hWnd, uint16_t dpi)

Detailed Description

Definition at line 66 of file GHOST_TrackpadWin32.hh.

Constructor & Destructor Documentation

◆ ~GHOST_DirectManipulationHelper()

GHOST_DirectManipulationHelper::~GHOST_DirectManipulationHelper ( )

Definition at line 209 of file GHOST_TrackpadWin32.cc.

References GHOST_ASSERT.

Member Function Documentation

◆ create()

GHOST_DirectManipulationHelper * GHOST_DirectManipulationHelper::create ( HWND hWnd,
uint16_t dpi )
static

Creates a GHOST_DirectManipulationHelper for the provided window.

Parameters
hWndThe window receiving DirectManipulation events.
dpiThe current DPI.
Returns
Pointer to the new GHOST_DirectManipulationHelper if created, nullptr if there was an error.

Definition at line 35 of file GHOST_TrackpadWin32.cc.

References DM_CHECK_RESULT_AND_EXIT_EARLY.

Referenced by GHOST_WindowWin32::GHOST_WindowWin32().

◆ getTrackpadInfo()

GHOST_TTrackpadInfo GHOST_DirectManipulationHelper::getTrackpadInfo ( )

Retrieves trackpad input.

Returns
The accumulated trackpad translation and scale since last call.

Definition at line 200 of file GHOST_TrackpadWin32.cc.

◆ onPointerHitTest()

void GHOST_DirectManipulationHelper::onPointerHitTest ( UINT32 pointerId)

Sets pointer in contact with the DirectManipulation context.

Parameters
pointerIdID of the pointer in contact.

Definition at line 174 of file GHOST_TrackpadWin32.cc.

References GHOST_ASSERT.

◆ setDPI()

void GHOST_DirectManipulationHelper::setDPI ( uint16_t dpi)

Updates DPI information for touchpad scaling.

Parameters
dpiThe new DPI.

Definition at line 195 of file GHOST_TrackpadWin32.cc.

◆ update()

void GHOST_DirectManipulationHelper::update ( )

Drives the DirectManipulation context. DirectManipulation's intended use is to tie user input into DirectComposition's compositor scaling and translating. We are not using DirectComposition and therefore must drive DirectManipulation manually.

Definition at line 185 of file GHOST_TrackpadWin32.cc.

References GHOST_ASSERT.


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