The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
radio.c File Reference

idunn: a radio group: choices with 16 pixel circles, one of them chosen (an accent ring and an 8 pixel dot). More...

#include "idunn_internal.h"
#include <stdlib.h>
#include <string.h>

Macros

#define SIZE   16
#define DOT   8
#define GAP_COL   8
#define GAP_ROW   16

Functions

idunn_widget_t * idunn_radio_group (const char *const *labels, int count, int chosen, idunn_callback_t on_change, void *data)
 a group of choices with round buttons, one chosen; one Tab stop, the arrows move the choice.
int idunn_radio_group_chosen (const idunn_widget_t *group)
void idunn_radio_group_choose (idunn_widget_t *group, int chosen)
void idunn_radio_group_set_row (idunn_widget_t *group, bool row)

Detailed Description

idunn: a radio group: choices with 16 pixel circles, one of them chosen (an accent ring and an 8 pixel dot).

the group is one stop for Tab; the arrows move the choice.

Macro Definition Documentation

◆ SIZE

#define SIZE   16

◆ DOT

#define DOT   8

◆ GAP_COL

#define GAP_COL   8

◆ GAP_ROW

#define GAP_ROW   16

Function Documentation

◆ idunn_radio_group()

idunn_widget_t * idunn_radio_group ( const char *const * labels,
int count,
int chosen,
idunn_callback_t on_change,
void * data )

a group of choices with round buttons, one chosen; one Tab stop, the arrows move the choice.

in a column (or a row: idunn_radio_group_set_row).

Parameters
chosenthe index of the chosen one, or -1 for none.

◆ idunn_radio_group_chosen()

int idunn_radio_group_chosen ( const idunn_widget_t * group)

◆ idunn_radio_group_choose()

void idunn_radio_group_choose ( idunn_widget_t * group,
int chosen )

◆ idunn_radio_group_set_row()

void idunn_radio_group_set_row ( idunn_widget_t * group,
bool row )