mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 22:01:13 +00:00
minor cleanup
Rename window_ to window_rc for the private window member in the generated C++ struct.
This commit is contained in:
parent
d87cfb4b1e
commit
23da97bc75
3 changed files with 20 additions and 20 deletions
|
@ -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) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue