![]() |
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"
Include dependency graph for ex_gui_dropmenu.c:Go to the source code of this file.
Macros | |
| #define | ALLEGRO_UNSTABLE 1 |
Functions | |
| static const char * | dropmenu_label (N_GUI_CTX *gui, int id) |
| static void | expect_true (const char *label, int cond) |
| int | main (int argc, char **argv) |
| static void | on_combo (int widget_id, int index, void *user_data) |
| static void | on_entry (int widget_id, int entry_index, int tag, void *user_data) |
| static int | process_args (int argc, char **argv) |
Variables | |
| static int | click_tag = -1 |
| static int | combo_selected = -1 |
| static int | failures = 0 |
| static int | log_level = 3 |
| #define ALLEGRO_UNSTABLE 1 |
Definition at line 27 of file ex_gui_dropmenu.c.
|
static |
Definition at line 90 of file ex_gui_dropmenu.c.
References N_GUI_WIDGET::data, gui, n_gui_get_widget(), N_GUI_TYPE_DROPMENU, and N_GUI_WIDGET::type.
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 74 of file ex_gui_dropmenu.c.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 97 of file ex_gui_dropmenu.c.
References click_tag, combo_selected, N_GUI_WIDGET::data, dropmenu_label(), expect_true(), failures, gui, N_GUI_COMBOBOX_DATA::highlight_index, N_GUI_DROPMENU_DATA::highlight_index, N_GUI_COMBOBOX_DATA::is_open, N_GUI_DROPMENU_DATA::is_open, LOG_ERR, log_level, LOG_NOTICE, N_GUI_COMBOBOX_DATA::max_visible, N_GUI_DROPMENU_DATA::max_visible, n_gui_add_button(), n_gui_add_combobox(), n_gui_add_dropmenu(), n_gui_add_window(), n_gui_combobox_add_item(), n_gui_combobox_get_selected(), n_gui_combobox_set_selected(), n_gui_destroy_ctx(), n_gui_dropmenu_add_entry(), n_gui_dropmenu_clear(), n_gui_dropmenu_get_count(), n_gui_dropmenu_panel_width(), n_gui_dropmenu_set_label(), n_gui_get_shape_mode(), n_gui_get_widget(), n_gui_new_ctx(), n_gui_process_event(), n_gui_set_display_size(), n_gui_set_shape_mode(), N_GUI_SHAPE_RECT, N_GUI_SHAPE_ROUNDED, N_GUI_STATE_HOVER, N_GUI_WIN_FRAMELESS, n_gui_window_set_flags(), n_log, on_combo(), on_entry(), N_GUI_CTX::open_combobox_id, N_GUI_CTX::open_dropmenu_id, process_args(), N_GUI_DROPMENU_DATA::scroll_offset, N_GUI_COMBOBOX_DATA::selected_index, set_log_level(), and N_GUI_WIDGET::state.
Here is the call graph for this function:
|
static |
Definition at line 43 of file ex_gui_dropmenu.c.
References combo_selected.
Referenced by main().
Here is the caller graph for this function:
|
static |
Definition at line 81 of file ex_gui_dropmenu.c.
References click_tag.
Referenced by main().
Here is the caller graph for this function:
|
static |
Definition at line 49 of file ex_gui_dropmenu.c.
References LOG_DEBUG, LOG_ERR, LOG_INFO, log_level, LOG_NOTICE, and LOG_NULL.
|
static |
Definition at line 40 of file ex_gui_dropmenu.c.
Referenced by main(), and on_entry().
|
static |
Definition at line 41 of file ex_gui_dropmenu.c.
Referenced by main(), and on_combo().
|
static |
Definition at line 39 of file ex_gui_dropmenu.c.
|
static |
Definition at line 38 of file ex_gui_dropmenu.c.