Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var All = []Enum{ Unmodified, Fill, Follow, HintedFill, }
All possible values.
Functions ¶
This section is empty.
Types ¶
type Enum ¶
type Enum byte
Enum controls how auto-sizing of the scroll content's preferred size is handled.
const ( Unmodified Enum = iota Fill // If the content is smaller than the available space, expand it Follow // Fix the content to the view size HintedFill // Uses hints to try and fix the content to the view size, but if the resulting content is smaller than the available space, expands it )
Possible values.
func (Enum) EnsureValid ¶
EnsureValid ensures this is of a known value.
func (Enum) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*Enum) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.
Click to show internal directories.
Click to hide internal directories.