Documentation
¶
Index ¶
- type Block
- func (b Block) Bordered() Block
- func (b Block) Double() Block
- func (b Block) Inner(area bento.Rect) bento.Rect
- func (b Block) Render(area bento.Rect, buffer *bento.Buffer)
- func (b Block) Rounded() Block
- func (b Block) Sharp() Block
- func (b Block) Thick() Block
- func (b Block) WithBorderSides(borders ...Side) Block
- func (b Block) WithBorderStyle(style bento.Style) Block
- func (b Block) WithBorderType(borderType BorderType) Block
- func (b Block) WithPadding(padding bento.Padding) Block
- func (b Block) WithStyle(style bento.Style) Block
- func (b Block) WithTitle(title Title) Block
- func (b Block) WithTitlePosition(position TitlePosition) Block
- func (b Block) WithTitleStr(title string) Block
- func (b Block) WithTitlesAlignment(alignment bento.Alignment) Block
- func (b Block) WithTitlesStyle(style bento.Style) Block
- type BorderSet
- func (b BorderSet) WithBottomLeft(s string) BorderSet
- func (b BorderSet) WithBottomRight(s string) BorderSet
- func (b BorderSet) WithHorizontalBottom(s string) BorderSet
- func (b BorderSet) WithHorizontalTop(s string) BorderSet
- func (b BorderSet) WithTopLeft(s string) BorderSet
- func (b BorderSet) WithTopRight(s string) BorderSet
- func (b BorderSet) WithVerticalLeft(s string) BorderSet
- func (b BorderSet) WithVerticalRight(s string) BorderSet
- type BorderType
- type Side
- type Title
- type TitlePosition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
// contains filtered or unexported fields
}
func (Block) WithBorderSides ¶
func (Block) WithBorderType ¶
func (b Block) WithBorderType(borderType BorderType) Block
func (Block) WithTitlePosition ¶
func (b Block) WithTitlePosition(position TitlePosition) Block
func (Block) WithTitleStr ¶
func (Block) WithTitlesAlignment ¶
type BorderSet ¶
type BorderSet struct { TopLeft, TopRight, BottomLeft, BottomRight, VerticalLeft, VerticalRight, HorizontalTop, HorizontalBottom string }
func (BorderSet) WithBottomLeft ¶
func (BorderSet) WithBottomRight ¶
func (BorderSet) WithHorizontalBottom ¶
func (BorderSet) WithHorizontalTop ¶
func (BorderSet) WithTopLeft ¶
func (BorderSet) WithTopRight ¶
func (BorderSet) WithVerticalLeft ¶
func (BorderSet) WithVerticalRight ¶
type BorderType ¶
type BorderType int
const ( BorderTypeSharp BorderType = iota BorderTypeRounded BorderTypeDouble BorderTypeThick )
func (BorderType) Set ¶
func (b BorderType) Set() BorderSet
type Title ¶
type Title struct { Alignment bento.Alignment Position *TitlePosition Line textwidget.Line }
func NewTitle ¶
func NewTitle(line textwidget.Line) Title
func NewTitleStr ¶
func (Title) WithPosition ¶
func (t Title) WithPosition(position TitlePosition) Title
type TitlePosition ¶
type TitlePosition int
const ( TitlePositionTop TitlePosition = iota TitlePositionBottom )
Click to show internal directories.
Click to hide internal directories.