scene

package
v0.0.0-...-03afc55 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2015 License: Apache-2.0 Imports: 1 Imported by: 4

Documentation

Overview

Package scene provides methods to manage and load multiple ui scenes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Type

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

Type stores a scene that can be removed and shown at any time.

func New

func New(visible bool) *Type

New creates a new scene.

func (*Type) AddDrawable

func (t *Type) AddDrawable(d ui.Drawable)

AddDrawable adds the drawable to the draw list.

func (*Type) Hide

func (t *Type) Hide()

Hide hides all the drawables in the scene

func (*Type) IsVisible

func (t *Type) IsVisible() bool

IsVisible returns whether the scene is currently visible.

func (*Type) Show

func (t *Type) Show()

Show shows all the drawables in the scene

Jump to

Keyboard shortcuts

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