![]() |
Nilorea Library
C utilities for networking, threading, graphics
|
#include "nilorea/n_gui.h"#include "nilorea/n_gui_md.h"#include "nilorea/n_log.h"#include <allegro5/allegro_font.h>#include <allegro5/allegro_image.h>#include <allegro5/allegro_primitives.h>#include <allegro5/allegro_ttf.h>#include <stdio.h>#include <string.h>Go to the source code of this file.
Macros | |
| #define | CHECK(cond, msg) |
Functions | |
| static ALLEGRO_FONT * | face (const char *name, int px) |
| Load a face, trying the usual places; NULL when there is none, which the renderer is documented to survive. | |
| int | main (int argc, char **argv) |
Variables | |
| static int | failures = 0 |
| static const char * | SAMPLE |
| Every block kind at once, so one measure covers the lot. | |
| #define CHECK | ( | cond, | |
| msg ) |
Definition at line 51 of file ex_gui_md.c.
|
static |
Load a face, trying the usual places; NULL when there is none, which the renderer is documented to survive.
Definition at line 87 of file ex_gui_md.c.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 105 of file ex_gui_md.c.
References N_GUI_MD_FONTS::bold, N_GUI_MD_FONTS::bolditalic, CHECK, display, face(), failures, gui, N_GUI_MD_FONTS::h1, N_GUI_MD_FONTS::h2, N_GUI_MD_FONTS::h3, N_GUI_MD_STYLE::hard_breaks, N_GUI_MD_FONTS::italic, N_GUI_MD_STYLE::link, LOG_ERR, LOG_NOTICE, N_GUI_MD_FONTS::mono, n_gui_add_label(), n_gui_add_markdownview(), n_gui_add_window(), N_GUI_ALIGN_LEFT, n_gui_destroy_ctx(), n_gui_draw(), n_gui_markdownview_content_height(), n_gui_markdownview_get_scroll(), n_gui_markdownview_get_text(), n_gui_markdownview_scroll_to(), n_gui_markdownview_set_text(), n_gui_markdownview_style(), n_gui_md_draw(), n_gui_md_height(), n_gui_md_link_at(), n_gui_md_style_default(), n_gui_new_ctx(), n_log, N_MARKDOWN_ALL, N_GUI_MD_STYLE::parse_flags, N_GUI_MD_FONTS::regular, and set_log_level().
|
static |
Definition at line 49 of file ex_gui_md.c.