box

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 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 BoxView

type BoxView struct {
	view.Viewer
	// contains filtered or unexported fields
}

BoxView adds a border and background color to any Viewer

func New

func New(viewer view.Viewer, foreground fn.Color, background fn.Color) *BoxView

New returns a BoxView for specified Viewer. Foreground is a border color, Background is a new background color for a Viewer

func (*BoxView) Draw

func (v *BoxView) Draw(w *impress.Window, rect image.Rectangle)

Draw draws a view element

Jump to

Keyboard shortcuts

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