GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
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
17void 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
21void 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
24void 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
27void gp_rrect_xywh(gp_pixmap *pix, gp_coord x, gp_coord y,
28 gp_size w, gp_size h, gp_pixel color);
29
30void gp_triangle_up(gp_pixmap *pix, gp_coord x_center, gp_coord y_center,
31 gp_size base, gp_pixel color);
32
33void gp_triangle_down(gp_pixmap *pix, gp_coord x_center, gp_coord y_center,
34 gp_size base, gp_pixel color);
35
36void 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 */
uint32_t gp_pixel
Pixel integer value.
Definition gp_types.h:33
int gp_coord
Integer type for coordinates i.e. x, y, ...
Definition gp_types.h:19
unsigned int gp_size
Integer type for sizes i.e. w, h, ...
Definition gp_types.h:24
Includes all core headers.
A pixmap buffer.
Definition gp_pixmap.h:33