mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Remove ComponentVtable::input_event
And the custom handling of the mouse grabber
This commit is contained in:
parent
845627c6b4
commit
8a64f10e84
69 changed files with 213 additions and 469 deletions
|
@ -17,11 +17,11 @@ inline void mock_elapsed_time(int64_t time_in_ms)
|
|||
cbindgen_private::sixtyfps_mock_elapsed_time(time_in_ms);
|
||||
}
|
||||
template<typename Component>
|
||||
inline void send_mouse_click(const Component &component, float x, float y)
|
||||
inline void send_mouse_click(const ComponentHandle<Component> *component, float x, float y)
|
||||
{
|
||||
cbindgen_private::sixtyfps_send_mouse_click(
|
||||
{ &Component::component_type, const_cast<Component *>(&component) }, x, y,
|
||||
&component.window);
|
||||
reinterpret_cast<const vtable::VRc<private_api::ComponentVTable>*>(component),
|
||||
x, y, &(*component)->window);
|
||||
}
|
||||
|
||||
template<typename Component>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue