modules

package
v0.0.0-...-14468cb Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	Border      bool
	BorderStyle style.Style

	BorderLeft, BorderRight, BorderTop, BorderBottom     bool
	PaddingLeft, PaddingRight, PaddingTop, PaddingBottom bool

	image.Rectangle
	Inner image.Rectangle

	Title      string
	TitleStyle style.Style

	sync.Mutex
	// contains filtered or unexported fields
}

func NewModule

func NewModule() *Module

func (*Module) Draw

func (m *Module) Draw(canvas *view.Buffer)

func (*Module) SetData

func (m *Module) SetData(data interface{})

func (*Module) SetRect

func (m *Module) SetRect(x1, y1, x2, y2 int)

type Text

type Text struct {
	Module
	Text      string
	TextStyle style.Style
	WrapText  bool
}

func NewText

func NewText() *Text

func (*Text) Draw

func (self *Text) Draw(buf *view.Buffer)

func (*Text) GetRect

func (self *Text) GetRect() image.Rectangle

Jump to

Keyboard shortcuts

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