#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.
◆ ALLEGRO_UNSTABLE
| #define ALLEGRO_UNSTABLE 1 |
◆ expect_true()
| void expect_true |
( |
const char * | label, |
|
|
int | cond ) |
|
static |
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 105 of file ex_gui_hover.c.
References expect_true(), failures, font, gui, LOG_ERR, log_level, mouse_event(), move_to(), n_gui_add_button(), n_gui_add_label(), n_gui_add_window(), N_GUI_ALIGN_LEFT, n_gui_close_window(), n_gui_destroy_ctx(), n_gui_get_widget(), n_gui_hovered_widget(), n_gui_new_ctx(), n_gui_open_window(), n_gui_process_event(), n_gui_raise_window(), n_gui_set_display_size(), n_gui_set_widget_visible(), N_GUI_SHAPE_ROUNDED, N_GUI_TYPE_BUTTON, N_GUI_WIN_FRAMELESS, n_gui_window_set_flags(), n_log, on_click(), process_args(), set_log_level(), and N_GUI_WIDGET::type.
◆ mouse_event()
| ALLEGRO_EVENT mouse_event |
( |
int | type, |
|
|
int | x, |
|
|
int | y ) |
|
static |
◆ move_to()
| void move_to |
( |
N_GUI_CTX * | gui, |
|
|
int | x, |
|
|
int | y ) |
|
static |
◆ 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