Documentation
¶
Index ¶
- Constants
- func FromJSON(name string, data []byte) (capabilities.Layout, error)
- func Hidden(layout capabilities.Layout) capabilities.Layout
- func Named(name string, root capabilities.Node) capabilities.Layout
- func Split(left, right capabilities.Node) capabilities.Layout
- type Layout
- type Node
- func Chat() *Node
- func Column(children ...capabilities.Node) *Node
- func Component(name string) *Node
- func Editor() *Node
- func EditorOrPalette() *Node
- func InfoView() *Node
- func InputBox() *Node
- func Row(children ...capabilities.Node) *Node
- func Separator() *Node
- func Sessions() *Node
- func SplitStatusBar() *Node
- func StatusBar() *Node
- func Tabs() *Node
- func VerticalSeparator() *Node
- func (n *Node) AlignItems(value string) *Node
- func (n *Node) Fallback(value string) *Node
- func (n *Node) Height(value any) *Node
- func (n *Node) MinWidth(value string) *Node
- func (n *Node) Padding(value Padding) *Node
- func (n *Node) Style(value Style) *Node
- func (n *Node) Variants(value map[string]string) *Node
- func (n *Node) WhenPopupOpen(value capabilities.Node) *Node
- func (n *Node) Width(value any) *Node
- type Padding
- type Style
Constants ¶
View Source
const ( ColorBgBackdrop = "bg_backdrop" ColorBgInput = "bg_input" ColorBgBase = "bg_base" ColorBgSurface = "bg_surface" ColorBgPanel = "bg_panel" ColorBgRaised = "bg_raised" ColorBgHighlight = "bg_highlight" ColorBgSelected = "bg_selected" ColorTextBright = "text_bright" ColorText = "text" ColorTextSoft = "text_soft" ColorTextMuted = "text_muted" ColorTextFaint = "text_faint" ColorTextDim = "text_dim" ColorAccent = "accent" ColorAccentBold = "accent_bold" ColorAccentSoft = "accent_soft" ColorBorderAccent = "border_accent" ColorBorder = "border" )
Variables ¶
This section is empty.
Functions ¶
func Hidden ¶
func Hidden(layout capabilities.Layout) capabilities.Layout
func Named ¶
func Named(name string, root capabilities.Node) capabilities.Layout
func Split ¶
func Split(left, right capabilities.Node) capabilities.Layout
Types ¶
type Layout ¶
type Layout struct {
// contains filtered or unexported fields
}
func (Layout) Tree ¶
func (l Layout) Tree() capabilities.Node
type Node ¶
type Node struct {
Kind string
ComponentName string
DirectionName string
AlignItemsName string
MinWidthValue string
FallbackName string
WidthValue any
HeightValue any
PaddingValue Padding
StyleValue Style
ChildrenNodes []capabilities.Node
WhenPopupOpenNode capabilities.Node
VariantsMap map[string]string
}
func Column ¶
func Column(children ...capabilities.Node) *Node
func EditorOrPalette ¶
func EditorOrPalette() *Node
func Row ¶
func Row(children ...capabilities.Node) *Node
func SplitStatusBar ¶
func SplitStatusBar() *Node
func VerticalSeparator ¶
func VerticalSeparator() *Node
func (*Node) AlignItems ¶
func (*Node) WhenPopupOpen ¶
func (n *Node) WhenPopupOpen(value capabilities.Node) *Node
Click to show internal directories.
Click to hide internal directories.