shared

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawRect

func DrawRect(target *ebiten.Image, r image.Rectangle, clr color.Color, width int)

func FillRect

func FillRect(target *ebiten.Image, r image.Rectangle, clr color.Color)

Types

type Box

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

func NewBox

func NewBox(w, h int, clr color.Color) *Box

func (*Box) Draw

func (box *Box) Draw(screen *ebiten.Image, frame image.Rectangle)

func (*Box) Size added in v0.2.0

func (box *Box) Size() (int, int)

type Button added in v0.4.0

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

func NewButton added in v0.4.0

func NewButton(w, h int) *Button

func (*Button) Draw added in v0.4.0

func (b *Button) Draw(screen *ebiten.Image, frame image.Rectangle)

func (*Button) HandlePress added in v0.4.0

func (b *Button) HandlePress(x, y int, t ebiten.TouchID)

func (*Button) HandleRelease added in v0.4.0

func (b *Button) HandleRelease(x, y int, isCancel bool)

func (*Button) Margin added in v0.5.8

func (b *Button) Margin() []int

func (*Button) SetMargin added in v0.5.8

func (b *Button) SetMargin(m []int)

func (*Button) Size added in v0.4.0

func (b *Button) Size() (int, int)

Jump to

Keyboard shortcuts

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