minsize

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: 4 Imported by: 1

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) *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) MinSize added in v0.1.5

func (v *MinSizeView) MinSize(size fn.Point) *MinSizeView

MinSize sets a minimal size function

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