Loading...
Searching...
No Matches
ui Directory Reference

Directories

 
engine
 
weather

Files

 
fonts.c
 Font registry implementation. A flat id-indexed table of loaded handles.
 
fonts.h
 Font registry. A face loads its custom fonts once, each under a small integer slot id, and the rest of the ui looks them up by id so layout tables can stay static, carrying an id rather than a live GFont handle. The registry does not care which fonts they are. The face owns the slots and what they mean. See the face's own draw/fonts.h. This just maps an id to its handle.
 
icon_cache.c
 Icon store. A small cache that maps a resource id to its picture and is shared across a face, so each icon loads once and is freed in one place. Also carries the palette tint and the auto-trim margin scan.
 
icon_cache.h
 A small load-once icon store keyed by resource id, shared across a face so each icon picture loads a single time and frees in one place. Alongside it sits the palette tint and an optional auto-trim that measures each icon's transparent border so a caller can pin the visible art instead of the padded bitmap box.
 
readouts.c
 Text formatters shared by the faces, bound to the engine's text-slots.
 
readouts.h
 Text formatters shared by the faces: pull a value from a store, honour the relevant setting, and format it into a buffer. Each matches the engine's text-slot signature, so a slot binds straight to one (e.g. { .zone = &s_zones[ZONE_TIME], .text = readout_time }).
 
zone.c
 Layout primitives implementation.
 
zone.h
 Layout primitives. Defines paintable areas and their text alignments.