![]() |
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 | add_once (N_GUI_CTX *gui, int combo, const char *text) |
| static void | expect_true (const char *what, int ok) |
| record one check | |
| int | main (int argc, char **argv) |
| static void | move_to (N_GUI_CTX *gui, float x, float y) |
| a move of the pointer to a point, nothing pressed | |
| static void | press_at (N_GUI_CTX *gui, float x, float y) |
| add a value only when it is not in the list yet, the way a filter built from data does, walking the combobox itself rather than a copy of it | |
| static int | process_args (int argc, char **argv) |
| parse -V LOG_LEVEL | |
Variables | |
| static int | failures = 0 |
| static int | log_level = 3 |
| #define ALLEGRO_UNSTABLE 1 |
Definition at line 21 of file ex_gui_combobox_items.c.
|
static |
Definition at line 88 of file ex_gui_combobox_items.c.
References gui, n_gui_combobox_add_item(), n_gui_combobox_get_count(), and n_gui_combobox_get_item_text().
Referenced by main().
|
static |
| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 97 of file ex_gui_combobox_items.c.
References add_once(), expect_true(), failures, font, gui, LOG_ERR, log_level, move_to(), n_gui_add_combobox(), n_gui_add_dropmenu(), n_gui_add_label(), n_gui_add_window(), N_GUI_ALIGN_LEFT, n_gui_combobox_get_count(), n_gui_combobox_get_item_text(), n_gui_combobox_get_selected(), n_gui_combobox_remove_item(), n_gui_combobox_set_selected(), n_gui_destroy_ctx(), n_gui_dropmenu_add_entry(), n_gui_dropmenu_is_open(), n_gui_menu_is_open(), n_gui_new_ctx(), n_gui_set_display_size(), n_gui_widget_screen_rect(), n_log, press_at(), process_args(), and set_log_level().
|
static |
a move of the pointer to a point, nothing pressed
Definition at line 78 of file ex_gui_combobox_items.c.
References gui, and n_gui_process_event().
Referenced by main().
|
static |
add a value only when it is not in the list yet, the way a filter built from data does, walking the combobox itself rather than a copy of it
a press and release of the left button at a point, after a move there
Definition at line 62 of file ex_gui_combobox_items.c.
References gui, and n_gui_process_event().
Referenced by main(), and main().
|
static |
|
static |
Definition at line 33 of file ex_gui_combobox_items.c.
|
static |
Definition at line 32 of file ex_gui_combobox_items.c.