![]() |
Nilorea Library
C utilities for networking, threading, graphics
|
#include "nilorea/n_gui.h"
Include dependency graph for ex_gui_bench.c:Go to the source code of this file.
Macros | |
| #define | ALLEGRO_UNSTABLE 1 |
| #define | BENCH_DEFAULT_DRAW_ITERS 1000 |
| #define | BENCH_DEFAULT_EVENT_ITERS 20000 |
| #define | BENCH_DISPLAY_H 1000 |
| #define | BENCH_DISPLAY_W 1600 |
| #define | BENCH_GRID_COLS 8 |
| #define | BENCH_GRID_ROWS 500 |
| #define | BENCH_LIST_ITEMS 200 |
| #define | BENCH_SYNTAX_LINES 200 |
Functions | |
| static void | build_datagrid_window (N_GUI_CTX *gui) |
| static void | build_syntaxview_window (N_GUI_CTX *gui) |
| static void | build_textarea_window (N_GUI_CTX *gui) |
| static void | build_widgets_window (N_GUI_CTX *gui) |
| int | main (int argc, char **argv) |
| static void | on_noop_grid_select (int a, int b, void *u) |
| static void | on_noop_select (int a, int b, int c, void *u) |
| static void | process_args (int argc, char **argv) |
Variables | |
| static int | draw_iters = 1000 |
| static int | event_iters = 20000 |
| static int | log_level = 5 |
| #define ALLEGRO_UNSTABLE 1 |
Definition at line 45 of file ex_gui_bench.c.
| #define BENCH_DEFAULT_DRAW_ITERS 1000 |
Definition at line 53 of file ex_gui_bench.c.
| #define BENCH_DEFAULT_EVENT_ITERS 20000 |
Definition at line 54 of file ex_gui_bench.c.
| #define BENCH_DISPLAY_H 1000 |
Definition at line 50 of file ex_gui_bench.c.
| #define BENCH_DISPLAY_W 1600 |
Definition at line 49 of file ex_gui_bench.c.
| #define BENCH_GRID_COLS 8 |
Definition at line 57 of file ex_gui_bench.c.
| #define BENCH_GRID_ROWS 500 |
Definition at line 56 of file ex_gui_bench.c.
| #define BENCH_LIST_ITEMS 200 |
Definition at line 58 of file ex_gui_bench.c.
| #define BENCH_SYNTAX_LINES 200 |
Definition at line 59 of file ex_gui_bench.c.
|
static |
Definition at line 118 of file ex_gui_bench.c.
References BENCH_GRID_COLS, BENCH_GRID_ROWS, gui, n_gui_add_datagrid(), n_gui_add_window(), n_gui_datagrid_add_column(), n_gui_datagrid_add_row(), and on_noop_grid_select().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 160 of file ex_gui_bench.c.
References BENCH_SYNTAX_LINES, FreeNoLog, gui, Malloc, n_gui_add_syntaxview(), n_gui_add_window(), N_GUI_SYNTAX_JSON, and n_gui_syntaxview_set_text().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 141 of file ex_gui_bench.c.
References gui, n_gui_add_textarea(), n_gui_add_window(), and n_gui_textarea_set_text().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 182 of file ex_gui_bench.c.
References BENCH_LIST_ITEMS, gui, n_gui_add_button(), n_gui_add_checkbox(), n_gui_add_label(), n_gui_add_listbox(), n_gui_add_radiolist(), n_gui_add_slider(), n_gui_add_window(), N_GUI_ALIGN_JUSTIFIED, N_GUI_ALIGN_LEFT, n_gui_listbox_add_item(), n_gui_radiolist_add_item(), N_GUI_SELECT_SINGLE, N_GUI_SHAPE_ROUNDED, and on_noop_select().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 233 of file ex_gui_bench.c.
References BENCH_DISPLAY_H, BENCH_DISPLAY_W, BENCH_GRID_COLS, BENCH_GRID_ROWS, BENCH_LIST_ITEMS, BENCH_SYNTAX_LINES, build_datagrid_window(), build_syntaxview_window(), build_textarea_window(), build_widgets_window(), display, draw_iters, event_iters, gui, LOG_ERR, log_level, LOG_NOTICE, n_gui_destroy_ctx(), n_gui_draw(), n_gui_new_ctx(), n_gui_process_event(), n_gui_set_display(), n_gui_set_display_size(), n_log, process_args(), and set_log_level().
Here is the call graph for this function:
|
static |
Definition at line 73 of file ex_gui_bench.c.
Referenced by build_datagrid_window().
Here is the caller graph for this function:
|
static |
Definition at line 67 of file ex_gui_bench.c.
Referenced by build_widgets_window().
Here is the caller graph for this function:
|
static |
Definition at line 79 of file ex_gui_bench.c.
References draw_iters, event_iters, LOG_DEBUG, LOG_ERR, LOG_INFO, log_level, LOG_NOTICE, and LOG_NULL.
|
static |
Definition at line 62 of file ex_gui_bench.c.
Referenced by main(), and process_args().
|
static |
Definition at line 63 of file ex_gui_bench.c.
Referenced by main(), and process_args().
|
static |
Definition at line 61 of file ex_gui_bench.c.