layout: Unbox buttons

The Box was just polluting the code, and the original reason for it (passing buttons individually to C) is gone.
This commit is contained in:
Dorota Czaplejewicz
2022-10-01 15:13:28 +00:00
parent 952ec805ed
commit a5fdc25452
3 changed files with 34 additions and 35 deletions

View File

@ -105,7 +105,7 @@ mod c {
render_button_at_position(
renderer, &cr,
offset,
button.as_ref(),
button,
state.pressed, locked,
);
}
@ -126,7 +126,7 @@ mod c {
render_button_at_position(
renderer, &cr,
offset,
button.as_ref(),
button,
keyboard::PressType::Released,
LockedStyle::Free,
);