gui

package
v0.0.0-...-963f1c7 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGUI

func NewGUI(name string) engine.Layer

Types

type Button

type Button struct {
	p.Primative
}

func (*Button) Animate

func (b *Button) Animate()

func (*Button) ClickCallback

func (b *Button) ClickCallback(d events.Publisher)

type Clickable

type Clickable interface {
	p.Primative
	ClickCallback(d events.Publisher)
}

func NewButton

func NewButton(region p.Primative) Clickable

type GUI

type GUI struct {
	engine.BaseLayer
	// contains filtered or unexported fields
}

func (*GUI) Broadcast

func (g *GUI) Broadcast(event events.Event)

func (*GUI) OnAttach

func (g *GUI) OnAttach()

func (*GUI) OnDetach

func (g *GUI) OnDetach()

func (*GUI) OnEvent

func (g *GUI) OnEvent(event events.Event)

func (*GUI) OnUpdate

func (g *GUI) OnUpdate()

Jump to

Keyboard shortcuts

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