Matrix input

This commit is contained in:
Synthasmagoria 2026-07-22 11:28:38 +02:00
commit 697ee50dd3
2 changed files with 43 additions and 7 deletions

View file

@ -74,8 +74,11 @@ ui_end :: proc() -> []UiElement {
return elements
}
UiElementCallback_Button :: proc()
UiElementData_Button :: struct {
label: cstring,
callback: UiElementCallback_Button,
}
ui_button :: proc(size: v2, data: UiElementData_Button) {
@ -112,8 +115,8 @@ ui_container_end :: proc() {
UiElementData_Input :: struct {
label: cstring,
value: ^i32,
min, max: i32,
input: []byte,
min, max: f32,
}
ui_input :: proc(size: v2, data: UiElementData_Input) {