github.com/secoba/wails/v2@v2.6.4/pkg/options/mac/mac.go (about)

     1  package mac
     2  
     3  //type ActivationPolicy int
     4  //
     5  //const (
     6  //	NSApplicationActivationPolicyRegular    ActivationPolicy = 0
     7  //	NSApplicationActivationPolicyAccessory  ActivationPolicy = 1
     8  //	NSApplicationActivationPolicyProhibited ActivationPolicy = 2
     9  //)
    10  
    11  type AboutInfo struct {
    12  	Title   string
    13  	Message string
    14  	Icon    []byte
    15  }
    16  
    17  // Options are options specific to Mac
    18  type Options struct {
    19  	TitleBar             *TitleBar
    20  	Appearance           AppearanceType
    21  	WebviewIsTransparent bool
    22  	WindowIsTranslucent  bool
    23  	Preferences          *Preferences
    24  	// ActivationPolicy     ActivationPolicy
    25  	About      *AboutInfo
    26  	OnFileOpen func(filePath string) `json:"-"`
    27  	OnUrlOpen  func(filePath string) `json:"-"`
    28  	// URLHandlers          map[string]func(string)
    29  }