mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Remove the component parameter from GenericWindow::process_key_input
This commit is contained in:
parent
516680ad5d
commit
a2dadf8fe8
6 changed files with 36 additions and 65 deletions
|
@ -20,16 +20,15 @@ template<typename Component>
|
|||
inline void send_mouse_click(const Component &component, float x, float y)
|
||||
{
|
||||
cbindgen_private::sixtyfps_send_mouse_click(
|
||||
{ &Component::component_type, const_cast<Component *>(&component) },
|
||||
x, y, &component.window);
|
||||
{ &Component::component_type, const_cast<Component *>(&component) }, x, y,
|
||||
&component.window);
|
||||
}
|
||||
|
||||
template<typename Component>
|
||||
inline void send_keyboard_string_sequence(const Component &component, const sixtyfps::SharedString &str)
|
||||
inline void send_keyboard_string_sequence(const Component &component,
|
||||
const sixtyfps::SharedString &str)
|
||||
{
|
||||
cbindgen_private::send_keyboard_string_sequence(
|
||||
{ &Component::component_type, const_cast<Component *>(&component) },
|
||||
&str, &component.window);
|
||||
cbindgen_private::send_keyboard_string_sequence(&str, &component.window);
|
||||
}
|
||||
|
||||
#define assert_eq(A, B) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue