layout

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Align

type Align struct {
	Size image.Point
}

func (*Align) Add

func (h *Align) Add(sz image.Point) image.Point

func (*Align) X

func (h *Align) X(sz image.Point) int

func (*Align) Y

func (h *Align) Y(sz image.Point) int

type Rectangle

type Rectangle image.Rectangle

func (Rectangle) Center

func (r Rectangle) Center(sz image.Point) image.Point

func (Rectangle) CutBottom

func (r Rectangle) CutBottom(height int) (top Rectangle, bottom Rectangle)

func (Rectangle) CutEnd

func (r Rectangle) CutEnd(width int) (start Rectangle, end Rectangle)

func (Rectangle) CutStart

func (r Rectangle) CutStart(width int) (start Rectangle, end Rectangle)

func (Rectangle) CutTop

func (r Rectangle) CutTop(height int) (top Rectangle, bottom Rectangle)

func (Rectangle) Dx

func (r Rectangle) Dx() int

func (Rectangle) Dy

func (r Rectangle) Dy() int

func (Rectangle) E

func (r Rectangle) E(sz image.Point) image.Point

func (Rectangle) N

func (r Rectangle) N(sz image.Point) image.Point

func (Rectangle) NE

func (r Rectangle) NE(sz image.Point) image.Point

func (Rectangle) NW

func (r Rectangle) NW(sz image.Point) image.Point

func (Rectangle) S

func (r Rectangle) S(sz image.Point) image.Point

func (Rectangle) SE

func (r Rectangle) SE(sz image.Point) image.Point

func (Rectangle) SW

func (r Rectangle) SW(sz image.Point) image.Point

func (Rectangle) Shrink

func (r Rectangle) Shrink(top, end, bottom, start int) Rectangle

func (Rectangle) Size

func (r Rectangle) Size() image.Point

func (Rectangle) W

func (r Rectangle) W(sz image.Point) image.Point

Jump to

Keyboard shortcuts

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