GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
A text markup widget. More...
#include <utils/gp_markup.h>
#include <utils/gp_markup_parser.h>
#include <utils/gp_markup_justify.h>
Go to the source code of this file.
Functions | |
gp_widget * | gp_widget_markup_new (const char *markup, enum gp_markup_fmt fmt, int flags) |
Allocates and initializes a markup widget. | |
int | gp_widget_markup_set (gp_widget *self, enum gp_markup_fmt fmt, int flags, const char *markup_str) |
Sets new markup string. | |
A text markup widget.
Attribute | Type | Default | Description |
---|---|---|---|
fmt | string | "gfxprim" | A markup format enum gp_markup_fmt. |
text | string | Markup text. |
Definition in file gp_widget_markup.h.
gp_widget * gp_widget_markup_new | ( | const char * | markup, |
enum gp_markup_fmt | fmt, | ||
int | flags | ||
) |
Allocates and initializes a markup widget.
markup | A markup string. |
fmt | A markup format. |
flags | Markup parser flags, depends on the markup format. |
int gp_widget_markup_set | ( | gp_widget * | self, |
enum gp_markup_fmt | fmt, | ||
int | flags, | ||
const char * | markup_str | ||
) |
Sets new markup string.
self | A markup widget. |
fmt | A markup format. |
flags | Markup parser flags, depends on the markup format. |
markup_str | New markup string. |