Data Structures | |
struct | Ewl_Text |
Inherits from the Ewl_Widget class and extends it to provide for multi-line text layout, obstacle wrapping, and a variety of formatting. More... | |
struct | Ewl_Text |
Inherits from the Ewl_Widget class and extends it to provide for multi-line text layout, obstacle wrapping, and a variety of formatting. More... | |
Defines | |
#define | EWL_TEXT(text) ((Ewl_Text *) text) |
Typecasts a pointer to an Ewl_Text pointer. | |
Typedefs | |
typedef Ewl_Text | Ewl_Text |
Provides for layout of text across multiple lines, as well as formatting portions of the text in different ways, and wrapping around obstacles. | |
Functions | |
Ewl_Widget * | ewl_text_new (char *text) |
Allocate a new text area widget. | |
void | ewl_text_init (Ewl_Text *ta, char *text) |
Initialize the fields and callbacks of a text area. | |
void | ewl_text_text_set (Ewl_Text *ta, char *text) |
Set the text of a text area widget. | |
void | ewl_text_text_prepend (Ewl_Text *ta, char *text) |
Append text to a text area widget. | |
void | ewl_text_text_append (Ewl_Text *ta, char *text) |
Append text to a text area widget. | |
void | ewl_text_text_insert (Ewl_Text *ta, char *text, int index) |
Append text to a text area widget. | |
char * | ewl_text_text_get (Ewl_Text *ta) |
Retrieve the text of a text widget. | |
int | ewl_text_length_get (Ewl_Text *ta) |
Retrieve the length of the text displayed by the text widget. | |
void | ewl_text_font_set (Ewl_Text *ta, char *font, int size) |
Changes the currently applied font of the text to specified values. | |
char * | ewl_text_font_get (Ewl_Text *ta) |
Retrieve the name of the currently used font. | |
void | ewl_text_style_set (Ewl_Text *ta, char *style) |
Changes the currently applied style of the text to specified values. | |
char * | ewl_text_style_get (Ewl_Text *ta) |
Retrieves the currently used text style from a text widget. | |
void | ewl_text_color_set (Ewl_Text *ta, int r, int g, int b, int a) |
Changes the currently applied color of the text to specified values. | |
void | ewl_text_align_set (Ewl_Text *ta, unsigned int align) |
Changes the currently applied alignment of the text to specified value. | |
unsigned int | ewl_text_align_get (Ewl_Text *ta) |
Retrieves the currently used text alignment from a text widget. | |
void | ewl_text_index_geometry_map (Ewl_Text *ta, int index, int *xx, int *yy, int *ww, int *hh) |
Maps a character index to a set of coordinates and sizes. | |
int | ewl_text_coord_index_map (Ewl_Text *ta, int x, int y) |
Finds the index of the character under the specified coordinates. |
|
Retrieves the currently used text alignment from a text widget.
|
|
Changes the currently applied alignment of the text to specified value.
|
|
Changes the currently applied color of the text to specified values.
|
|
Finds the index of the character under the specified coordinates.
|
|
Retrieve the name of the currently used font.
|
|
Changes the currently applied font of the text to specified values.
|
|
Maps a character index to a set of coordinates and sizes.
|
|
Initialize the fields and callbacks of a text area.
|
|
Retrieve the length of the text displayed by the text widget.
|
|
Allocate a new text area widget.
|
|
Retrieves the currently used text style from a text widget.
|
|
Changes the currently applied style of the text to specified values.
|
|
Append text to a text area widget.
|
|
Retrieve the text of a text widget.
|
|
Append text to a text area widget.
|
|
Append text to a text area widget.
|
|
Set the text of a text area widget.
|