Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
ex_gui_textarea_selection.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_textarea_selection.c:

Go to the source code of this file.

Macros

#define ALLEGRO_UNSTABLE   1

Functions

static void ctrl_key (N_GUI_CTX *gui, int keycode)
 a Ctrl+key press as a text area receives it
static void expect_true (const char *what, int ok)
 record one check
int main (int argc, char **argv)
static int process_args (int argc, char **argv)
 parse -V LOG_LEVEL

Variables

static int failures = 0
static int log_level = 3

Macro Definition Documentation

◆ ALLEGRO_UNSTABLE

#define ALLEGRO_UNSTABLE   1

Definition at line 17 of file ex_gui_textarea_selection.c.

Function Documentation

◆ ctrl_key()

void ctrl_key ( N_GUI_CTX * gui,
int keycode )
static

a Ctrl+key press as a text area receives it

Definition at line 56 of file ex_gui_textarea_selection.c.

References gui, and n_gui_process_event().

Here is the call graph for this function:

◆ expect_true()

void expect_true ( const char * what,
int ok )
static

record one check

Definition at line 32 of file ex_gui_textarea_selection.c.

References failures, LOG_ERR, LOG_INFO, and n_log.

◆ main()

◆ process_args()

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

parse -V LOG_LEVEL

Definition at line 42 of file ex_gui_textarea_selection.c.

References log_level.

Variable Documentation

◆ failures

int failures = 0
static

Definition at line 29 of file ex_gui_textarea_selection.c.

◆ log_level

int log_level = 3
static

Definition at line 28 of file ex_gui_textarea_selection.c.