Documentation
¶
Index ¶
- Constants
- Variables
- func Active(constraints ...appkit.LayoutConstraint)
- func AddAppearanceObserver(observer Observer)
- func ColorHex(hex string) appkit.Color
- func ColorWithAppearance(light, dark appkit.Color) appkit.Color
- func ColorWithRGBA(r, g, b, a float64) appkit.Color
- func Controller(view appkit.IView) appkit.ViewController
- func FontAttribute(size float64) map[foundation.AttributedStringKey]objc.IObject
- func ImageHierarchical() appkit.ImageSymbolConfiguration
- func IsDark() bool
- func MenuItem(title, icon string, handler action.Handler, ...) appkit.MenuItem
- func RectOf(size foundation.Size) foundation.Rect
- func SeparatorLine(opt SeparatorOption) appkit.Box
- func ShowAlert(opts ...AlertOption)
- func SizeOf(width, height float64) foundation.Size
- func SupportPath(sub ...string) string
- func SymbolButton(symbol string, super appkit.IView) appkit.Button
- func SymbolImage(name string, cfg ...appkit.ImageSymbolConfiguration) appkit.Image
- func TableColumn(identifier appkit.UserInterfaceItemIdentifier, title string) appkit.TableColumn
- func Ternary[T any](b bool, t, f T) T
- type AlertOption
- func WithAlertAccessoryView(view appkit.IView) AlertOption
- func WithAlertButtons(buttons ...string) AlertOption
- func WithAlertHandler(h func(returnCode appkit.ModalResponse)) AlertOption
- func WithAlertHelpAnchor(anchor appkit.HelpAnchorName) AlertOption
- func WithAlertIcon(icon appkit.IImage) AlertOption
- func WithAlertMessage(message string) AlertOption
- func WithAlertOnHelpClicked(clicked func(appkit.Alert) bool) AlertOption
- func WithAlertShowHelp(show bool) AlertOption
- func WithAlertShowSuppression(show bool) AlertOption
- func WithAlertStyle(style appkit.AlertStyle) AlertOption
- func WithAlertTitle(title string) AlertOption
- func WithAlertWindow(w appkit.IWindow) AlertOption
- type Observer
- type ObserverObj
- type SeparatorOption
Constants ¶
View Source
const AppearanceChangedNotification foundation.NotificationName = "AppleInterfaceThemeChangedNotification"
View Source
const Identifier = "com.charlie.proxies"
View Source
const Infinity = math.MaxFloat64
Variables ¶
Functions ¶
func Active ¶
func Active(constraints ...appkit.LayoutConstraint)
func AddAppearanceObserver ¶
func AddAppearanceObserver(observer Observer)
func ColorWithRGBA ¶
func Controller ¶
func Controller(view appkit.IView) appkit.ViewController
func FontAttribute ¶
func FontAttribute(size float64) map[foundation.AttributedStringKey]objc.IObject
func ImageHierarchical ¶
func ImageHierarchical() appkit.ImageSymbolConfiguration
func RectOf ¶
func RectOf(size foundation.Size) foundation.Rect
func SeparatorLine ¶
func SeparatorLine(opt SeparatorOption) appkit.Box
func ShowAlert ¶
func ShowAlert(opts ...AlertOption)
func SizeOf ¶
func SizeOf(width, height float64) foundation.Size
func SupportPath ¶
func SymbolImage ¶
func SymbolImage(name string, cfg ...appkit.ImageSymbolConfiguration) appkit.Image
func TableColumn ¶
func TableColumn(identifier appkit.UserInterfaceItemIdentifier, title string) appkit.TableColumn
Types ¶
type AlertOption ¶
type AlertOption func(*alertOpts)
func WithAlertAccessoryView ¶
func WithAlertAccessoryView(view appkit.IView) AlertOption
func WithAlertButtons ¶
func WithAlertButtons(buttons ...string) AlertOption
func WithAlertHandler ¶
func WithAlertHandler(h func(returnCode appkit.ModalResponse)) AlertOption
func WithAlertHelpAnchor ¶
func WithAlertHelpAnchor(anchor appkit.HelpAnchorName) AlertOption
func WithAlertIcon ¶
func WithAlertIcon(icon appkit.IImage) AlertOption
func WithAlertMessage ¶
func WithAlertMessage(message string) AlertOption
func WithAlertOnHelpClicked ¶
func WithAlertOnHelpClicked(clicked func(appkit.Alert) bool) AlertOption
func WithAlertShowHelp ¶
func WithAlertShowHelp(show bool) AlertOption
func WithAlertShowSuppression ¶
func WithAlertShowSuppression(show bool) AlertOption
func WithAlertStyle ¶
func WithAlertStyle(style appkit.AlertStyle) AlertOption
func WithAlertTitle ¶
func WithAlertTitle(title string) AlertOption
func WithAlertWindow ¶
func WithAlertWindow(w appkit.IWindow) AlertOption
type ObserverObj ¶
type ObserverObj struct {
// contains filtered or unexported fields
}
func (*ObserverObj) AddAppearanceObserver ¶
func (c *ObserverObj) AddAppearanceObserver(observer Observer)
func (*ObserverObj) Start ¶
func (c *ObserverObj) Start(types foundation.NotificationName)
Click to show internal directories.
Click to hide internal directories.