elems

package
v0.0.0-...-46214c3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Button

type Button struct {
	Action       func()
	IsMenuButton bool
	ChangeToPage string
	// contains filtered or unexported fields
}

func NewButton

func NewButton(img image.Image, x, y int, action func()) *Button

func NewMenuButton

func NewMenuButton(img image.Image, x, y int, page string) *Button

func (*Button) Draw

func (b *Button) Draw(target draw.Image)

func (*Button) IsHitBy

func (b *Button) IsHitBy(p image.Point) bool

type PosImage

type PosImage struct {
	// contains filtered or unexported fields
}

func NewPosImage

func NewPosImage(img image.Image, x int, y int) *PosImage

func (*PosImage) Bounds

func (p *PosImage) Bounds() image.Rectangle

Jump to

Keyboard shortcuts

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