GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
include
widgets
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
23
enum
gp_widget_int_flags
{
25
GP_WIDGET_HORIZ
= 0,
27
GP_WIDGET_VERT
= 1
28
};
29
30
struct
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
48
int64_t
gp_widget_int_val_get
(
gp_widget
*self);
49
58
void
gp_widget_int_set
(
gp_widget
*self, int64_t min, int64_t max, int64_t val);
59
66
void
gp_widget_int_val_set
(
gp_widget
*self, int64_t val);
67
74
void
gp_widget_int_max_set
(
gp_widget
*self, int64_t max);
75
82
void
gp_widget_int_min_set
(
gp_widget
*self, int64_t min);
83
91
void
gp_widget_int_set_range
(
gp_widget
*self, int64_t min, int64_t max);
92
93
#endif
/* GP_WIDGET_CLASS_INT_H */
gp_widget_int_set_range
void gp_widget_int_set_range(gp_widget *self, int64_t min, int64_t max)
Sets an integer class widget limits.
gp_widget_int_max_set
void gp_widget_int_max_set(gp_widget *self, int64_t max)
Sets an integer class widget maximum.
gp_widget_int_val_get
int64_t gp_widget_int_val_get(gp_widget *self)
Returns an integer class widget value.
gp_widget_int_flags
gp_widget_int_flags
A widget int direction.
Definition
gp_widget_class_int.h:23
GP_WIDGET_VERT
@ GP_WIDGET_VERT
Widget is vertical.
Definition
gp_widget_class_int.h:27
GP_WIDGET_HORIZ
@ GP_WIDGET_HORIZ
Widget is horizontal.
Definition
gp_widget_class_int.h:25
gp_widget_int_set
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.
gp_widget_int_val_set
void gp_widget_int_val_set(gp_widget *self, int64_t val)
Sets an integer class widget value.
gp_widget_int_min_set
void gp_widget_int_min_set(gp_widget *self, int64_t min)
Sets an integer class widget minimum.
gp_widget
A widget base.
Definition
gp_widget.h:28
Generated by
1.9.8