v/vlib/gx/text.v

22 lines
429 B
V
Raw Normal View History

module gx
// TODO: remove these, and use the enum everywhere
pub const (
align_left = HorizontalAlign.left
2020-08-19 07:10:42 +02:00
align_right = HorizontalAlign.right
)
[params]
pub struct TextCfg {
pub:
2020-08-19 07:10:42 +02:00
color Color = black
size int = 16
2020-08-19 07:10:42 +02:00
align HorizontalAlign = .left
vertical_align VerticalAlign = .top
2020-08-19 07:10:42 +02:00
max_width int
family string
bold bool
mono bool
italic bool
}