widgets

package
v0.0.0-...-324aa02 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bar

type Bar struct {
	Value float64
}

func (*Bar) Draw

func (b *Bar) Draw(screen *ebiten.Image, frame image.Rectangle, view *furex.View)

type Button

type Button struct {
	Color   color.Color
	OnClick func()
	// contains filtered or unexported fields
}

func (*Button) Draw

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

func (*Button) HandleMouseEnter

func (b *Button) HandleMouseEnter(x, y int) bool

func (*Button) HandleMouseLeave

func (b *Button) HandleMouseLeave()

func (*Button) HandlePress

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

func (*Button) HandleRelease

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

type Mouse

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

func (*Mouse) HandleDraw

func (m *Mouse) HandleDraw(screen *ebiten.Image, frame image.Rectangle)

func (*Mouse) HandleMouse

func (m *Mouse) HandleMouse(x, y int) bool

func (*Mouse) HandleMouseEnter

func (m *Mouse) HandleMouseEnter(x int, y int) bool

func (*Mouse) HandleMouseLeave

func (m *Mouse) HandleMouseLeave()

type Panel

type Panel struct {
	Color   color.Color
	OnClick func()
	// contains filtered or unexported fields
}

func (*Panel) Draw

func (p *Panel) Draw(screen *ebiten.Image, frame image.Rectangle, view *furex.View)

func (*Panel) HandleMouseEnter

func (p *Panel) HandleMouseEnter(x, y int) bool

func (*Panel) HandleMouseLeave

func (p *Panel) HandleMouseLeave()

func (*Panel) HandlePress

func (p *Panel) HandlePress(x, y int, t ebiten.TouchID)

func (*Panel) HandleRelease

func (p *Panel) HandleRelease(x, y int, isCancel bool)

func (*Panel) IsButton

func (p *Panel) IsButton() bool

type Sprite

type Sprite struct {
}

func (*Sprite) Draw

func (t *Sprite) Draw(screen *ebiten.Image, frame image.Rectangle, view *furex.View)

type Text

type Text struct {
	Color     color.Color
	Shadow    bool
	HorzAlign etxt.HorzAlign
	VertAlign etxt.VertAlign
	Text      string
}

func (*Text) Draw

func (t *Text) Draw(screen *ebiten.Image, frame image.Rectangle, view *furex.View)

Jump to

Keyboard shortcuts

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