termuiRenders

package
v1.7.14 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DrawableContainer

type DrawableContainer struct {
	// contains filtered or unexported fields
}

DrawableContainer defines a container of drawable object with position and dimensions

func NewDrawableContainer

func NewDrawableContainer() *DrawableContainer

NewDrawableContainer method is used to return a new NewDrawableContainer structure

func (*DrawableContainer) Bottom

func (imh *DrawableContainer) Bottom() termui.Drawable

Bottom sets the bottom drawable

func (*DrawableContainer) Items

func (imh *DrawableContainer) Items() []termui.Drawable

Items returns the containing items list

func (*DrawableContainer) SetBottom

func (imh *DrawableContainer) SetBottom(drawable termui.Drawable)

SetBottom sets the bottom drawable

func (*DrawableContainer) SetRectangle

func (imh *DrawableContainer) SetRectangle(startWidth, startHeight, termWidth, termHeight int)

SetRectangle sets the rectangle of this drawable object

func (*DrawableContainer) SetTopLeft

func (imh *DrawableContainer) SetTopLeft(drawable termui.Drawable)

SetTopLeft sets the topLeft drawable

func (*DrawableContainer) SetTopRight

func (imh *DrawableContainer) SetTopRight(drawable termui.Drawable)

SetTopRight sets the topRight drawable

func (*DrawableContainer) TopLeft

func (imh *DrawableContainer) TopLeft() termui.Drawable

TopLeft gets the topLeft drawable

func (*DrawableContainer) TopRight

func (imh *DrawableContainer) TopRight() termui.Drawable

TopRight sets the topRight drawable

type WidgetsRender

type WidgetsRender struct {
	// contains filtered or unexported fields
}

WidgetsRender will define termui widgets that need to display a termui console

func NewWidgetsRender

func NewWidgetsRender(presenter view.Presenter, grid *DrawableContainer) (*WidgetsRender, error)

NewWidgetsRender method will create new WidgetsRender that display termui console

func (*WidgetsRender) IsInterfaceNil

func (wr *WidgetsRender) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*WidgetsRender) RefreshData

func (wr *WidgetsRender) RefreshData(numMillisecondsRefreshTime int)

RefreshData method is used to prepare data that are displayed on container

Jump to

Keyboard shortcuts

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