Documentation ¶
Index ¶
- Constants
- type AlignmentHorizontal
- type AlignmentVertical
- type Direction
- type Pane
- func (m Pane) Children() []Pane
- func (m Pane) Height() int
- func (m Pane) Init() tea.Cmd
- func (m Pane) Update(msg tea.Msg) (Pane, tea.Cmd)
- func (m Pane) View() string
- func (m Pane) Width() int
- func (m Pane) WithAlignment(vertical AlignmentVertical, horizontal AlignmentHorizontal) Pane
- func (m Pane) WithDimensions(width, height int) (Pane, tea.Cmd)
- func (m Pane) WithDirection(direction Direction) Pane
- func (p Pane) WithName(name string) Pane
- type ViewableSizeMsg
Constants ¶
View Source
const ( AlignmentVerticalTop AlignmentVertical = "top" AlignmentVerticalCenter AlignmentVertical = "center" AlignmentVerticalBottom AlignmentVertical = "bottom" AlignmentHorizontalLeft AlignmentHorizontal = "left" AlignmentHorizontalCenter AlignmentHorizontal = "center" AlignmentHorizontalRight AlignmentHorizontal = "right" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlignmentHorizontal ¶
type AlignmentHorizontal string
func ToAlignmentHorizontal ¶
func ToAlignmentHorizontal(raw string) (AlignmentHorizontal, error)
type AlignmentVertical ¶
type AlignmentVertical string
func ToAlignmentVertical ¶
func ToAlignmentVertical(raw string) (AlignmentVertical, error)
type Pane ¶
type Pane struct {
// contains filtered or unexported fields
}
func (Pane) WithAlignment ¶
func (m Pane) WithAlignment(vertical AlignmentVertical, horizontal AlignmentHorizontal) Pane
func (Pane) WithDirection ¶
type ViewableSizeMsg ¶
Click to show internal directories.
Click to hide internal directories.