Html_Element_Text_Line_Create()
Abstract
Creates a line of text.
Syntax
Html_Element_Text_Line_Create (text_line, options)
| Argument | Type | Description |
|---|---|---|
text_line |
const char * |
the text to display on the page |
options |
int |
desired options combined as a bitwise OR (see Details) |
Return Type
HtmlT_Element *
the element that was created
Header
html.h
Details
Creates an HtmlT_Element that represents a line of text. This uses the default HTML font. Multiple options are indicated by passing a bitwise OR of all the desired options. The options for this 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