1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/fontstash/fontstash_enums.v

32 lines
624 B
V
Raw Permalink Normal View History

2020-01-16 22:45:47 +03:00
module fontstash
[flag]
pub enum Flags {
top_left
bottom_left
2020-01-16 22:45:47 +03:00
}
[flag]
pub enum Align {
2020-01-16 22:45:47 +03:00
// Horizontal align
left // Default
center
right
2020-01-16 22:45:47 +03:00
// Vertical align
top
middle
bottom
baseline // Default
2020-01-16 22:45:47 +03:00
}
pub enum ErrorCode {
2020-01-16 22:45:47 +03:00
// Font atlas is full.
atlas_full = 1
// Scratch memory used to render glyphs is full, requested size reported in 'val', you may need to bump up FONS_SCRATCH_BUF_SIZE.
scratch_full = 2
// Calls to fonsPushState has created too large stack, if you need deep state stack bump up FONS_MAX_STATES.
states_overflow = 3
// Trying to pop too many states fonsPopState().
states_underflow = 4
}