GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
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
39
51static 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
65static inline gp_widget *
70
105static inline gp_widget *
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{
112 memb_cnt, memb_size, memb_off,
113 sel, flags);
114}
115
116#endif /* GP_WIDGET_SPINBUTTON_H */
@ GP_WIDGET_SPINBUTTON
A spinnbutton widget.
Definition gp_widget.h:219
A choice class for widgets.
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 * 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 * 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.
static gp_widget * gp_widget_spinbutton_ops_new(const struct gp_widget_choice_ops *ops)
Creates a spinbutton widget based on widget ops.
static gp_widget * gp_widget_spinbutton_new(const char *choices[], size_t cnt, size_t sel)
Allocates and initializes new spinbutton widget.
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.
A widget base.
Definition gp_widget.h:28