Skip to main content

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.

PageCovers
Lifecycle and windowInit, frame loop, shutdown, window size, flags and background.
FontsLoading fonts and the global font, size and color.
ContainersColumn, Row, Box, Element, Button and their runtime hooks.
TextThe Text leaf and its default size.
Text inputTextInput, its options, events, focus and the CC_TextEdit state.
ImagesImage, scale modes and texture loading. Raylib only.
Spacers and dividersHSpacer, VSpacer, Spacer, HDivider, VDivider.
Progress indicatorsLinearProgress, CircularProgress and indeterminate mode.
ShadowShadow and its options.
Custom drawingDraw, DrawRow, DrawColumn and the draw-slot pool.
InteractionCC_Hovered, CC_Clicked, element layout data and button feedback.
Scroll and clipCC_ScrollUpdate, CC_Scroll and the Clip shorthands.
FloatingFloatOnParent, FloatOnRoot, attach modes and points.
Sizing, padding and alignment sugarFit, Grow, Fixed, Percent, padding and child alignment helpers.
Color, border and radius sugarColor, ColorHex, border width and corner radius helpers.
TransitionsDefineTransition, effects, easings and transition enums.
TasksCC_Spawn, progress, cancel and the done callback for work off the UI thread.
Element ids and stringsCC_IDI, CC_SID, CLAY_ID and CC_StrIntern.
Type aliasesEvery CC_ type and the Clay type it maps to.
Enum value aliasesEvery CC_ enum value and the field it belongs to.
Compile-time constantsFixed values and overridable defaults.