ui

package
v0.0.0-...-9647f20 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

An OpenGL user interface library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GLInit

func GLInit()

func GLRender

func GLRender()

func Notify

func Notify()

Tells the UI module it needs to rebuild.

Types

type Container

type Container struct {
	Element
	Ctrls []*Element
}

type Element

type Element struct {
	// Click is the channel to communicate on onClick, or nil if not clickable.
	Click chan int
	// Should this be rendered with an opaque backing rectangle?
	Pane bool
	// Will this be an OpenGL FBO? (Likely to be a 4:3 square.)
	RSquare bool
	// Text to display, or nil.
	Text string
	// Is this an X or a v button or something?
	Small bool
}

type HContainer

type HContainer struct {
	Container
}

type Ui

type Ui struct {

	// current state
	RectStart []mgl32.Vec2
	RectEnd   []mgl32.Vec2

	// state for generatin'
	Windows []*Window
}

type WContainer

type WContainer struct {
	Container
}

type Window

type Window struct {
	Container
	Start mgl32.Vec2
	End   mgl32.Vec2
}

Jump to

Keyboard shortcuts

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