API reference
Look up public macros, functions, types, and constants from ccompose.h by purpose. Each page covers one area, and each row links to the guide page with examples. Names marked raylib only are unavailable in headless builds (-DCCOMPOSE_BACKEND_RAYLIB=OFF).
Names starting with CC__ (two underscores) or ending in _, such as CC_BOX_IMPL_, support macro expansion. Treat them as internal.
| Page | Covers |
|---|---|
| Lifecycle and window | Init, frame loop, shutdown, window size, flags and background. |
| Fonts | Loading fonts and the global font, size and color. |
| Containers | Column, Row, Box, Element, Button and their runtime hooks. |
| Text | The Text leaf and its default size. |
| Text input | TextInput, its options, events, focus and the CC_TextEdit state. |
| Images | Image, scale modes and texture loading. Raylib only. |
| Spacers and dividers | HSpacer, VSpacer, Spacer, HDivider, VDivider. |
| Progress indicators | LinearProgress, CircularProgress and indeterminate mode. |
| Shadow | Shadow and its options. |
| Custom drawing | Draw, DrawRow, DrawColumn and the draw-slot pool. |
| Interaction | CC_Hovered, CC_Clicked, element layout data and button feedback. |
| Scroll and clip | CC_ScrollUpdate, CC_Scroll and the Clip shorthands. |
| Floating | FloatOnParent, FloatOnRoot, attach modes and points. |
| Sizing, padding and alignment sugar | Fit, Grow, Fixed, Percent, padding and child alignment helpers. |
| Color, border and radius sugar | Color, ColorHex, border width and corner radius helpers. |
| Transitions | DefineTransition, effects, easings and transition enums. |
| Tasks | CC_Spawn, progress, cancel and the done callback for work off the UI thread. |
| Element ids and strings | CC_IDI, CC_SID, CLAY_ID and CC_StrIntern. |
| Type aliases | Every CC_ type and the Clay type it maps to. |
| Enum value aliases | Every CC_ enum value and the field it belongs to. |
| Compile-time constants | Fixed values and overridable defaults. |