fill

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: MIT Imports: 2 Imported by: 6

Documentation

Overview

Package fill provides a widget that can be filled with a styled rune.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(w ISolidFill, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.ICanvas

func RenderSize

func RenderSize(w interface{}, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderBox

Types

type ISolidFill

type ISolidFill interface {
	Cell() gowid.Cell
}

type IWidget

type IWidget interface {
	gowid.IWidget
	ISolidFill
}

type Widget

type Widget struct {
	gowid.RejectUserInput
	gowid.NotSelectable
	// contains filtered or unexported fields
}

func New

func New(chr rune) *Widget

func NewEmpty

func NewEmpty() *Widget

func NewSolidFromCell

func NewSolidFromCell(cell gowid.Cell) *Widget

func (*Widget) Cell

func (w *Widget) Cell() gowid.Cell

func (*Widget) Render

func (w *Widget) Render(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.ICanvas

func (*Widget) RenderSize

func (w *Widget) RenderSize(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderBox

func (*Widget) SetCell

func (w *Widget) SetCell(c gowid.Cell, app gowid.IApp)

func (*Widget) String

func (w *Widget) String() string

Jump to

Keyboard shortcuts

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