ui

package
v0.0.0-...-e7ac65d Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Design

type Design struct {
	sync.Mutex
	// contains filtered or unexported fields
}

A UI design, built from an XML file

func NewDesign

func NewDesign(fs http.FileSystem, path string, windowConfig pixelgl.WindowConfig) (d *Design, err error)

Function to create a new design from an XML string

func (*Design) FindElementByID

func (d *Design) FindElementByID(id string) element.Element

Function to recursively find an element in the design with the given ID. Returns nil if no child could be found

func (*Design) Init

func (d *Design) Init() (err error)

Function to initialise (and draw) the design. This function must be called within pixelgl.Run

func (*Design) Root

func (d *Design) Root() element.Element

Function to get the root node of the design

func (*Design) Start

func (d *Design) Start()

Function to start the design with a simple event routine

func (*Design) StartThenWait

func (d *Design) StartThenWait()

Function to start the design then wait for it to finish

func (*Design) Wait

func (d *Design) Wait()

Function to wait for the design to close

func (*Design) Window

func (d *Design) Window() *pixelgl.Window

Function to get the design's window

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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