Documentation
¶
Index ¶
- Constants
- type AlignItems
- type Color
- type Component
- type Direction
- type JustifyContent
- type Padding
- type Style
- func (s *Style) AddTextDecoration(d TextDecoration)
- func (s Style) GetBackground() string
- func (s Style) GetDecor() string
- func (s Style) GetForeground() string
- func (s Style) GetTextDecoration() TextDecoration
- func (s Style) HasTextDecoration(d TextDecoration) bool
- func (s *Style) RemoveTextDecoration(d TextDecoration)
- func (s *Style) SetBackground(r, g, b uint8)
- func (s *Style) SetForeground(r, g, b uint8)
- type Styler
- type TextDecoration
- type Unit
- type UnitType
Constants ¶
View Source
const ( Bold = 1 << iota Italic Underline )
View Source
const ( UnitPx UnitType = iota UnitPercent UnitGrow JCenter JustifyContent = iota JLeft JRight ACenter AlignItems = iota ATop ABottom ALeft ARight Column Direction = iota Row )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlignItems ¶
type AlignItems int
type Component ¶
type Component interface {
Styler
IsDirty() bool
MakeDirty()
ClearDirty()
Layout(x, y, w, h int)
Render(screen *screen.Screen)
SetParent(parent Component)
}
Main interface for all layout components
type JustifyContent ¶
type JustifyContent int
type Style ¶
type Style struct {
TextDecoration TextDecoration
// contains filtered or unexported fields
}
func (*Style) AddTextDecoration ¶
func (s *Style) AddTextDecoration(d TextDecoration)
func (Style) GetBackground ¶
func (Style) GetForeground ¶
func (Style) GetTextDecoration ¶
func (s Style) GetTextDecoration() TextDecoration
func (Style) HasTextDecoration ¶
func (s Style) HasTextDecoration(d TextDecoration) bool
func (*Style) RemoveTextDecoration ¶
func (s *Style) RemoveTextDecoration(d TextDecoration)
func (*Style) SetBackground ¶
func (*Style) SetForeground ¶
type TextDecoration ¶
type TextDecoration uint8
Click to show internal directories.
Click to hide internal directories.