v / vlib / fontstash / fontstash_enums.v
31 lines · 28 sloc · 626 bytes · 79ee4ae0461480a383122608ecdeb67932f05bc8
Raw
1module fontstash
2
3@[flag]
4pub enum Flags {
5 top_left
6 bottom_left
7}
8
9@[flag]
10pub enum Align {
11 // Horizontal align
12 left // Default
13 center
14 right
15 // Vertical align
16 top
17 middle
18 bottom
19 baseline // Default
20}
21
22pub enum ErrorCode {
23 // Font atlas is full.
24 atlas_full = 1
25 // Scratch memory used to render glyphs is full, requested size reported in 'val', you may need to bump up FONS_SCRATCH_BUF_SIZE.
26 scratch_full = 2
27 // Calls to fonsPushState has created too large stack, if you need deep state stack bump up FONS_MAX_STATES.
28 states_overflow = 3
29 // Trying to pop too many states fonsPopState().
30 states_underflow = 4
31}
32