Documentation ¶
Index ¶
- type DrawableContainer
- func (imh *DrawableContainer) Bottom() termui.Drawable
- func (imh *DrawableContainer) Items() []termui.Drawable
- func (imh *DrawableContainer) SetBottom(drawable termui.Drawable)
- func (imh *DrawableContainer) SetRectangle(startWidth, startHeight, termWidth, termHeight int)
- func (imh *DrawableContainer) SetTopLeft(drawable termui.Drawable)
- func (imh *DrawableContainer) SetTopRight(drawable termui.Drawable)
- func (imh *DrawableContainer) TopLeft() termui.Drawable
- func (imh *DrawableContainer) TopRight() termui.Drawable
- type WidgetsRender
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()
RefreshData method is used to prepare data that are displayed on container