2020-05-28 14:21:20 +03:00
|
|
|
module gx
|
|
|
|
|
2020-08-19 08:10:42 +03:00
|
|
|
// TODO: remove these and uae the enum everywhere
|
2021-02-03 11:17:13 +03:00
|
|
|
pub const (
|
|
|
|
align_left = HorizontalAlign.left
|
2020-08-19 08:10:42 +03:00
|
|
|
align_right = HorizontalAlign.right
|
2020-05-28 14:21:20 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
pub struct TextCfg {
|
|
|
|
pub:
|
2020-08-19 08:10:42 +03:00
|
|
|
color Color = black
|
2021-02-03 11:17:13 +03:00
|
|
|
size int = 16
|
2020-08-19 08:10:42 +03:00
|
|
|
align HorizontalAlign = .left
|
2021-02-03 11:17:13 +03:00
|
|
|
vertical_align VerticalAlign = .top
|
2020-08-19 08:10:42 +03:00
|
|
|
max_width int
|
|
|
|
family string
|
|
|
|
bold bool
|
|
|
|
mono bool
|
|
|
|
italic bool
|
2020-05-28 14:21:20 +03:00
|
|
|
}
|