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

idunn: a small control with its label to the right (check box, radio, switch), 10 pixels apart as in the preview. More...

#include "idunn_internal.h"

Macros

#define GAP   10

Functions

void idunn_option_measure (idunn_widget_t *w, int32_t control_w, int32_t control_h, const char *label, int32_t *width, int32_t *height)
gfx_rect_t idunn_option_control (const idunn_widget_t *w, int32_t control_w, int32_t control_h)
void idunn_option_draw_label (idunn_widget_t *w, gfx_buffer_t *buf, int32_t control_w, const char *label)
gfx_color_t idunn_option_border (const idunn_theme_t *t)
 the border of check boxes and radios (firmer than inputs in dark mode)
void idunn_draw_shadow (const idunn_theme_t *t, gfx_buffer_t *buf, gfx_rect_t box, int32_t radius, idunn_shadow_t which)
 all the layers of a shadow token around a round box

Detailed Description

idunn: a small control with its label to the right (check box, radio, switch), 10 pixels apart as in the preview.

a click on the label is a click on the control.

Macro Definition Documentation

◆ GAP

#define GAP   10

Function Documentation

◆ idunn_option_measure()

void idunn_option_measure ( idunn_widget_t * w,
int32_t control_w,
int32_t control_h,
const char * label,
int32_t * width,
int32_t * height )

◆ idunn_option_control()

gfx_rect_t idunn_option_control ( const idunn_widget_t * w,
int32_t control_w,
int32_t control_h )

◆ idunn_option_draw_label()

void idunn_option_draw_label ( idunn_widget_t * w,
gfx_buffer_t * buf,
int32_t control_w,
const char * label )

◆ idunn_option_border()

gfx_color_t idunn_option_border ( const idunn_theme_t * t)

the border of check boxes and radios (firmer than inputs in dark mode)

◆ idunn_draw_shadow()

void idunn_draw_shadow ( const idunn_theme_t * t,
gfx_buffer_t * buf,
gfx_rect_t box,
int32_t radius,
idunn_shadow_t which )

all the layers of a shadow token around a round box