new_ml_text_label

NAME
SYNOPSIS
DESCRIPTION
AUTHOR
LICENSE
VERSION
SEE ALSO

NAME

new_ml_text_label, ml_text_label_set_text_align, ml_text_label_set_font_weight, ml_text_label_set_font_size, ml_text_label_set_text - monolith text label widget

SYNOPSIS

#include <ml_text_label.h>

ml_text_label new_ml_text_label (pool, const char *text);
void ml_text_label_set_text_align (ml_text_label, const char *);
void ml_text_label_set_font_weight (ml_text_label, const char *);
void ml_text_label_set_font_size (ml_text_label, const char *);
void ml_text_label_set_text (ml_text_label, const char *);

DESCRIPTION

Text labels are simple strings or paragraphs of text. Unlike the ml_label widget, HTML sequences are escaped before being sent to the browser, so ml_text_labels can contain <, >, & and so on and these will be displayed correctly.
Text labels allow control over the style, size and other aspects of how the text appears.
new_ml_text_label creates a new text label widget.
ml_text_label_set_text_align sets the text-align style of the text label. Common alignments are "left", "right" and "justify".
ml_text_label_set_font_weight sets the font-weight style of the text label. Common weights are "normal" and "bold".
ml_text_label_set_font_size sets the font-size style of the text label. Common sizes are "small", "medium" and "large".
ml_text_label_(set|get)_text updates the text displayed on the label.

AUTHOR

Richard Jones <rich@annexia.org>

LICENSE

GNU LGPL (see http://www.gnu.org/)

VERSION

monolith-1.0.0

SEE ALSO

new_ml_widget(3), W3C CSS2 recommendation.