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

idunn: a check box, 16 pixels, with a label. More...

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

Macros

#define SIZE   16
#define MARK   12

Functions

idunn_widget_t * idunn_check_box (const char *label, bool checked, idunn_callback_t on_change, void *data)
 a check box with a label to its right (a click on the label clicks it).
idunn_check_t idunn_check_box_state (const idunn_widget_t *box)
void idunn_check_box_set_state (idunn_widget_t *box, idunn_check_t state)

Detailed Description

idunn: a check box, 16 pixels, with a label.

checked: an accent fill and a white check; mixed: a dash.

Macro Definition Documentation

◆ SIZE

#define SIZE   16

◆ MARK

#define MARK   12

Function Documentation

◆ idunn_check_box()

idunn_widget_t * idunn_check_box ( const char * label,
bool checked,
idunn_callback_t on_change,
void * data )

a check box with a label to its right (a click on the label clicks it).

on_change comes after a click or Space.

◆ idunn_check_box_state()

idunn_check_t idunn_check_box_state ( const idunn_widget_t * box)

◆ idunn_check_box_set_state()

void idunn_check_box_set_state ( idunn_widget_t * box,
idunn_check_t state )