NAME
lam_ui_core - liblamina UI initialization and stylesheet
SYNOPSIS
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
Function Documentation
int lam_css_load_file (uint32_t ss, const char * path)
Load a CSS file from disk and parse it into stylesheet handle ss.
Returns
Number of rules parsed, or -1 on error.
int lam_css_parse (uint32_t ss, const char * css, size_t len)
Parse CSS text and append rules/variables into stylesheet handle ss.
Returns
Number of rules parsed, or -1 on error.
int lam_css_set_var (uint32_t ss, const char * name, const char * val)
Set or override a CSS custom property (e.g. "--lamp") at runtime.
Returns
0 on success, -1 on error.
Author
Generated automatically by Doxygen for liblamina from the source code.