solid

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Solid

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

Solid is a colored rectangular element

func New

func New(size image.Point, foreground fn.Color) *Solid

New creates a Solid

func (*Solid) Draw

func (s *Solid) Draw(w *impress.Window, rect image.Rectangle)

Draw draws a view element

func (*Solid) Size

func (s *Solid) Size(size image.Point) image.Point

Size returns size of a view element

Jump to

Keyboard shortcuts

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