margin

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

func (v *MarginView) Margin(margin fn.Point) *MarginView

Margin sets margin space function

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