CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::UIEventSimulator Class Reference

#include <CeresEngine/UI/UIDebugUtility.hpp>

Public Member Functions

 UIEventSimulator (UIWindow &window)
 
void mouseMove (const UIPoint &from, const UIPoint &to)
 
void mouseMove (const UIView &fromView, const UIView &toView)
 
void click (const UIPoint &location)
 
void click (const UIView &view)
 
void click (const UIView &view, const UIPoint &offset)
 
void rightClick (const UIPoint &location)
 
void rightClick (const UIView &view)
 
void rightClick (const UIView &view, const UIPoint &offset)
 
void middleClick (const UIPoint &location)
 
void middleClick (const UIView &view)
 
void middleClick (const UIView &view, const UIPoint &offset)
 
void drag (const UIPoint &from, const UIPoint &to)
 
void drag (UIView &fromView, UIView &toView)
 
void drag (UIView &fromView, UIView &toView, const UIPoint &fromOffset, const UIPoint &toOffset)
 

Private Member Functions

void sendMouseEvent (UIEventType type, const UIPoint &location, UInt32 buttonNumber)
 

Private Attributes

UIWindowmWindow
 

Constructor & Destructor Documentation

◆ UIEventSimulator()

CeresEngine::UIEventSimulator::UIEventSimulator ( UIWindow window)
explicit

Member Function Documentation

◆ click() [1/3]

void CeresEngine::UIEventSimulator::click ( const UIPoint location)

◆ click() [2/3]

void CeresEngine::UIEventSimulator::click ( const UIView view)

◆ click() [3/3]

void CeresEngine::UIEventSimulator::click ( const UIView view,
const UIPoint offset 
)

◆ drag() [1/3]

void CeresEngine::UIEventSimulator::drag ( const UIPoint from,
const UIPoint to 
)

◆ drag() [2/3]

void CeresEngine::UIEventSimulator::drag ( UIView fromView,
UIView toView 
)

◆ drag() [3/3]

void CeresEngine::UIEventSimulator::drag ( UIView fromView,
UIView toView,
const UIPoint fromOffset,
const UIPoint toOffset 
)

◆ middleClick() [1/3]

void CeresEngine::UIEventSimulator::middleClick ( const UIPoint location)

◆ middleClick() [2/3]

void CeresEngine::UIEventSimulator::middleClick ( const UIView view)

◆ middleClick() [3/3]

void CeresEngine::UIEventSimulator::middleClick ( const UIView view,
const UIPoint offset 
)

◆ mouseMove() [1/2]

void CeresEngine::UIEventSimulator::mouseMove ( const UIPoint from,
const UIPoint to 
)

◆ mouseMove() [2/2]

void CeresEngine::UIEventSimulator::mouseMove ( const UIView fromView,
const UIView toView 
)

◆ rightClick() [1/3]

void CeresEngine::UIEventSimulator::rightClick ( const UIPoint location)

◆ rightClick() [2/3]

void CeresEngine::UIEventSimulator::rightClick ( const UIView view)

◆ rightClick() [3/3]

void CeresEngine::UIEventSimulator::rightClick ( const UIView view,
const UIPoint offset 
)

◆ sendMouseEvent()

void CeresEngine::UIEventSimulator::sendMouseEvent ( UIEventType  type,
const UIPoint location,
UInt32  buttonNumber 
)
private

Member Data Documentation

◆ mWindow

UIWindow& CeresEngine::UIEventSimulator::mWindow
private

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