Html_Element_Text_Create()
Abstract
Creates an element to represent a block of text.
Syntax
Html_Element_Text_Create (text, font, options)
| Argument | Type | Description |
|---|---|---|
text |
const char * |
the text that will appear on the page |
font |
HtmlT_Font |
the font to be used |
options |
int |
options combined as a bitwise OR (see Details) |
Return Type
void
No return value.
Header
html.h
Details
This is a more general text element than what is created by Html_Element_Text_Line_Create(). Html_Element_Text_Create() lets the user specify an HTML font in addition to other options. The options for Html_Element_Text_Create() are
HTMLC_TEXT_LINE_OPT_HEADER— makes the text line a header line (uses<H1>tag)HTMLC_TEXT_LINE_OPT_HEADER2— uses<H2>tag for the text lineHTMLC_TEXT_LINE_OPT_HEADER3— uses<H3>tag for the text lineHTMLC_TEXT_LINE_OPT_HEADER4— uses<H4>tag for the text lineHTMLC_TEXT_LINE_OPT_HEADER5— uses<H5>tag for the text lineHTMLC_TEXT_LINE_OPT_HEADER6— uses<H6>tag for the text lineHTMLC_TEXT_LINE_OPT_LINEBREAK— causes a line break to appear after the text lineHTMLC_TEXT_LINE_OPT_MONOSPACE— causes a line to be displayed in a monospaced font. An explicit font specification takes precedence.HTMLC_TEXT_LINE_OPT_LALIGN— left align the text line element contentHTMLC_TEXT_LINE_OPT_RALIGN— right align the text line element contentHTMLC_TEXT_LINE_OPT_CENTER— center align the text line element content