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

idunn: a badge: small medium text in a pill, 22 pixels high, in four variants (default, secondary, outline, destructive). More...

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

Macros

#define HEIGHT   22
#define PAD   8

Functions

idunn_widget_t * idunn_badge (const char *text, idunn_badge_t variant)
 a badge: a short word in a small pill

Detailed Description

idunn: a badge: small medium text in a pill, 22 pixels high, in four variants (default, secondary, outline, destructive).

Macro Definition Documentation

◆ HEIGHT

#define HEIGHT   22

◆ PAD

#define PAD   8

Function Documentation

◆ idunn_badge()

idunn_widget_t * idunn_badge ( const char * text,
idunn_badge_t variant )

a badge: a short word in a small pill