Table of Contents
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
N_GUI_MD_STYLE
Colours and metrics. More...
#include "n_gui_md.h"
Public Attributes
| Name | |
|---|---|
| ALLEGRO_COLOR | text body text |
| ALLEGRO_COLOR | rule the rule under a heading and under a table's header row |
| ALLEGRO_COLOR | quote a blockquote's text, and its bar |
| unsigned | parse_flags n_markdown parse flags. |
| ALLEGRO_COLOR | link link text |
| float | indent how far a quote, a list item's text and a code block are indented |
| ALLEGRO_COLOR | heading heading text |
| int | hard_breaks Non-zero to break a paragraph where its source breaks, which is what a chat message wants: somebody pressed Return there and meant it. |
| float | col_min narrowest a table column may be squeezed to, in pixels |
| ALLEGRO_COLOR | code_bg the panel behind a fenced code block, and behind inline code |
| ALLEGRO_COLOR | code [code]() and code block text |
| float | cell_pad padding inside a table cell, left and right |
| float | block_gap vertical space between two blocks, in pixels |
Detailed Description
struct N_GUI_MD_STYLE;
Colours and metrics.
n_gui_md_style_default() fills one from a text and a background colour; a caller with a palette of its own should set the fields it cares about afterwards.
Public Attributes Documentation
variable text
ALLEGRO_COLOR text;
body text
variable rule
ALLEGRO_COLOR rule;
the rule under a heading and under a table's header row
variable quote
ALLEGRO_COLOR quote;
a blockquote's text, and its bar
variable parse_flags
unsigned parse_flags;
n_markdown parse flags.
N_MARKDOWN_ALL is what a document wants; zero is the safe chat subset, with a heading line and a table row left as the text they are.
variable link
ALLEGRO_COLOR link;
link text
variable indent
float indent;
how far a quote, a list item's text and a code block are indented
variable heading
ALLEGRO_COLOR heading;
heading text
variable hard_breaks
int hard_breaks;
Non-zero to break a paragraph where its source breaks, which is what a chat message wants: somebody pressed Return there and meant it.
Zero reflows the paragraph to the width it is given and treats a single newline as a space, which is what Markdown says and what a document wants – a manual is hard-wrapped at some column by whoever wrote it, and honouring that column in a pane of a different width breaks every paragraph in the wrong places. A fenced code block keeps its own line breaks either way.
variable col_min
float col_min;
narrowest a table column may be squeezed to, in pixels
variable code_bg
ALLEGRO_COLOR code_bg;
the panel behind a fenced code block, and behind inline code
variable code
ALLEGRO_COLOR code;
[code]() and code block text
variable cell_pad
float cell_pad;
padding inside a table cell, left and right
variable block_gap
float block_gap;
vertical space between two blocks, in pixels
Modules
- AABB3D
- ACCEPT_POOL
- ALLEGRO4
- ALLEGRO5
- ANIM_LIB
- ASTAR
- ATLAS_LIB
- AVRO
- CLOCK_SYNC
- COMMONS
- CONFIGFILE
- CYPHER_BASE64
- CYPHER_VIGENERE
- DEAD_RECKONING
- ENUMS
- EXCEPTIONS
- GAME_ENV
- GIT
- GUI
- HASH_TABLE
- ISOMETRIC_ENGINE
- LIST
- LOG
- LOGNODUP
- LZ4
- NETWORKING
- NETWORK_MSG
- N_COOKIES
- N_DIFF
- N_DIGEST
- N_DISK_CACHE
- N_DNS
- N_ECC
- N_ENTROPY
- N_FILES
- N_FLUIDS
- N_GUI_COLOR
- N_GUI_COLORWHEEL
- N_GUI_CURVE
- N_GUI_GRID
- N_GUI_POPUP
- N_HEX
- N_HTTP3
- N_HTTP_COOKIE
- N_HTTP_FORM
- N_HTTP_MIME
- N_HTTP_REQ
- N_HTTP_RESP
- N_HTTP_ROUTER
- N_HTTP_SERVER
- N_ICC
- N_JSON
- N_KAFKA
- N_LINALG
- N_MODULE
- N_OPENSSL_COMPAT
- N_PRETTY
- N_PTH
- N_QUERY
- N_RANDOM
- N_SHA256
- N_STR
- N_TIFF
- N_TIME
- N_USER
- N_X509
- N_ZIP
- PARTICLES
- PCRE
- PHYSICS
- SIGNALS
- STACK
- THREADS
- TRAJECTORY
- TREE
- ZLIB