GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
include
widgets
gp_widget_spinbutton.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
35
#ifndef GP_WIDGET_SPINBUTTON_H
36
#define GP_WIDGET_SPINBUTTON_H
37
38
#include <
widgets/gp_widget_class_choice.h
>
39
51
static
inline
gp_widget
*
gp_widget_spinbutton_new
(
const
char
*choices[],
52
size_t
cnt,
size_t
sel)
53
{
54
return
gp_widget_choice_new
(
GP_WIDGET_SPINBUTTON
, choices, cnt, sel);
55
}
56
57
65
static
inline
gp_widget
*
66
gp_widget_spinbutton_ops_new
(
const
struct
gp_widget_choice_ops
*ops)
67
{
68
return
gp_widget_choice_ops_new
(
GP_WIDGET_SPINBUTTON
, ops);
69
}
70
105
static
inline
gp_widget
*
106
gp_widget_spinbutton_arr_new
(
const
void
*array,
107
size_t
memb_cnt, uint16_t memb_size,
108
uint16_t memb_off,
size_t
sel,
109
enum
gp_widget_choice_flags flags)
110
{
111
return
gp_widget_choice_arr_new
(
GP_WIDGET_SPINBUTTON
, array,
112
memb_cnt, memb_size, memb_off,
113
sel, flags);
114
}
115
116
#endif
/* GP_WIDGET_SPINBUTTON_H */
GP_WIDGET_SPINBUTTON
@ GP_WIDGET_SPINBUTTON
A spinnbutton widget.
Definition
gp_widget.h:194
gp_widget_class_choice.h
A choice class for widgets.
gp_widget_choice_new
gp_widget * gp_widget_choice_new(enum gp_widget_type widget_type, const char *choices[], size_t cnt, size_t sel)
Allocates and initializes new choice widget.
gp_widget_choice_arr_new
gp_widget * gp_widget_choice_arr_new(enum gp_widget_type widget_type, const void *array, size_t memb_cnt, uint16_t memb_size, uint16_t memb_off, size_t sel, enum gp_widget_choice_flags flags)
Creates a choice widget based on a static array.
gp_widget_choice_ops_new
gp_widget * gp_widget_choice_ops_new(enum gp_widget_type widget_type, const struct gp_widget_choice_ops *ops)
Creates a choice widget based on widget ops.
gp_widget_spinbutton_ops_new
static gp_widget * gp_widget_spinbutton_ops_new(const struct gp_widget_choice_ops *ops)
Creates a spinbutton widget based on widget ops.
Definition
gp_widget_spinbutton.h:66
gp_widget_spinbutton_new
static gp_widget * gp_widget_spinbutton_new(const char *choices[], size_t cnt, size_t sel)
Allocates and initializes new spinbutton widget.
Definition
gp_widget_spinbutton.h:51
gp_widget_spinbutton_arr_new
static gp_widget * gp_widget_spinbutton_arr_new(const void *array, size_t memb_cnt, uint16_t memb_size, uint16_t memb_off, size_t sel, enum gp_widget_choice_flags flags)
Creates a spinbutton widget based on a static array.
Definition
gp_widget_spinbutton.h:106
gp_widget_choice_ops
A choice widget ops.
Definition
gp_widget_class_choice.h:35
gp_widget
A widget base.
Definition
gp_widget.h:28
Generated by
1.9.8