core/slider/orientation.go
Functions
func String
func (o Orientation) String() string {
switch o {
case Horizontal:
return orientationHorizontal
case Vertical:
return orientationVertical
default:
return orientationUnknown
}
}
Structs
type Mark struct
Mark represents a labeled position on the slider track.
Marks are purely visual annotations; they do not constrain the slider value.
type Mark struct {
// Value is the position on the slider where the mark appears.
Value float32
// Label is the optional text label displayed near the mark.
// If empty, only a tick mark is drawn.
Label string
}
String returns a human-readable name for the orientation.