minor cleanup

Rename window_ to window_rc for the private window member in the generated C++ struct.
This commit is contained in:
Simon Hausmann 2021-07-22 17:20:14 +02:00 committed by Simon Hausmann
parent d87cfb4b1e
commit 23da97bc75
3 changed files with 20 additions and 20 deletions

View file

@ -26,7 +26,7 @@ template<typename Component>
inline void send_mouse_click(const Component *component, float x, float y)
{
auto crc = *component->self_weak.into_dyn().lock();
cbindgen_private::sixtyfps_send_mouse_click(&crc, x, y, &component->window_);
cbindgen_private::sixtyfps_send_mouse_click(&crc, x, y, &component->window_rc);
}
template<typename Component>
@ -34,7 +34,7 @@ inline void send_keyboard_string_sequence(const Component *component,
const sixtyfps::SharedString &str,
cbindgen_private::KeyboardModifiers modifiers = {})
{
cbindgen_private::send_keyboard_string_sequence(&str, modifiers, &component->window_);
cbindgen_private::send_keyboard_string_sequence(&str, modifiers, &component->window_rc);
}
#define assert_eq(A, B) \