![]() |
Nilorea Library
C utilities for networking, threading, graphics
|
#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"
Include dependency graph for ex_gui_custom.c:Go to the source code of this file.
Data Structures | |
| struct | DRAW_STATE |
Macros | |
| #define | ALLEGRO_UNSTABLE 1 |
Functions | |
| static void | custom_draw (N_GUI_WIDGET *widget, float x, float y, ALLEGRO_FONT *font, void *user_data) |
| static void | expect_true (const char *label, int cond) |
| int | main (int argc, char **argv) |
| static int | process_args (int argc, char **argv) |
Variables | |
| static int | failures = 0 |
| static int | log_level = 3 |
| struct DRAW_STATE |
Definition at line 76 of file ex_gui_custom.c.
Collaboration diagram for DRAW_STATE:| Data Fields | ||
|---|---|---|
| int | calls | |
| int | had_font | |
| float | last_x | |
| float | last_y | |
| float | seen_w | |
| #define ALLEGRO_UNSTABLE 1 |
Definition at line 28 of file ex_gui_custom.c.
|
static |
Definition at line 84 of file ex_gui_custom.c.
References DRAW_STATE::calls, N_GUI_WIDGET::h, DRAW_STATE::had_font, DRAW_STATE::last_x, DRAW_STATE::last_y, DRAW_STATE::seen_w, and N_GUI_WIDGET::w.
Referenced by main().
Here is the caller graph for this function:
|
static |
Definition at line 67 of file ex_gui_custom.c.
References failures, LOG_ERR, and n_log.
Referenced by check_shared_resources(), and main().
Here is the caller graph for this function:| 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, 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.
Here is the call graph for this function:
|
static |
Definition at line 42 of file ex_gui_custom.c.
References LOG_DEBUG, LOG_ERR, LOG_INFO, log_level, LOG_NOTICE, and LOG_NULL.
|
static |
Definition at line 40 of file ex_gui_custom.c.
|
static |
Definition at line 39 of file ex_gui_custom.c.