GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
include
widgets
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
>
24
#include <
utils/gp_markup_parser.h
>
25
#include <
utils/gp_markup_justify.h
>
26
27
struct
gp_widget_markup {
28
unsigned
int
min_size_em;
29
gp_markup_lines
*lines;
30
gp_markup
*markup;
31
};
32
42
gp_widget
*
gp_widget_markup_new
(
const
char
*markup,
enum
gp_markup_fmt
fmt,
int
flags);
43
54
int
gp_widget_markup_set
(
gp_widget
*self,
enum
gp_markup_fmt
fmt,
55
int
flags,
const
char
*markup_str);
56
57
#endif
/* GP_WIDGET_MARKUP_H */
gp_markup.h
A simple text markup format.
gp_markup_justify.h
Justifies markup into lines.
gp_markup_parser.h
A markup parsers.
gp_markup_fmt
gp_markup_fmt
Markup format to parse.
Definition
gp_markup_parser.h:19
gp_widget_markup_new
gp_widget * gp_widget_markup_new(const char *markup, enum gp_markup_fmt fmt, int flags)
Allocates and initializes a markup widget.
gp_widget_markup_set
int gp_widget_markup_set(gp_widget *self, enum gp_markup_fmt fmt, int flags, const char *markup_str)
Sets new markup string.
gp_markup_lines
A markup lines.
Definition
gp_markup_justify.h:31
gp_markup
A text markup.
Definition
gp_markup.h:97
gp_widget
A widget base.
Definition
gp_widget.h:28
Generated by
1.9.8