GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
include
widgets
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
38
#include <
widgets/gp_widget_class_choice.h
>
39
49
static
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
62
static
inline
gp_widget
*
63
gp_widget_radiobutton_ops_new
(
const
struct
gp_widget_choice_ops
*ops)
64
{
65
return
gp_widget_choice_ops_new
(
GP_WIDGET_RADIOBUTTON
, ops);
66
}
67
102
static
inline
gp_widget
*
103
gp_widget_radiobutton_arr_new
(
const
void
*array,
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
{
108
return
gp_widget_choice_arr_new
(
GP_WIDGET_RADIOBUTTON
, array,
109
memb_cnt, memb_size, memb_off,
110
sel, flags);
111
}
112
113
#endif
/* GP_WIDGET_RADIOBUTTON_H */
GP_WIDGET_RADIOBUTTON
@ GP_WIDGET_RADIOBUTTON
A radiobutton widget.
Definition
gp_widget.h:192
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_radiobutton_new
static gp_widget * gp_widget_radiobutton_new(const char *choices[], size_t cnt, size_t sel)
Allocates and initializes new radiobutton widget.
Definition
gp_widget_radiobutton.h:49
gp_widget_radiobutton_arr_new
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.
Definition
gp_widget_radiobutton.h:103
gp_widget_radiobutton_ops_new
static gp_widget * gp_widget_radiobutton_ops_new(const struct gp_widget_choice_ops *ops)
Creates a radiobutton widget based on widget ops.
Definition
gp_widget_radiobutton.h:63
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