Remove the component parameter from GenericWindow::process_key_input

This commit is contained in:
Simon Hausmann 2020-11-11 19:16:26 +01:00
parent 516680ad5d
commit a2dadf8fe8
6 changed files with 36 additions and 65 deletions

View file

@ -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) \