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

Go to the source code of this file.

Macros

#define ALLEGRO_UNSTABLE   1

Functions

static void click_at (N_GUI_CTX *gui, float x, float y)
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 void mouse_button (N_GUI_CTX *gui, int down, float x, float y)
static void on_button_click (int widget_id, void *user_data)
static int process_args (int argc, char **argv)

Variables

static int clicks = 0
static int failures = 0
static int log_level = 3

Macro Definition Documentation

◆ ALLEGRO_UNSTABLE

#define ALLEGRO_UNSTABLE   1

Definition at line 27 of file ex_gui_splitpane.c.

Function Documentation

◆ click_at()

void click_at ( N_GUI_CTX * gui,
float x,
float y )
static

Definition at line 101 of file ex_gui_splitpane.c.

References gui, and mouse_button().

Here is the call graph for this function:

◆ expect_close()

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

Definition at line 66 of file ex_gui_splitpane.c.

References failures, LOG_ERR, and n_log.

◆ expect_true()

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

Definition at line 75 of file ex_gui_splitpane.c.

References failures, LOG_ERR, and n_log.

◆ main()

◆ mouse_button()

void mouse_button ( N_GUI_CTX * gui,
int down,
float x,
float y )
static

Definition at line 91 of file ex_gui_splitpane.c.

References gui, and n_gui_process_event().

Here is the call graph for this function:

◆ on_button_click()

void on_button_click ( int widget_id,
void * user_data )
static

Definition at line 84 of file ex_gui_splitpane.c.

References clicks.

◆ process_args()

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

Definition at line 41 of file ex_gui_splitpane.c.

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

Variable Documentation

◆ clicks

int clicks = 0
static
Examples
ex_gui.c, and ex_gui_splitpane.c.

Definition at line 82 of file ex_gui_splitpane.c.

Referenced by main(), on_button_click(), and on_button_click().

◆ failures

int failures = 0
static

Definition at line 39 of file ex_gui_splitpane.c.

◆ log_level

int log_level = 3
static

Definition at line 38 of file ex_gui_splitpane.c.