margin

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MarginView

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

MarginView adds a margin space around any Viewer

func New

func New(viewer view.Viewer, margin fn.Point) *MarginView

New creates a MarginView

func (*MarginView) Draw

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

Draw draws a view element

func (*MarginView) Size

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