Documentation
¶
Index ¶
- Constants
- func GetScreenSize() (width int, height int)
- func Run(readyCallback func())
- func SetAssetPath(a string)
- func SetBindataSource(assetFunc func(name string) ([]byte, error))
- func SetMessageHandler(messageName string, handler func(*Window, *Message) Data)
- func Stop()
- type Data
- type Message
- type Window
- type WindowOptions
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func GetScreenSize ¶
func SetAssetPath ¶
func SetAssetPath(a string)
func SetBindataSource ¶
func SetMessageHandler ¶
Types ¶
type Window ¶
type Window struct {
// contains filtered or unexported fields
}
func OpenWindow ¶
func OpenWindow(options WindowOptions) *Window
func (*Window) SetCloseHandler ¶
func (*Window) SetPosition ¶
type WindowOptions ¶
type WindowOptions struct { // Required options Template string StyleFlags int // Specify a window title, rather than relying on the HTML <title> tag Title string // Specify window size as a fixed pixel size or percent of screen size PixelWidth int PixelHeight int PercentWidth float64 PercentHeight float64 // Specify positioning rules; either centered, by pixel, or by percent. Centered bool PixelLeft int PixelTop int PercentLeft float64 PercentTop float64 RememberGeometry bool OpenInBrowser bool }
Click to show internal directories.
Click to hide internal directories.