#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "nilorea/n_common.h"
#include "nilorea/n_log.h"
#include "nilorea/n_gui.h"
#include <allegro5/allegro_primitives.h>
Go to the source code of this file.
|
| static void | expect_true (const char *what, int ok) |
| | record one check
|
| static void | key (N_GUI_CTX *gui, int keycode, int modifiers, int repeat) |
| | one key as the keyboard sends it: a down, then a char
|
| int | main (int argc, char **argv) |
| static void | on_click (int widget_id, void *user_data) |
| | a button's click: counted
|
| static int | process_args (int argc, char **argv) |
| | parse -V LOG_LEVEL
|
◆ ALLEGRO_UNSTABLE
| #define ALLEGRO_UNSTABLE 1 |
◆ expect_true()
| void expect_true |
( |
const char * | what, |
|
|
int | ok ) |
|
static |
◆ key()
| void key |
( |
N_GUI_CTX * | gui, |
|
|
int | keycode, |
|
|
int | modifiers, |
|
|
int | repeat ) |
|
static |
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 89 of file ex_gui_button_keys.c.
References expect_true(), failures, font, gui, key, LOG_ERR, log_level, LOG_NOTICE, n_gui_add_button(), n_gui_add_slider(), n_gui_add_textarea(), n_gui_add_window(), n_gui_button_set_keycode(), n_gui_destroy_ctx(), n_gui_draw(), n_gui_focus_takes_key(), n_gui_get_focus(), n_gui_make_theme(), n_gui_new_ctx(), n_gui_process_event(), n_gui_raise_window(), n_gui_set_default_theme(), n_gui_set_display_size(), n_gui_set_focus(), n_gui_set_widget_visible(), N_GUI_SHAPE_RECT, N_GUI_SLIDER_VALUE, n_gui_widget_screen_rect(), n_log, on_click(), pressed, process_args(), and set_log_level().
◆ on_click()
| void on_click |
( |
int | widget_id, |
|
|
void * | user_data ) |
|
static |
◆ process_args()
| int process_args |
( |
int | argc, |
|
|
char ** | argv ) |
|
static |
◆ failures
◆ log_level
◆ pressed