minsize

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MinSizeView

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

MinSizeView expands a size of any Viewer to specified width

func New

func New(view view.Viewer, size fn.Point) *MinSizeView

New returns a MinSizeView

func (*MinSizeView) Draw

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

Draw draws a view element

func (*MinSizeView) Size

func (v *MinSizeView) 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