mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-28 12:54:45 +00:00
Test the mouse click
This commit is contained in:
parent
ccb2e23cf5
commit
f4cce26d51
7 changed files with 138 additions and 26 deletions
|
@ -7,4 +7,8 @@ inline void mock_elapsed_time(int64_t time_in_ms)
|
|||
{
|
||||
internal::sixtyfps_mock_elapsed_time(time_in_ms);
|
||||
}
|
||||
template<typename Component>
|
||||
inline void send_mouse_click(Component &component, float x, float y) {
|
||||
internal::sixtyfps_send_mouse_click({&Component::component_type, &component}, x, y);
|
||||
}
|
||||
} // namespace sixtyfps
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue