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

idunn: text in a style. More...

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

Functions

idunn_widget_t * idunn_label (const char *text, idunn_text_t style)
 text in a style; it ends with "..." when it is too wide, or wraps.
void idunn_label_set_text (idunn_widget_t *label, const char *text)
void idunn_label_set_color (idunn_widget_t *label, idunn_color_t color)
void idunn_label_set_wrap (idunn_widget_t *label, bool wrap)

Detailed Description

idunn: text in a style.

one line ends with "..." when it is too wide; a wrapping label breaks its lines at spaces.

Function Documentation

◆ idunn_label()

idunn_widget_t * idunn_label ( const char * text,
idunn_text_t style )

text in a style; it ends with "..." when it is too wide, or wraps.

◆ idunn_label_set_text()

void idunn_label_set_text ( idunn_widget_t * label,
const char * text )

◆ idunn_label_set_color()

void idunn_label_set_color ( idunn_widget_t * label,
idunn_color_t color )

◆ idunn_label_set_wrap()

void idunn_label_set_wrap ( idunn_widget_t * label,
bool wrap )