GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_widget_radiobutton.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_RADIOBUTTON_H
36#define GP_WIDGET_RADIOBUTTON_H
37
39
49static inline gp_widget *gp_widget_radiobutton_new(const char *choices[],
50 size_t cnt, size_t sel)
51{
52 return gp_widget_choice_new(GP_WIDGET_RADIOBUTTON, choices, cnt, sel);
53}
54
62static inline gp_widget *
67
102static inline gp_widget *
104 size_t memb_cnt, uint16_t memb_size,
105 uint16_t memb_off, size_t sel,
106 enum gp_widget_choice_flags flags)
107{
109 memb_cnt, memb_size, memb_off,
110 sel, flags);
111}
112
113#endif /* GP_WIDGET_RADIOBUTTON_H */
@ GP_WIDGET_RADIOBUTTON
A radiobutton widget.
Definition gp_widget.h:217
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_radiobutton_new(const char *choices[], size_t cnt, size_t sel)
Allocates and initializes new radiobutton widget.
static gp_widget * gp_widget_radiobutton_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 radiobutton widget based on a static array.
static gp_widget * gp_widget_radiobutton_ops_new(const struct gp_widget_choice_ops *ops)
Creates a radiobutton widget based on widget ops.
A widget base.
Definition gp_widget.h:28