Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppearanceType ¶
type AppearanceType string
AppearanceType is a type of Appearance for Cocoa windows
const ( // DefaultAppearance uses the default system value DefaultAppearance AppearanceType = "" // NSAppearanceNameAqua - The standard light system appearance. NSAppearanceNameAqua AppearanceType = "NSAppearanceNameAqua" // NSAppearanceNameDarkAqua - The standard dark system appearance. NSAppearanceNameDarkAqua AppearanceType = "NSAppearanceNameDarkAqua" // NSAppearanceNameVibrantLight - The light vibrant appearance NSAppearanceNameVibrantLight AppearanceType = "NSAppearanceNameVibrantLight" // NSAppearanceNameAccessibilityHighContrastAqua - A high-contrast version of the standard light system appearance. NSAppearanceNameAccessibilityHighContrastAqua AppearanceType = "NSAppearanceNameAccessibilityHighContrastAqua" // NSAppearanceNameAccessibilityHighContrastDarkAqua - A high-contrast version of the standard dark system appearance. NSAppearanceNameAccessibilityHighContrastDarkAqua AppearanceType = "NSAppearanceNameAccessibilityHighContrastDarkAqua" // NSAppearanceNameAccessibilityHighContrastVibrantLight - A high-contrast version of the light vibrant appearance. NSAppearanceNameAccessibilityHighContrastVibrantLight AppearanceType = "NSAppearanceNameAccessibilityHighContrastVibrantLight" // NSAppearanceNameAccessibilityHighContrastVibrantDark - A high-contrast version of the dark vibrant appearance. NSAppearanceNameAccessibilityHighContrastVibrantDark AppearanceType = "NSAppearanceNameAccessibilityHighContrastVibrantDark" )
type Options ¶
type Options struct { TitleBar *TitleBar Appearance AppearanceType WebviewIsTransparent bool WindowIsTranslucent bool //ActivationPolicy ActivationPolicy About *AboutInfo }
Options are options specific to Mac
type TitleBar ¶
type TitleBar struct { TitlebarAppearsTransparent bool HideTitle bool HideTitleBar bool FullSizeContent bool UseToolbar bool HideToolbarSeparator bool }
TitleBar contains options for the Mac titlebar
func TitleBarDefault ¶
func TitleBarDefault() *TitleBar
TitleBarDefault results in the default Mac Titlebar
func TitleBarHidden ¶
func TitleBarHidden() *TitleBar
TitleBarHidden results in a hidden title bar and a full size content window, yet the title bar still has the standard window controls (“traffic lights”) in the top left.
func TitleBarHiddenInset ¶
func TitleBarHiddenInset() *TitleBar
TitleBarHiddenInset results in a hidden title bar with an alternative look where the traffic light buttons are slightly more inset from the window edge.
Click to show internal directories.
Click to hide internal directories.