Definition UIDebugUtility.hpp:38
void drag(UIView &fromView, UIView &toView)
void middleClick(const UIView &view)
void drag(const UIPoint &from, const UIPoint &to)
void click(const UIView &view)
void rightClick(const UIView &view)
UIEventSimulator(UIWindow &window)
UIWindow & mWindow
Definition UIDebugUtility.hpp:40
void middleClick(const UIPoint &location)
void mouseMove(const UIPoint &from, const UIPoint &to)
void middleClick(const UIView &view, const UIPoint &offset)
void rightClick(const UIView &view, const UIPoint &offset)
void click(const UIView &view, const UIPoint &offset)
void drag(UIView &fromView, UIView &toView, const UIPoint &fromOffset, const UIPoint &toOffset)
void mouseMove(const UIView &fromView, const UIView &toView)
void sendMouseEvent(UIEventType type, const UIPoint &location, UInt32 buttonNumber)
void click(const UIPoint &location)
void rightClick(const UIPoint &location)
The infrastructure for drawing and handling events in a UI.
Definition UIView.hpp:153
A window that an app displays on the screen.
Definition UIWindow.hpp:42
Definition Application.hpp:19
UIEventType
The types of events handled by responder objects.
Definition UIEvent.hpp:24
Point2 UIPoint
A type that contains a point in a two-dimensional coordinate system.
Definition UIUtility.hpp:27
std::uint32_t UInt32
Definition DataTypes.hpp:23
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
Definition UIDebugUtility.hpp:19
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 bool clickOnView(UIWindow &window, const UIView *view, UIPoint offset={})
Sends a leftMouseDown event that will select the given view.
static void simulateRightClick(UIWindow &window, UIPoint point)
Sends a rightMouseDown event that simulates a click at the given position.