#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <allegro5/allegro_primitives.h>
#include "nilorea/n_common.h"
#include "nilorea/n_log.h"
#include "nilorea/n_gui.h"
Go to the source code of this file.
|
| static int | colour_distance (ALLEGRO_COLOR a, ALLEGRO_COLOR b) |
| | how far a pixel is from another, summed over the three channels
|
| static void | expect_true (const char *what, int ok) |
| | record one check
|
| static void | ink (N_GUI_CTX *gui, int x0, int y0, int w, int h, int *bands, int *widest_gap, int *first_right) |
| | draw the context into a memory bitmap and describe the ink inside a rectangle: how many separate bands of rows have any, the tallest gap between two bands, and the rightmost inked column of the first band
|
| int | main (int argc, char **argv) |
| static int | process_args (int argc, char **argv) |
| | parse -V LOG_LEVEL
|
◆ ALLEGRO_UNSTABLE
| #define ALLEGRO_UNSTABLE 1 |
◆ colour_distance()
| int colour_distance |
( |
ALLEGRO_COLOR | a, |
|
|
ALLEGRO_COLOR | b ) |
|
static |
◆ expect_true()
| void expect_true |
( |
const char * | what, |
|
|
int | ok ) |
|
static |
◆ ink()
| void ink |
( |
N_GUI_CTX * | gui, |
|
|
int | x0, |
|
|
int | y0, |
|
|
int | w, |
|
|
int | h, |
|
|
int * | bands, |
|
|
int * | widest_gap, |
|
|
int * | first_right ) |
|
static |
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 110 of file ex_gui_label_lines.c.
References expect_true(), failures, font, gui, ink(), LOG_ERR, log_level, n_gui_add_label(), n_gui_add_window(), N_GUI_ALIGN_CENTER, N_GUI_ALIGN_JUSTIFIED, N_GUI_ALIGN_LEFT, n_gui_destroy_ctx(), n_gui_label_fits(), n_gui_label_set_text(), n_gui_new_ctx(), n_gui_open_window(), n_gui_set_display_size(), N_GUI_WIN_FRAMELESS, n_gui_window_set_flags(), n_log, process_args(), right(), and set_log_level().
◆ process_args()
| int process_args |
( |
int | argc, |
|
|
char ** | argv ) |
|
static |
◆ failures
◆ log_level