GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_widget_class_int.h
Go to the documentation of this file.
1//SPDX-License-Identifier: LGPL-2.0-or-later
2
3/*
4
5 Copyright (c) 2014-2024 Cyril Hrubis <metan@ucw.cz>
6
7 */
8
17#ifndef GP_WIDGET_CLASS_INT_H
18#define GP_WIDGET_CLASS_INT_H
19
29
30struct gp_widget_int {
31 int64_t min;
32 int64_t max;
33 int64_t val;
34
35 int alert:1;
36 int dir:2;
37
38 char payload[];
39};
40
49
58void gp_widget_int_set(gp_widget *self, int64_t min, int64_t max, int64_t val);
59
66void gp_widget_int_val_set(gp_widget *self, int64_t val);
67
74void gp_widget_int_max_set(gp_widget *self, int64_t max);
75
82void gp_widget_int_min_set(gp_widget *self, int64_t min);
83
91void gp_widget_int_set_range(gp_widget *self, int64_t min, int64_t max);
92
93#endif /* GP_WIDGET_CLASS_INT_H */
void gp_widget_int_set_range(gp_widget *self, int64_t min, int64_t max)
Sets an integer class widget limits.
void gp_widget_int_max_set(gp_widget *self, int64_t max)
Sets an integer class widget maximum.
int64_t gp_widget_int_val_get(gp_widget *self)
Returns an integer class widget value.
gp_widget_int_flags
A widget int direction.
@ GP_WIDGET_VERT
Widget is vertical.
@ GP_WIDGET_HORIZ
Widget is horizontal.
void gp_widget_int_set(gp_widget *self, int64_t min, int64_t max, int64_t val)
Sets an integer class widget value and limits.
void gp_widget_int_val_set(gp_widget *self, int64_t val)
Sets an integer class widget value.
void gp_widget_int_min_set(gp_widget *self, int64_t min)
Sets an integer class widget minimum.
A widget base.
Definition gp_widget.h:28