GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_widget_markup.h
Go to the documentation of this file.
1//SPDX-License-Identifier: LGPL-2.0-or-later
2/*
3
4 Copyright (c) 2014-2024 Cyril Hrubis <metan@ucw.cz>
5
6 */
7
20#ifndef GP_WIDGET_MARKUP_H
21#define GP_WIDGET_MARKUP_H
22
23#include <utils/gp_markup.h>
26
27struct gp_widget_markup {
28 unsigned int min_size_em;
29 gp_markup_lines *lines;
30 gp_markup *markup;
31};
32
42gp_widget *gp_widget_markup_new(const char *markup, enum gp_markup_fmt fmt, int flags);
43
55 int flags, const char *markup_str);
56
57#endif /* GP_WIDGET_MARKUP_H */
A simple text markup format.
Justifies markup into lines.
A markup parsers.
gp_markup_fmt
Markup format to parse.
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 markup lines.
A text markup.
Definition gp_markup.h:97
A widget base.
Definition gp_widget.h:28