Documentation ¶
Index ¶
- func Log(format string, a ...interface{})
- func NewMux(env Env) (mux *Mux, master Env)
- func Run(fn func())
- type Env
- type Event
- type EventClose
- type EventKeyboardChar
- type EventKeyboardDown
- type EventKeyboardRepeat
- type EventKeyboardUp
- type EventMouseLeftDown
- type EventMouseLeftUp
- type EventMouseMiddleDown
- type EventMouseMiddleUp
- type EventMouseMove
- type EventMouseRightDown
- type EventMouseRightUp
- type EventMouseScroll
- type EventResize
- type EventUpdate
- type Mux
- type Option
- type Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type Event interface { Name() string Data() interface{} }
Event includes its name and data.
type EventMouseLeftDown ¶
EventMouseLeftDown event
type EventMouseLeftUp ¶
EventMouseLeftUp event
type EventMouseMiddleDown ¶
EventMouseMiddleDown event
func (EventMouseMiddleDown) Data ¶
func (mmd EventMouseMiddleDown) Data() interface{}
Data for event
type EventMouseMiddleUp ¶
EventMouseMiddleUp event
type EventMouseMove ¶
EventMouseMove event
type EventMouseRightDown ¶
EventMouseRightDown event
type EventMouseRightUp ¶
EventMouseRightUp event
type EventMouseScroll ¶
EventMouseScroll event
type EventResize ¶
EventResize event
type EventUpdate ¶
EventUpdate event
type Mux ¶
type Mux struct {
// contains filtered or unexported fields
}
Mux can be used to multiplex an Env.
type Option ¶
type Option func(*options)
Option is a functional option to the window constructor New.
type Window ¶
type Window struct {
// contains filtered or unexported fields
}
Window is an Env that handles an actual graphical window.
func Open ¶
Open a new window with all the supplied options.
The default title is empty and the default size is 640x480.
Click to show internal directories.
Click to hide internal directories.