demo

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MPL-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	NewWindowActionID = unison.UserBaseID + iota
	OpenActionID
)

IDs for the actions

Variables

View Source
var (
	// NewWindowAction opens a new demo window when triggered.
	NewWindowAction *unison.Action
	// OpenAction presents a file open dialog and then prints any selected files onto the console.
	OpenAction *unison.Action
)

Functions

func ClassicAppleLogoImage

func ClassicAppleLogoImage() (*unison.Image, error)

ClassicAppleLogoImage returns an image of the classic rainbow-colored Apple logo.

func HomeImage

func HomeImage() (*unison.Image, error)

HomeImage returns a stylized image of a home, suitable for an icon.

func MountainsImage

func MountainsImage() (*unison.Image, error)

MountainsImage returns an image of some mountains.

func NewDemoWindow

func NewDemoWindow(where geom32.Point) (*unison.Window, error)

NewDemoWindow creates and displays our demo window.

func ShowAboutWindow

func ShowAboutWindow(item unison.MenuItem)

ShowAboutWindow displays the about window, creating it if necessary.

Types

This section is empty.

Jump to

Keyboard shortcuts

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