Atrinik Client 2.5
Defines
Text flags

Defines

#define TEXT_MARKUP   1
#define TEXT_WORD_WRAP   2
#define TEXT_SOLID   4
#define TEXT_ALIGN_CENTER   8
#define TEXT_HEIGHT   16
#define TEXT_VALIGN_CENTER   32
#define TEXT_NO_COLOR_CHANGE   64
#define TEXT_OUTLINE   128
#define TEXT_LINES_CALC   256
#define TEXT_LINES_SKIP   512
#define TEXT_NO_FONT_CHANGE   1024
#define TEXT_WIDTH   2048

Detailed Description

Various text flags for controlling behavior of string_blt().


Define Documentation

#define TEXT_ALIGN_CENTER   8

Align the text to center of box's width.

Definition at line 220 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 230 of file text.h.

#define TEXT_LINES_CALC   256

Store number of lines in box->h.

Definition at line 244 of file text.h.

#define TEXT_LINES_SKIP   512

Skip first box->y lines.

Definition at line 247 of file text.h.

#define TEXT_MARKUP   1

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

Definition at line 214 of file text.h.

#define TEXT_NO_COLOR_CHANGE   64

Do not allow color changing using markup.

Definition at line 237 of file text.h.

#define TEXT_NO_FONT_CHANGE   1024

Do not allow font changing using markup.

Definition at line 250 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 241 of file text.h.

#define TEXT_SOLID   4

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

Definition at line 218 of file text.h.

#define TEXT_VALIGN_CENTER   32

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 234 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 254 of file text.h.

#define TEXT_WORD_WRAP   2

Wrap words, otherwise only newlines.

Definition at line 216 of file text.h.