border

package
v0.0.0-...-6c48755 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BorderedWidget

type BorderedWidget struct {
	commander.MaxSizeWidget
	// contains filtered or unexported fields
}

func NewBorderedWidget

func NewBorderedWidget(widget commander.MaxSizeWidget, title string, theme commander.ThemeManager, style string, titleStyle string, borders Borders) *BorderedWidget

func (*BorderedWidget) Draw

func (b *BorderedWidget) Draw()

func (*BorderedWidget) MaxSize

func (b *BorderedWidget) MaxSize() (int, int)

func (*BorderedWidget) SetView

func (b *BorderedWidget) SetView(view views.View)

type Borders

type Borders uint8
const (
	Top Borders = 1 << iota
	Bottom
	Left
	Right
	All = Top | Right | Bottom | Left
)

func (Borders) Has

func (b Borders) Has(flag Borders) bool

type VerticalLine

type VerticalLine struct {
	*focus.Focusable
	views.WidgetWatchers
	// contains filtered or unexported fields
}

func NewVerticalLine

func NewVerticalLine(theme commander.ThemeManager) *VerticalLine

func (VerticalLine) Draw

func (l VerticalLine) Draw()

func (VerticalLine) HandleEvent

func (l VerticalLine) HandleEvent(_ tcell.Event) bool

func (VerticalLine) Resize

func (l VerticalLine) Resize()

func (*VerticalLine) SetView

func (l *VerticalLine) SetView(view views.View)

func (VerticalLine) Size

func (l VerticalLine) Size() (int, int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL