![]() |
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_log.h"#include "nilorea/n_gui.h"Go to the source code of this file.
Macros | |
| #define | ALLEGRO_UNSTABLE 1 |
Functions | |
| static void | expect_true (const char *what, int ok) |
| record one check | |
| int | main (int argc, char **argv) |
| static void | on_expand (int node, void *user_data) |
| the expand callback: a "folder" gets two subfolders, both themselves openable, except the one that stands for an empty folder | |
| static int | process_args (int argc, char **argv) |
| parse -V LOG_LEVEL | |
| static const char * | row (N_GUI_TREE *tree, int index) |
| the text of a visible row, "" past the end | |
Variables | |
| static int | empty_node = -1 |
| nodes that stand for an empty folder: the callback adds nothing to them | |
| static int | failures = 0 |
| static int | fills = 0 |
| how many times the expand callback ran, and for which node last | |
| static int | last_filled = -1 |
| the node the callback last filled | |
| static int | log_level = 3 |
| #define ALLEGRO_UNSTABLE 1 |
Definition at line 18 of file ex_gui_tree_lazy.c.
|
static |
| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 84 of file ex_gui_tree_lazy.c.
References empty_node, N_GUI_TREE_NODE::expandable, N_GUI_TREE_NODE::expanded, expect_true(), failures, fills, font, gui, last_filled, LOG_ERR, log_level, n_gui_add_window(), n_gui_destroy_ctx(), n_gui_new_ctx(), n_gui_set_display_size(), n_gui_tree_add_node(), n_gui_tree_clear(), n_gui_tree_create(), n_gui_tree_expand(), n_gui_tree_free(), n_gui_tree_set_expand_callback(), n_gui_tree_set_expandable(), n_gui_tree_state_apply(), n_gui_tree_state_free(), n_gui_tree_state_save(), n_gui_tree_toggle_expand(), n_log, N_GUI_TREE::nb_nodes, N_GUI_TREE::nb_visible, N_GUI_TREE::nodes, on_expand(), process_args(), row(), and set_log_level().
|
static |
the expand callback: a "folder" gets two subfolders, both themselves openable, except the one that stands for an empty folder
Definition at line 65 of file ex_gui_tree_lazy.c.
References empty_node, fills, last_filled, n_gui_tree_add_node(), and n_gui_tree_set_expandable().
Referenced by main(), and n_gui_tree_set_expand_callback().
|
static |
|
static |
the text of a visible row, "" past the end
Definition at line 80 of file ex_gui_tree_lazy.c.
References N_GUI_TREE::ctx, N_GUI_TREE::listbox_id, and n_gui_listbox_get_item_text().
Referenced by _draw_datagrid(), _draw_hexview(), _grid_draw(), _grid_index_local(), _hexview_reveal(), _list_panel_wheel(), _n_gui_kv_apply_layout(), _n_gui_kv_content_grab(), _n_gui_kv_content_put(), _n_gui_kv_refresh_actions(), _popup_activate(), _popup_mouse(), _popup_open_child(), _syntaxview_offset_from_mouse(), cell_text(), getpixel(), iso_generate_transition_masks(), iso_mask_tile_to_diamond(), main(), main(), main(), n_atlas_cell_rect(), n_gui_color_picker_new(), n_gui_datagrid_clear_row_color(), n_gui_datagrid_get_cell(), n_gui_datagrid_get_row_color(), n_gui_datagrid_is_row_selected(), n_gui_datagrid_select_row(), n_gui_datagrid_set_row_color(), n_gui_datagrid_set_selected(), n_gui_draw_color_swatch(), n_gui_grid_scroll_to(), n_gui_kvtable_add_row(), n_gui_kvtable_clear(), n_gui_kvtable_remove_row(), n_gui_kvtable_set_row_actions(), n_gui_process_event(), n_gui_tree_draw_overlay(), n_gui_tree_get_selection(), n_gui_tree_rebuild(), n_gui_tree_set_selection(), on_ctx(), on_grid_select(), on_select(), putpixel(), row_y(), and wheel_then_click().
|
static |
nodes that stand for an empty folder: the callback adds nothing to them
Definition at line 37 of file ex_gui_tree_lazy.c.
Referenced by main(), and on_expand().
|
static |
Definition at line 30 of file ex_gui_tree_lazy.c.
|
static |
how many times the expand callback ran, and for which node last
Definition at line 33 of file ex_gui_tree_lazy.c.
Referenced by main(), and on_expand().
|
static |
the node the callback last filled
Definition at line 35 of file ex_gui_tree_lazy.c.
Referenced by main(), and on_expand().
|
static |
Definition at line 29 of file ex_gui_tree_lazy.c.