2 * Copyright (c) 2018, S. Gilles <sgilles@math.umd.edu>
4 * Permission to use, copy, modify, and/or distribute this software
5 * for any purpose with or without fee is hereby granted, provided
6 * that the above copyright notice and this permission notice appear
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
13 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
14 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
15 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
16 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
34 /* What event this is */
37 /* Event-specific data */
48 /* Initialize whatever UI is present */
50 ui_init(struct quiver
*q
);
52 /* Tear down whatever UI was made */
56 /* Deal with the fact that the quiver was changed */
58 ui_respond_quiver_change(void);
60 /* Acknowledge a successful load */
62 ui_respond_successful_load(const char *filename
);
64 /* Acknowledge a successful save */
66 ui_respond_successful_save(const char *filename
);
68 /* Record that a frame has been started */
72 /* Draw a frame, sleep to framelimit */
74 ui_finish_frame(void);
76 /* Get some kind of ui-agnostic event (like `quit' or `mutate' */
78 ui_get_event(struct ui_event
*e
, uint_fast8_t *more
);