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

examples: reduce C. prefix usage, rename fontstash enums (#14011)

This commit is contained in:
Larpon
2022-04-11 21:23:06 +02:00
committed by GitHub
parent cb969e0934
commit 07207db998
5 changed files with 87 additions and 75 deletions

View File

@@ -1,23 +1,25 @@
module fontstash
pub enum FonsFlags {
top_left = 1
bottom_left = 2
[flag]
pub enum Flags {
top_left
bottom_left
}
pub enum FonsAlign {
[flag]
pub enum Align {
// Horizontal align
left = 1 // Default
center = 2
right = 4
left // Default
center
right
// Vertical align
top = 8
middle = 16
bottom = 32
baseline = 64 // Default
top
middle
bottom
baseline // Default
}
pub enum FonsErrorCode {
pub enum ErrorCode {
// 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.