blob: 62c84a3f8f19066f75d68066399d4009b829a730 (
plain)
1
2
3
4
5
6
7
8
9
10
11
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;
}
|