zcommons

package
v0.3.31 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: BSD-3-Clause Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const EventAll = "*"
View Source
const EventOnClick = "zilla-click-"
View Source
const EventOnQuitting = "zilla-quitting"
View Source
const EventOnReady = "zilla-ready"
View Source
const EventOnVersion = "zilla-version" // have a version to communicate
View Source
const EventOnWinToggle = "zilla-win-toggle"
View Source
const EventRequireVersion = "zilla-require-version" // some one is asking for a version
View Source
const IconDefault = "" /* 12244-byte string literal not displayed */
View Source
const IconDefaultBW = "" /* 12960-byte string literal not displayed */
View Source
const UidContext = "zilla-context"
View Source
const UidToggle = "zilla-win-toggle"

Variables

This section is empty.

Functions

This section is empty.

Types

type DesktopOptions

type DesktopOptions struct {
	Icon interface{}  `json:"icon,omitempty"`
	Menu *MenuOptions `json:"menu"`
}

func NewDesktopOptions

func NewDesktopOptions(args ...interface{}) (instance *DesktopOptions, err error)

func (*DesktopOptions) Map

func (instance *DesktopOptions) Map() map[string]interface{}

func (*DesktopOptions) String

func (instance *DesktopOptions) String() string

type IZApp

type IZApp interface {
	gg_app.IAppLaunchCtrl
}

type IZEmitter

type IZEmitter interface {
	On(name string, callback func(event *gg_events.Event))
}
type MenuItemOptions struct {
	Uid       string       `json:"uid"`
	Caption   string       `json:"caption"`
	Disabled  bool         `json:"disabled"`
	Separator bool         `json:"separator"`
	Icon      interface{}  `json:"icon"`
	ChildMenu *MenuOptions `json:"child_menu"`
}
type MenuOptions struct {
	Caption string             `json:"caption"`
	Items   []*MenuItemOptions `json:"items"`
	Icon    interface{}        `json:"icon"`
}

func NewMenuOptions

func NewMenuOptions(args ...interface{}) (instance *MenuOptions, err error)
func (instance *MenuOptions) Map() map[string]interface{}
func (instance *MenuOptions) String() string

type UIHandlerFunc

type UIHandlerFunc func(args ...interface{})

Jump to

Keyboard shortcuts

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