Atrinik Client  4.0
Text flags


#define TEXT_MARKUP   1
#define TEXT_WORD_WRAP   2
#define TEXT_SOLID   4
#define TEXT_HEIGHT   16
#define TEXT_OUTLINE   128
#define TEXT_LINES_CALC   256
#define TEXT_LINES_SKIP   512
#define TEXT_NO_FONT_CHANGE   1024
#define TEXT_WIDTH   2048
#define TEXT_MAX_WIDTH   4096

Detailed Description

Various text flags for controlling behavior of text_show().

Macro Definition Documentation


Align the text to center of box's width.

Definition at line 230 of file text.h.

#define TEXT_HEIGHT   16

Instead of quitting drawing when maximum height passed was reached, continue going on, but without doing any more drawing, and store the final height in box->h (where the initial height limit came from).

If this flag is passed, you can also specify skipping # of rows in the box's 'y'. Even if you don't want to skip any rows, you must still initialize the y member of the box structure to 0, in order to avoid uninitialized reads.

Definition at line 241 of file text.h.

#define TEXT_LINES_CALC   256

Store number of lines in box->h.

Definition at line 259 of file text.h.

#define TEXT_LINES_SKIP   512

Skip first box->y lines.

Definition at line 263 of file text.h.

#define TEXT_MARKUP   1

Parse markup, otherwise it will be rendered as normal text.

Definition at line 224 of file text.h.

#define TEXT_MAX_WIDTH   4096

Calculate maximum width of the text, taking multi-line text into consideration.

Definition at line 277 of file text.h.


Do not allow color changing using markup.

Definition at line 250 of file text.h.

#define TEXT_NO_FONT_CHANGE   1024

Do not allow font changing using markup.

Definition at line 267 of file text.h.

#define TEXT_OUTLINE   128

Show a black outline around the text (can be changed to different color using <o> markup.

Definition at line 255 of file text.h.

#define TEXT_SOLID   4

Render the text in solid mode (faster, but worse looking).

Definition at line 228 of file text.h.


Vertically center the text to that of the passed box's height. Note that this will NOT take font tag changing into account.

Definition at line 246 of file text.h.

#define TEXT_WIDTH   2048

Like TEXT_WORD_WRAP, but will stop drawing when the characters width would be more than box->w.

Definition at line 272 of file text.h.

#define TEXT_WORD_WRAP   2

Wrap words, otherwise only newlines.

Definition at line 226 of file text.h.