Compile-time constants
Fixed values from ccompose.h. The two CC_BUTTON_* values can be overridden by defining them before the header is included, or with -D on the compiler command line.
Example
#define CC_BUTTON_HOVER_ALPHA 0.90f // before the include
#include "ccompose.h"
#ifndef CCOMPOSE_NO_BACKEND
static Texture2D logo; // raylib-only code
#endif
Reference
| Name | Value | Meaning |
|---|---|---|
CC_DEFAULT_FONT_SIZE | 16 | Starting global font size |
CC_PROGRESS_INFINITE | -1.0f | Indeterminate progress value |
CC_BUTTON_HOVER_ALPHA | 0.85f | Overridable, see Interaction |
CC_BUTTON_PRESS_ALPHA | 0.70f | Overridable |
CC_SHADOW_TAG | -2 | Render tag on Shadow custom data |
CC_SHADOW_POOL_SIZE | 128 | Shadows per frame |
CC_TASK_MAX | 64 | Tasks queued or running at once |
CC_TEXT_EDIT_CAP | 256 | Bytes in a CC_TextEdit buffer, including the NUL |
CCOMPOSE_NO_BACKEND | defined in headless builds | Test with #ifdef to guard raylib-only code. Set by the CMake target, don't define it yourself. |