diff options
| author | Alec Goncharow <alec@goncharow.dev> | 2026-05-27 14:34:32 -0400 |
|---|---|---|
| committer | Alec Goncharow <alec@goncharow.dev> | 2026-05-27 14:34:32 -0400 |
| commit | 93ad8a5cdeb8421bcf02195bc470257935062138 (patch) | |
| tree | bd76666718c27f3c79e015f6c9f7404a38663207 /src/widget_interface.jai | |
| parent | 13335d5ee6778ad65d49a774274bae84a64a7edf (diff) | |
Working widget idea, makings of a maze app
Forgot to commit as I went over the weekend, which is fine, not a ton of
interesting stuff just yet.
Diffstat (limited to 'src/widget_interface.jai')
| -rw-r--r-- | src/widget_interface.jai | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/widget_interface.jai b/src/widget_interface.jai new file mode 100644 index 0000000..62c84a3 --- /dev/null +++ b/src/widget_interface.jai @@ -0,0 +1,12 @@ +#import "Basic"; + +Widget_State :: struct { + init: (widget: *Widget_State) -> (); + update: (widget: *Widget_State, dt: float) -> (); + handle_input: (widget: *Widget_State, occluded: bool) -> (occludes: bool); + render: (widget: *Widget_State) -> (); + shutdown: (widget: *Widget_State) -> (); + + // We can store a pointer to the specific widget's state here + data: *void; +} |
