CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::UIDebugUtility Struct Reference

#include <CeresEngine/UI/UIDebugUtility.hpp>

Static Public Member Functions

static void simulateTypeText (UIWindow &window, StringView str)
 Sends a sequence of key events that simulates a user typing a text.
 
static void simulateClick (UIWindow &window, UIPoint point)
 Sends a leftMouseDown event that simulates a click at the given position.
 
static void simulateRightClick (UIWindow &window, UIPoint point)
 Sends a rightMouseDown event that simulates a click at the given position.
 
static bool clickOnView (UIWindow &window, const UIView *view, UIPoint offset={})
 Sends a leftMouseDown event that will select the given view.
 

Member Function Documentation

◆ clickOnView()

static bool CeresEngine::UIDebugUtility::clickOnView ( UIWindow window,
const UIView view,
UIPoint  offset = {} 
)
static

Sends a leftMouseDown event that will select the given view.

Returns
true if the view will be hit, false if not possible to hit.

◆ simulateClick()

static void CeresEngine::UIDebugUtility::simulateClick ( UIWindow window,
UIPoint  point 
)
static

Sends a leftMouseDown event that simulates a click at the given position.

◆ simulateRightClick()

static void CeresEngine::UIDebugUtility::simulateRightClick ( UIWindow window,
UIPoint  point 
)
static

Sends a rightMouseDown event that simulates a click at the given position.

◆ simulateTypeText()

static void CeresEngine::UIDebugUtility::simulateTypeText ( UIWindow window,
StringView  str 
)
static

Sends a sequence of key events that simulates a user typing a text.

Parameters
windowThe window to send the events to.
strThe string to be simulated.

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