ttypt/lam-ui.h(3)liblaminaVersion 1.0.0

NAME

ttypt/lam-ui.h - Public header for the liblamina UI system.

SYNOPSIS

#include 'lam.h'
#include <stdint.h>
#include <stddef.h>
#include <ttypt/corm.h>

Data Structures

struct lam_ui_style_t

Visual and layout style definition for a UI element.

Macros

#define LAM_UI_STYLE(div, field, val)

Assign a style field on a div.

Functions

int lam_css_parse (uint32_t ss, const char *css, size_t len)

Parse CSS text and append rules/variables into stylesheet handle ss.

int lam_css_load_file (uint32_t ss, const char *path)

Load a CSS file from disk and parse it into stylesheet handle ss.

void lam_css_sheet_free (uint32_t ss)

Free CSS rules and custom properties associated with stylesheet ss.

int lam_css_set_var (uint32_t ss, const char *name, const char *val)

Set or override a CSS custom property (e.g. --lamp")atruntime.

Detailed Description

Public header for the liblamina UI system.

Declares the API for liblamina's CSS-styled layout and rendering engine.

Author

Generated automatically by Doxygen for liblamina from the source code.