Cobbletext  0.2.0
Complex text layout and rendering engine
common.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <stdint.h>
4 
5 #include "macros.h"
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 
18 typedef uint32_t CobbletextFontID;
19 
31 typedef uint32_t CobbletextGlyphID;
32 
38 typedef uint32_t CobbletextInlineObjectID;
39 
48 typedef uint64_t CobbletextCustomPropertyID;
49 
50 
56 
62 
68 
75 const char * cobbletext_get_version();
76 
77 #ifdef __cplusplus
78 }
79 #endif
CobbletextCustomPropertyID
uint64_t CobbletextCustomPropertyID
A user-provided integer for custom properties.
Definition: common.h:48
CobbletextInlineObjectID
uint32_t CobbletextInlineObjectID
A user-provided identifer for inline objects.
Definition: common.h:38
macros.h
cobbletext_get_version_patch
int32_t cobbletext_get_version_patch()
Returns Z from the X.Y.Z version.
CobbletextFontID
uint32_t CobbletextFontID
Unique font face ID.
Definition: common.h:18
cobbletext_get_version_major
int32_t cobbletext_get_version_major()
Returns X from the X.Y.Z version.
cobbletext_get_version
const char * cobbletext_get_version()
Returns the version string formatted as X.Y.Z.
cobbletext_get_version_minor
int32_t cobbletext_get_version_minor()
Returns Y from the X.Y.Z version.
COBBLETEXT_API
#define COBBLETEXT_API
Macro for Windows C symbol import and export, Emscripten attribute.
Definition: macros.h:18
CobbletextGlyphID
uint32_t CobbletextGlyphID
Unique glyph ID.
Definition: common.h:31