GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
include
widgets
gp_widget_gfx.h
1
//SPDX-License-Identifier: LGPL-2.0-or-later
2
3
/*
4
5
Copyright (c) 2014-2020 Cyril Hrubis <metan@ucw.cz>
6
7
*/
8
9
#ifndef GP_WIDGET_GFX_H
10
#define GP_WIDGET_GFX_H
11
12
#include <
widgets/gp_widget.h
>
13
#include <
core/gp_core.h
>
14
#include <gfx/gp_gfx.h>
15
#include <
text/gp_text.h
>
16
17
void
gp_text_fit(
gp_pixmap
*pix,
const
gp_text_style
*style,
18
gp_coord
x,
gp_coord
y,
gp_size
w,
int
align,
19
gp_pixel
fg_color,
gp_pixel
bg_color,
const
char
*str);
20
21
void
gp_fill_rrect_xywh(
gp_pixmap
*pix,
gp_coord
x,
gp_coord
y,
gp_size
w,
gp_size
h,
22
gp_pixel
bg_color,
gp_pixel
fg_color,
gp_pixel
fr_color);
23
24
void
gp_fill_rrect_xywh_focused(
gp_pixmap
*pix,
gp_coord
x,
gp_coord
y,
gp_size
w,
gp_size
h,
25
gp_pixel
bg_color,
gp_pixel
fg_color,
gp_pixel
fr_color,
int
focused);
26
27
void
gp_rrect_xywh(
gp_pixmap
*pix,
gp_coord
x,
gp_coord
y,
28
gp_size
w,
gp_size
h,
gp_pixel
color);
29
30
void
gp_triangle_up(
gp_pixmap
*pix,
gp_coord
x_center,
gp_coord
y_center,
31
gp_size
base,
gp_pixel
color);
32
33
void
gp_triangle_down(
gp_pixmap
*pix,
gp_coord
x_center,
gp_coord
y_center,
34
gp_size
base,
gp_pixel
color);
35
36
void
gp_triangle_updown(
gp_pixmap
*pix,
gp_coord
x_center,
gp_coord
y_center,
37
gp_size
base,
gp_pixel
color);
38
39
#endif
/* GP_WIDGET_GFX_H */
gp_pixel
uint32_t gp_pixel
Pixel integer value.
Definition
gp_types.h:33
gp_coord
int gp_coord
Integer type for coordinates i.e. x, y, ...
Definition
gp_types.h:19
gp_size
unsigned int gp_size
Integer type for sizes i.e. w, h, ...
Definition
gp_types.h:24
gp_core.h
Includes all core headers.
gp_text.h
A text drawing functions.
gp_widget.h
A widget implementation base.
gp_pixmap
A pixmap buffer.
Definition
gp_pixmap.h:33
gp_text_style
A text style.
Definition
gp_text_style.h:39
Generated by
1.9.8