mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
io/system: implement Stringer on TextDirection
Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
This commit is contained in:
@@ -34,6 +34,15 @@ func (d TextDirection) Progression() TextProgression {
|
|||||||
return TextProgression((d & (1 << progressionShift)) >> progressionShift)
|
return TextProgression((d & (1 << progressionShift)) >> progressionShift)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (d TextDirection) String() string {
|
||||||
|
switch d {
|
||||||
|
case RTL:
|
||||||
|
return "RTL"
|
||||||
|
default:
|
||||||
|
return "LTR"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// TextAxis defines the layout axis of text.
|
// TextAxis defines the layout axis of text.
|
||||||
type TextAxis byte
|
type TextAxis byte
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user