GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_widget_bool.h
Go to the documentation of this file.
1//SPDX-License-Identifier: LGPL-2.0-or-later
2
3/*
4
5 Copyright (c) 2014-2021 Cyril Hrubis <metan@ucw.cz>
6
7 */
8
16#ifndef GP_WIDGET_BOOL_H
17#define GP_WIDGET_BOOL_H
18
19struct gp_widget_bool {
20 const char *label;
21 int val;
22 int type;
23 char payload[];
24};
25
32int gp_widget_bool_get(gp_widget *self);
33
40void gp_widget_bool_set(gp_widget *self, int val);
41
47static inline void gp_widget_bool_toggle(gp_widget *self)
48{
50}
51
52#endif /* GP_WIDGET_BOOL_H */
int gp_widget_bool_get(gp_widget *self)
Returns a class bool widget value.
void gp_widget_bool_set(gp_widget *self, int val)
Sets a class bool widget value.
static void gp_widget_bool_toggle(gp_widget *self)
Toggles a class bool widget value.