|
cwist
Modern C web framework with libttak runtime
|
Component-scoped class names and the rules attached to them. More...
#include <css_composer.h>
Public Attributes | |
| char | suffix [9] |
| 8 lowercase hex digits + NUL | |
| struct cwist_css_scope_entry * | entries |
| Per-class state, private. | |
| size_t | count |
| Number of known base classes. | |
| size_t | capacity |
| Allocated entries. | |
Component-scoped class names and the rules attached to them.
Every class handed out by a scope carries the same suffix, derived from the component name with a fixed (unseeded) 32-bit FNV-1a hash, so "btn" in scope "card" is always "btn-<8 hex digits>" in every process and every run. Only the fields below are public; treat them as read-only.
Definition at line 52 of file css_composer.h.
| size_t cwist_css_scope::capacity |
Allocated entries.
Definition at line 56 of file css_composer.h.
Referenced by cwist_css_scope_init().
| size_t cwist_css_scope::count |
Number of known base classes.
Definition at line 55 of file css_composer.h.
Referenced by cwist_css_scope_destroy(), cwist_css_scope_generate_stylesheet(), and cwist_css_scope_init().
| struct cwist_css_scope_entry* cwist_css_scope::entries |
Per-class state, private.
Definition at line 54 of file css_composer.h.
Referenced by cwist_css_scope_destroy(), cwist_css_scope_generate_stylesheet(), and cwist_css_scope_init().
| char cwist_css_scope::suffix[9] |
8 lowercase hex digits + NUL
Definition at line 53 of file css_composer.h.
Referenced by cwist_css_scope_add_rule(), cwist_css_scope_class(), and cwist_css_scope_init().