Matrix input
This commit is contained in:
parent
a02960283c
commit
697ee50dd3
2 changed files with 43 additions and 7 deletions
7
ui.odin
7
ui.odin
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue