#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"
Go to the source code of this file.
|
| static void | expect_true (const char *what, int ok) |
| | record one check
|
| static void | feed (N_GUI_CTX *gui, int type, int x, int y) |
| | feed one mouse event
|
| int | main (int argc, char **argv) |
| static void | on_toggle (int widget_id, int checked, void *user_data) |
| | the checkbox callback
|
| static int | process_args (int argc, char **argv) |
| | read -V LOGLEVEL
|
◆ ALLEGRO_UNSTABLE
| #define ALLEGRO_UNSTABLE 1 |
◆ expect_true()
| void expect_true |
( |
const char * | what, |
|
|
int | ok ) |
|
static |
◆ feed()
| void feed |
( |
N_GUI_CTX * | gui, |
|
|
int | type, |
|
|
int | x, |
|
|
int | y ) |
|
static |
feed one mouse event
- Examples
- ex_gui_checkbox_release.c, ex_gui_colorwheel.c, ex_gui_curve.c, ex_gui_custom_mouse.c, ex_gui_grid.c, and ex_gui_popup.c.
Definition at line 66 of file ex_gui_checkbox_release.c.
References gui, n_gui_process_event(), and type().
Referenced by drag(), drag(), main(), and right().
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 77 of file ex_gui_checkbox_release.c.
References expect_true(), failures, feed(), font, gui, last_checked, LOG_ERR, log_level, n_gui_add_checkbox(), n_gui_add_window(), n_gui_checkbox_is_checked(), n_gui_destroy_ctx(), n_gui_new_ctx(), n_gui_open_window(), n_gui_set_display_size(), N_GUI_WIN_FIXED_POSITION, N_GUI_WIN_FRAMELESS, n_gui_window_set_flags(), n_log, on_toggle(), process_args(), set_log_level(), and toggles.
◆ on_toggle()
| void on_toggle |
( |
int | widget_id, |
|
|
int | checked, |
|
|
void * | user_data ) |
|
static |
◆ process_args()
| int process_args |
( |
int | argc, |
|
|
char ** | argv ) |
|
static |
◆ failures
◆ last_checked
◆ log_level
◆ toggles