#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "nilorea/n_common.h"
#include "nilorea/n_gui.h"
#include "nilorea/n_log.h"
Go to the source code of this file.
◆ DRAW_STATE
◆ ALLEGRO_UNSTABLE
| #define ALLEGRO_UNSTABLE 1 |
◆ custom_draw()
| void custom_draw |
( |
N_GUI_WIDGET * | widget, |
|
|
float | x, |
|
|
float | y, |
|
|
ALLEGRO_FONT * | font, |
|
|
void * | user_data ) |
|
static |
◆ expect_true()
| void expect_true |
( |
const char * | label, |
|
|
int | cond ) |
|
static |
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 100 of file ex_gui_custom.c.
References DRAW_STATE::calls, custom_draw(), expect_true(), failures, font, gui, N_GUI_WIDGET::h, DRAW_STATE::had_font, DRAW_STATE::last_x, DRAW_STATE::last_y, LOG_ERR, log_level, LOG_NOTICE, n_gui_add_custom(), n_gui_add_window(), n_gui_destroy_ctx(), n_gui_draw(), n_gui_get_widget(), n_gui_new_ctx(), n_gui_set_display_size(), N_GUI_TYPE_CUSTOM, n_log, process_args(), DRAW_STATE::seen_w, set_log_level(), N_GUI_WIDGET::type, and N_GUI_WIDGET::w.
◆ process_args()
| int process_args |
( |
int | argc, |
|
|
char ** | argv ) |
|
static |
◆ failures
◆ log_level