Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
ex_gui_sectionlist.c File Reference
#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_sectionlist.c:

Go to the source code of this file.

Macros

#define ALLEGRO_UNSTABLE   1

Functions

static void expect_close (const char *label, float got, float want, float tol)
static void expect_true (const char *label, int cond)
int main (int argc, char **argv)
static int process_args (int argc, char **argv)
static int widget_visible (N_GUI_CTX *gui, int id)
static float widget_y (N_GUI_CTX *gui, int id)

Variables

static int failures = 0
static int log_level = 3

Macro Definition Documentation

◆ ALLEGRO_UNSTABLE

#define ALLEGRO_UNSTABLE   1

Definition at line 38 of file ex_gui_sectionlist.c.

Function Documentation

◆ expect_close()

void expect_close ( const char * label,
float got,
float want,
float tol )
static

Definition at line 77 of file ex_gui_sectionlist.c.

References failures, LOG_ERR, and n_log.

◆ expect_true()

void expect_true ( const char * label,
int cond )
static

Definition at line 86 of file ex_gui_sectionlist.c.

References failures, LOG_ERR, and n_log.

◆ main()

◆ process_args()

int process_args ( int argc,
char ** argv )
static

Definition at line 52 of file ex_gui_sectionlist.c.

References LOG_DEBUG, LOG_ERR, LOG_INFO, log_level, LOG_NOTICE, and LOG_NULL.

◆ widget_visible()

int widget_visible ( N_GUI_CTX * gui,
int id )
static
Examples
ex_gui_sectionlist.c.

Definition at line 99 of file ex_gui_sectionlist.c.

References gui, and n_gui_widget_is_visible().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ widget_y()

float widget_y ( N_GUI_CTX * gui,
int id )
static
Examples
ex_gui_sectionlist.c.

Definition at line 94 of file ex_gui_sectionlist.c.

References gui, n_gui_get_widget(), and N_GUI_WIDGET::y.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ failures

int failures = 0
static

Definition at line 50 of file ex_gui_sectionlist.c.

◆ log_level

int log_level = 3
static

Definition at line 49 of file ex_gui_sectionlist.c.