Documentation ¶
Rendered for darwin/amd64
Index ¶
- func Beep()
- func DoubleClickInterval() time.Duration
- func HideApplication()
- func HideOtherApplications()
- func InstallAppDelegate(urlOpener func([]string))
- func InstallSystemThemeChangedCallback(f func())
- func IsDarkModeEnabled() bool
- func SetActivationPolicy(policy ActivationPolicy)
- func SetHelpMenu(menu Menu)
- func SetMainMenu(menu Menu)
- func SetServicesMenu(menu Menu)
- func SetWindowsMenu(menu Menu)
- func UnhideAllApplications()
- type ActivationPolicy
- type Array
- type ControlStateValue
- type EventModifierFlags
- type Menu
- func (m Menu) InsertItemAtIndex(item MenuItem, index int)
- func (m Menu) ItemAtIndex(index int) MenuItem
- func (m Menu) NumberOfItems() int
- func (m Menu) Popup(wnd Window, menu Menu, item MenuItem, bounds geom.Rect[float32])
- func (m Menu) Release()
- func (m Menu) RemoveAll()
- func (m Menu) RemoveItemAtIndex(index int)
- func (m Menu) Title() string
- type MenuItem
- func (m MenuItem) IsSeparatorItem() bool
- func (m MenuItem) KeyBinding() (keyEquivalent string, modifiers EventModifierFlags)
- func (m MenuItem) Menu() Menu
- func (m MenuItem) SetKeyBinding(keyEquivalent string, modifiers EventModifierFlags)
- func (m MenuItem) SetState(state ControlStateValue)
- func (m MenuItem) SetSubMenu(menu Menu)
- func (m MenuItem) SetTitle(title string)
- func (m MenuItem) State() ControlStateValue
- func (m MenuItem) SubMenu() Menu
- func (m MenuItem) Tag() int
- func (m MenuItem) Title() string
- type MutableArray
- type OpenPanel
- func (p OpenPanel) AllowedFileTypes() Array
- func (p OpenPanel) AllowsMultipleSelection() bool
- func (p OpenPanel) CanChooseDirectories() bool
- func (p OpenPanel) CanChooseFiles() bool
- func (p OpenPanel) DirectoryURL() URL
- func (p OpenPanel) ResolvesAliases() bool
- func (p OpenPanel) RunModal() bool
- func (p OpenPanel) SetAllowedFileTypes(types Array)
- func (p OpenPanel) SetAllowsMultipleSelection(set bool)
- func (p OpenPanel) SetCanChooseDirectories(set bool)
- func (p OpenPanel) SetCanChooseFiles(set bool)
- func (p OpenPanel) SetDirectoryURL(url URL)
- func (p OpenPanel) SetResolvesAliases(set bool)
- func (p OpenPanel) URLs() Array
- type SavePanel
- func (p SavePanel) AllowedFileTypes() Array
- func (p SavePanel) DirectoryURL() URL
- func (p SavePanel) InitialFileName() string
- func (p SavePanel) RunModal() bool
- func (p SavePanel) SetAllowedFileTypes(types Array)
- func (p SavePanel) SetDirectoryURL(url URL)
- func (p SavePanel) SetInitialFileName(name string)
- func (p SavePanel) URL() URL
- type String
- type URL
- type View
- type Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoubleClickInterval ¶
func HideApplication ¶ added in v0.3.0
func HideApplication()
func HideOtherApplications ¶ added in v0.3.0
func HideOtherApplications()
func InstallAppDelegate ¶ added in v0.3.0
func InstallAppDelegate(urlOpener func([]string))
func InstallSystemThemeChangedCallback ¶ added in v0.3.0
func InstallSystemThemeChangedCallback(f func())
func IsDarkModeEnabled ¶ added in v0.3.0
func IsDarkModeEnabled() bool
func SetActivationPolicy ¶ added in v0.3.0
func SetActivationPolicy(policy ActivationPolicy)
func SetHelpMenu ¶ added in v0.3.0
func SetHelpMenu(menu Menu)
func SetMainMenu ¶ added in v0.3.0
func SetMainMenu(menu Menu)
func SetServicesMenu ¶ added in v0.3.0
func SetServicesMenu(menu Menu)
func SetWindowsMenu ¶ added in v0.3.0
func SetWindowsMenu(menu Menu)
func UnhideAllApplications ¶ added in v0.3.0
func UnhideAllApplications()
Types ¶
type ActivationPolicy ¶
type ActivationPolicy uint
const ( ActivationPolicyRegular ActivationPolicy = iota ActivationPolicyAccessory ActivationPolicyProhibited )
type Array ¶
type Array C.CFArrayRef
func NewArrayFromStringSlice ¶ added in v0.3.0
func (Array) ArrayOfStringToStringSlice ¶ added in v0.3.0
func (Array) ArrayOfURLToStringSlice ¶ added in v0.3.0
func (Array) StringAtIndex ¶
func (Array) URLAtIndex ¶ added in v0.3.0
type ControlStateValue ¶
type ControlStateValue int
const ( ControlStateValueMixed ControlStateValue = iota - 1 ControlStateValueOff ControlStateValueOn )
type EventModifierFlags ¶
type EventModifierFlags uint
const ( EventModifierFlagCapsLock EventModifierFlags = 1 << (16 + iota) EventModifierFlagShift EventModifierFlagControl EventModifierFlagOption EventModifierFlagCommand )
func CurrentModifierFlags ¶ added in v0.53.0
func CurrentModifierFlags() EventModifierFlags
type Menu ¶
func (Menu) InsertItemAtIndex ¶
func (Menu) ItemAtIndex ¶
func (Menu) NumberOfItems ¶
func (Menu) RemoveItemAtIndex ¶
type MenuItem ¶
type MenuItem C.NSMenuItemRef
func NewMenuItem ¶
func NewSeparatorMenuItem ¶
func NewSeparatorMenuItem() MenuItem
func (MenuItem) IsSeparatorItem ¶
func (MenuItem) KeyBinding ¶ added in v0.7.0
func (m MenuItem) KeyBinding() (keyEquivalent string, modifiers EventModifierFlags)
func (MenuItem) SetKeyBinding ¶ added in v0.7.0
func (m MenuItem) SetKeyBinding(keyEquivalent string, modifiers EventModifierFlags)
func (MenuItem) SetState ¶
func (m MenuItem) SetState(state ControlStateValue)
func (MenuItem) SetSubMenu ¶
func (MenuItem) State ¶
func (m MenuItem) State() ControlStateValue
type MutableArray ¶
type MutableArray C.CFMutableArrayRef
type OpenPanel ¶
type OpenPanel C.NSOpenPanelRef
func NewOpenPanel ¶
func NewOpenPanel() OpenPanel
func (OpenPanel) AllowedFileTypes ¶ added in v0.3.0
func (OpenPanel) AllowsMultipleSelection ¶
func (OpenPanel) CanChooseDirectories ¶
func (OpenPanel) CanChooseFiles ¶
func (OpenPanel) DirectoryURL ¶ added in v0.3.0
func (OpenPanel) ResolvesAliases ¶
func (OpenPanel) SetAllowedFileTypes ¶ added in v0.3.0
func (OpenPanel) SetAllowsMultipleSelection ¶
func (OpenPanel) SetCanChooseDirectories ¶
func (OpenPanel) SetCanChooseFiles ¶
func (OpenPanel) SetDirectoryURL ¶ added in v0.3.0
func (OpenPanel) SetResolvesAliases ¶
type SavePanel ¶
type SavePanel C.NSSavePanelRef
func NewSavePanel ¶
func NewSavePanel() SavePanel
func (SavePanel) AllowedFileTypes ¶
func (SavePanel) DirectoryURL ¶
func (SavePanel) InitialFileName ¶ added in v0.59.0
func (SavePanel) SetAllowedFileTypes ¶
func (SavePanel) SetDirectoryURL ¶
func (SavePanel) SetInitialFileName ¶ added in v0.59.0
type String ¶
type String C.CFStringRef
Click to show internal directories.
Click to hide internal directories.