added .masked and destructor for EditState
This commit is contained in:
@@ -116,13 +116,18 @@ static inline void test_screen(TimEvent* e) {
|
||||
}
|
||||
|
||||
i32 main(void) {
|
||||
TimEditState_init(&ed1, 32, "Edit 1");
|
||||
TimEditState_init(&ed2, 32, "");
|
||||
TimEditState_construct(&ed1, 32, "Edit 1");
|
||||
TimEditState_construct(&ed2, 32, "");
|
||||
|
||||
while (tim_run(1.5)) {
|
||||
test_screen(&tim->event);
|
||||
if (tim_is_key_press('q') || tim_is_key_press(TimKey_Escape)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
TimEditState_destroy(&ed1);
|
||||
TimEditState_destroy(&ed2);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user