2020-09-24 05:57:32 +10:00
|
|
|
package mac
|
2020-09-21 17:07:10 +10:00
|
|
|
|
2021-10-30 09:51:46 +11:00
|
|
|
//type ActivationPolicy int
|
|
|
|
|
//
|
|
|
|
|
//const (
|
|
|
|
|
// NSApplicationActivationPolicyRegular ActivationPolicy = 0
|
|
|
|
|
// NSApplicationActivationPolicyAccessory ActivationPolicy = 1
|
|
|
|
|
// NSApplicationActivationPolicyProhibited ActivationPolicy = 2
|
|
|
|
|
//)
|
2021-02-23 08:52:56 +11:00
|
|
|
|
2021-10-30 09:51:46 +11:00
|
|
|
type AboutInfo struct {
|
|
|
|
|
Title string
|
|
|
|
|
Message string
|
|
|
|
|
Icon []byte
|
|
|
|
|
}
|
2021-02-23 08:52:56 +11:00
|
|
|
|
2020-11-24 19:43:25 +11:00
|
|
|
// Options are options specific to Mac
|
2020-09-24 05:57:32 +10:00
|
|
|
type Options struct {
|
2021-09-15 08:41:38 +10:00
|
|
|
TitleBar *TitleBar
|
|
|
|
|
Appearance AppearanceType
|
|
|
|
|
WebviewIsTransparent bool
|
|
|
|
|
WindowIsTranslucent bool
|
2023-09-25 00:15:55 +02:00
|
|
|
Preferences *Preferences
|
2023-11-12 12:30:49 +11:00
|
|
|
// ActivationPolicy ActivationPolicy
|
2023-10-21 20:44:38 +01:00
|
|
|
About *AboutInfo
|
|
|
|
|
OnFileOpen func(filePath string) `json:"-"`
|
2023-11-02 09:26:05 +00:00
|
|
|
OnUrlOpen func(filePath string) `json:"-"`
|
2023-11-12 12:30:49 +11:00
|
|
|
// URLHandlers map[string]func(string)
|
2020-09-24 05:57:32 +10:00
|
|
|
}
|