Skip to main content

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​

NameValueMeaning
CC_DEFAULT_FONT_SIZE16Starting global font size
CC_PROGRESS_INFINITE-1.0fIndeterminate progress value
CC_BUTTON_HOVER_ALPHA0.85fOverridable, see Interaction
CC_BUTTON_PRESS_ALPHA0.70fOverridable
CC_SHADOW_TAG-2Render tag on Shadow custom data
CC_SHADOW_POOL_SIZE128Shadows per frame
CC_TASK_MAX64Tasks queued or running at once
CC_TEXT_EDIT_CAP256Bytes in a CC_TextEdit buffer, including the NUL
CCOMPOSE_NO_BACKENDdefined in headless buildsTest with #ifdef to guard raylib-only code. Set by the CMake target, don't define it yourself.