MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / Drawer2D_ValidColorCodeAt

Function Drawer2D_ValidColorCodeAt

src/Drawer2D.c:342–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340}
341
342cc_bool Drawer2D_ValidColorCodeAt(const cc_string* text, int i) {
343 if (i >= text->length) return false;
344 return BitmapCol_A(Drawer2D_GetColor(text->buffer[i])) != 0;
345}
346
347cc_bool Drawer2D_UNSAFE_NextPart(cc_string* left, cc_string* part, char* colorCode) {
348 BitmapCol color;

Callers 8

InputWidget_FormatLineFunction · 0.85
SysFont_TextWidthFunction · 0.85
SysFont_DrawTextFunction · 0.85
Drawer2D_UNSAFE_NextPartFunction · 0.85
Drawer2D_LastColorFunction · 0.85
DrawBitmappedTextCoreFunction · 0.85
MeasureBitmappedWidthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected