darwin

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Rendered for darwin/amd64

Index

Constants

View Source
const (
	NSTerminateCancel = 0
	NSTerminateNow    = 1
	NSTerminateLater  = 2
)
View Source
const (
	Event_WindowDidResize = iota
	Event_WindowDrawRect
)

Variables

This section is empty.

Functions

func BackToUI

func BackToUI(callback func())

func CGContextAddArc

func CGContextAddArc(ctx CGContextRef, x, y, radius, startAngle, endAngle float32, clockwise int)

func CGContextAddPath

func CGContextAddPath(ctx CGContextRef, path CGPathRef)

func CGContextClip

func CGContextClip(ctx CGContextRef)

func CGContextClipToRect

func CGContextClipToRect(ctx CGContextRef, rect CGRect)

func CGContextDrawImage

func CGContextDrawImage(ctx CGContextRef, rect CGRect, image CGImageRef)

func CGContextFillEllipseInRect

func CGContextFillEllipseInRect(ctx CGContextRef, rect CGRect)

func CGContextFillPath

func CGContextFillPath(ctx CGContextRef)

func CGContextFillRect

func CGContextFillRect(ctx CGContextRef, rect CGRect)

func CGContextFlush

func CGContextFlush(ctx CGContextRef)

func CGContextResetClip

func CGContextResetClip(ctx CGContextRef)

func CGContextRestoreGState

func CGContextRestoreGState(ctx CGContextRef)

func CGContextRotateCTM

func CGContextRotateCTM(ctx CGContextRef, angle float32)

func CGContextSaveGState

func CGContextSaveGState(ctx CGContextRef)

func CGContextScaleCTM

func CGContextScaleCTM(ctx CGContextRef, x, y float32)

func CGContextSetAlpha

func CGContextSetAlpha(ctx CGContextRef, alpha float32)

func CGContextSetLineDash added in v0.0.7

func CGContextSetLineDash(ctx CGContextRef, phase float32, dash []float32, count int)

func CGContextSetLineWidth

func CGContextSetLineWidth(ctx CGContextRef, width float32)

func CGContextSetRGBFillColor

func CGContextSetRGBFillColor(ctx CGContextRef, red, green, blue, alpha float32)

func CGContextSetRGBStrokeColor

func CGContextSetRGBStrokeColor(ctx CGContextRef, red, green, blue, alpha float32)

func CGContextSetShadowWithColor

func CGContextSetShadowWithColor(ctx CGContextRef, offset CGSize, blur float32, color CGColorRef)

func CGContextStrokePath

func CGContextStrokePath(ctx CGContextRef)

func CGContextStrokeRectWithWidth

func CGContextStrokeRectWithWidth(ctx CGContextRef, rect CGRect, width float32)

func CGContextTranslateCTM

func CGContextTranslateCTM(ctx CGContextRef, x, y float32)

func CGImageGetSize

func CGImageGetSize(image CGImageRef) (width, height int32)

func CGImageRelease

func CGImageRelease(image CGImageRef)

func CGPathAddCurveToPoint

func CGPathAddCurveToPoint(path CGMutablePathRef, transform *CGAffineTransform, x1, y1, x2, y2, x3, y3 float32)

func CGPathAddEllipseInRect

func CGPathAddEllipseInRect(path CGMutablePathRef, transform *CGAffineTransform, rect CGRect)

func CGPathAddLineToPoint

func CGPathAddLineToPoint(path CGMutablePathRef, transform *CGAffineTransform, x, y float32)

func CGPathAddQuadCurveToPoint

func CGPathAddQuadCurveToPoint(path CGMutablePathRef, transform *CGAffineTransform, x2, y2, x3, y3 float32)

func CGPathAddRect

func CGPathAddRect(path CGMutablePathRef, transform *CGAffineTransform, rect CGRect)

func CGPathAddRoundRectPath

func CGPathAddRoundRectPath(path CGMutablePathRef, x, y, width, height, rLT, rRT, rRB, rLB float32)

func CGPathAddRoundedRect

func CGPathAddRoundedRect(path CGMutablePathRef, transform *CGAffineTransform, rect CGRect, cornerWidth, cornerHeight float32)

func CGPathCloseSubpath

func CGPathCloseSubpath(path CGMutablePathRef)

func CGPathMoveToPoint

func CGPathMoveToPoint(path CGMutablePathRef, transform *CGAffineTransform, x, y float32)

func CGPathRelease

func CGPathRelease(path CGPathRef)

func CurrentThreadID

func CurrentThreadID() uint64

func CursorPositionScreenToWindow

func CursorPositionScreenToWindow(window NSWindow, px, py float32) (x, y float32)

func CursorPositionWindowToScreen

func CursorPositionWindowToScreen(window NSWindow, px, py float32) (x, y float32)

func CursorScreenPosition

func CursorScreenPosition() (x, y float32)

func NSObject_release

func NSObject_release(ptr uintptr)

func NSScreen_frameSize

func NSScreen_frameSize() (width, height int32)

func SetNSApplicationDelegate added in v0.0.9

func SetNSApplicationDelegate(delegate NSApplicationDelegate)

func SetWindowEventHandler

func SetWindowEventHandler(handler func(any) bool)

Types

type CGAffineTransform

type CGAffineTransform C.CGAffineTransform

type CGColorRef added in v0.0.9

type CGColorRef C.CGColorRef

func CGColorMake

func CGColorMake(red, green, blue, alpha float32) CGColorRef

type CGContextRef

type CGContextRef C.CGContextRef

func CGCurrentContext

func CGCurrentContext() CGContextRef

type CGImageRef added in v0.0.9

type CGImageRef C.CGImageRef

func CGImageSourceCreateImageAtIndex

func CGImageSourceCreateImageAtIndex(filename string) CGImageRef

type CGMutablePathRef

type CGMutablePathRef C.CGMutablePathRef

func CGPathCreateMutable

func CGPathCreateMutable() CGMutablePathRef

type CGPathRef

type CGPathRef C.CGPathRef

typedef struct CF_BRIDGED_TYPE(id) CGPath *CGMutablePathRef; typedef const struct CF_BRIDGED_TYPE(id) CGPath *CGPathRef; /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/System/Library/Frameworks/CoreGraphics.framework/Versions/A/Headers/CGPath.h

type CGPoint

type CGPoint C.CGPoint

type CGRect

type CGRect C.CGRect

func CGRectMake

func CGRectMake(x, y, width, height float32) CGRect

type CGSize

type CGSize C.CGSize

func CGSizeMake

func CGSizeMake(width, height float32) CGSize

type FontMask

type FontMask C.NSFontTraitMask
const (
	NSBoldFontMask                    FontMask = C.NSBoldFontMask
	NSCompressedFontMask              FontMask = C.NSCompressedFontMask
	NSCondensedFontMask               FontMask = C.NSCondensedFontMask
	NSExpandedFontMask                FontMask = C.NSExpandedFontMask
	NSFixedPitchFontMask              FontMask = C.NSFixedPitchFontMask
	NSItalicFontMask                  FontMask = C.NSItalicFontMask
	NSNarrowFontMask                  FontMask = C.NSNarrowFontMask
	NSNonStandardCharacterSetFontMask FontMask = C.NSNonStandardCharacterSetFontMask
	NSPosterFontMask                  FontMask = C.NSPosterFontMask
	NSSmallCapsFontMask               FontMask = C.NSSmallCapsFontMask
	NSUnboldFontMask                  FontMask = C.NSUnboldFontMask
	NSUnitalicFontMask                FontMask = C.NSUnitalicFontMask
)

type NSApplication

type NSApplication C.uintptr_t

func NSApp

func NSApp() NSApplication

func NSApp_SharedApplication

func NSApp_SharedApplication() NSApplication

func (NSApplication) IsNil

func (me NSApplication) IsNil() bool

func (NSApplication) KeyWindow

func (me NSApplication) KeyWindow() NSWindow

func (NSApplication) Run

func (me NSApplication) Run()

func (NSApplication) Terminate

func (me NSApplication) Terminate()

type NSApplicationDelegate added in v0.0.9

type NSApplicationDelegate interface {
	// Launching Applications
	ApplicationWillFinishLaunching(notification NSNotification)
	ApplicationDidFinishLaunching(notification NSNotification)

	// Managing Active Status
	ApplicationWillBecomeActive(notification NSNotification)
	ApplicationDidBecomeActive(notification NSNotification)
	ApplicationWillResignActive(notification NSNotification)
	ApplicationDidResignActive(notification NSNotification)

	// Terminating Applications
	ApplicationShouldTerminate(sender NSApplication) NSApplicationTerminateReply
	ApplicationShouldTerminateAfterLastWindowClosed(sender NSApplication) bool
	ApplicationWillTerminate(notification NSNotification)

	// Hiding Applications
	ApplicationWillHide(notification NSNotification)
	ApplicationDidHide(notification NSNotification)
	ApplicationWillUnhide(notification NSNotification)
	ApplicationDidUnhide(notification NSNotification)
}

https://developer.apple.com/documentation/appkit/nsapplicationdelegate?language=objc

type NSApplicationTerminateReply added in v0.0.9

type NSApplicationTerminateReply int

type NSArray

type NSArray C.uintptr_t

func (NSArray) Count

func (me NSArray) Count() int

func (NSArray) ObjectAtIndex

func (me NSArray) ObjectAtIndex(index int) uintptr

type NSCursor

type NSCursor C.uintptr_t

func NSCursor_ArrowCursor

func NSCursor_ArrowCursor() NSCursor

func NSCursor_ClosedHandCursor added in v0.0.7

func NSCursor_ClosedHandCursor() NSCursor

func NSCursor_CrosshairCursor added in v0.0.7

func NSCursor_CrosshairCursor() NSCursor

func NSCursor_IBeamCursor

func NSCursor_IBeamCursor() NSCursor

func NSCursor_OpenHandCursor added in v0.0.7

func NSCursor_OpenHandCursor() NSCursor

func NSCursor_PointingHandCursor added in v0.0.7

func NSCursor_PointingHandCursor() NSCursor

func (NSCursor) Set

func (me NSCursor) Set()

type NSEvent

type NSEvent C.uintptr_t

func (NSEvent) ButtonNumber

func (me NSEvent) ButtonNumber() int32

func (NSEvent) Characters

func (me NSEvent) Characters() string

func (NSEvent) HasPreciseScrollingDeltas

func (me NSEvent) HasPreciseScrollingDeltas() bool

func (NSEvent) IsARepeat

func (me NSEvent) IsARepeat() bool

func (NSEvent) KeyCode

func (me NSEvent) KeyCode() uint32

func (NSEvent) LocationInWindow

func (me NSEvent) LocationInWindow() (x, y float32)

func (NSEvent) ModifierFlags

func (me NSEvent) ModifierFlags() NSEventModifierFlags

func (NSEvent) Pressure

func (me NSEvent) Pressure() float32

func (NSEvent) ScrollingDeltaX

func (me NSEvent) ScrollingDeltaX() float32

func (NSEvent) ScrollingDeltaY

func (me NSEvent) ScrollingDeltaY() float32

func (NSEvent) Stage

func (me NSEvent) Stage() int32

func (NSEvent) Type

func (me NSEvent) Type() NSEventType

func (NSEvent) Window

func (me NSEvent) Window() NSWindow

type NSEventModifierFlags

type NSEventModifierFlags uint32
const (
	NSEventModifierFlagCapsLock   NSEventModifierFlags = C.NSEventModifierFlagCapsLock
	NSEventModifierFlagShift      NSEventModifierFlags = C.NSEventModifierFlagShift
	NSEventModifierFlagControl    NSEventModifierFlags = C.NSEventModifierFlagControl
	NSEventModifierFlagOption     NSEventModifierFlags = C.NSEventModifierFlagOption
	NSEventModifierFlagCommand    NSEventModifierFlags = C.NSEventModifierFlagCommand
	NSEventModifierFlagNumericPad NSEventModifierFlags = C.NSEventModifierFlagNumericPad
	NSEventModifierFlagHelp       NSEventModifierFlags = C.NSEventModifierFlagHelp
	NSEventModifierFlagFunction   NSEventModifierFlags = C.NSEventModifierFlagFunction
)

type NSEventSubtype

type NSEventSubtype int32
const (
	NSEventSubtypeWindowExposed          NSEventSubtype = C.NSEventSubtypeWindowExposed
	NSEventSubtypeApplicationActivated   NSEventSubtype = C.NSEventSubtypeApplicationActivated
	NSEventSubtypeApplicationDeactivated NSEventSubtype = C.NSEventSubtypeApplicationDeactivated
	NSEventSubtypeWindowMoved            NSEventSubtype = C.NSEventSubtypeWindowMoved
	NSEventSubtypeScreenChanged          NSEventSubtype = C.NSEventSubtypeScreenChanged
	NSEventSubtypePowerOff               NSEventSubtype = C.NSEventSubtypePowerOff
	NSEventSubtypeMouseEvent             NSEventSubtype = C.NSEventSubtypeMouseEvent
	NSEventSubtypeTabletPoint            NSEventSubtype = C.NSEventSubtypeTabletPoint
	NSEventSubtypeTabletProximity        NSEventSubtype = C.NSEventSubtypeTabletProximity
	NSEventSubtypeTouch                  NSEventSubtype = C.NSEventSubtypeTouch
)

type NSEventType

type NSEventType uint32
const (
	NSEventTypeLeftMouseDown      NSEventType = C.NSEventTypeLeftMouseDown
	NSEventTypeLeftMouseUp        NSEventType = C.NSEventTypeLeftMouseUp
	NSEventTypeRightMouseDown     NSEventType = C.NSEventTypeRightMouseDown
	NSEventTypeRightMouseUp       NSEventType = C.NSEventTypeRightMouseUp
	NSEventTypeMouseMoved         NSEventType = C.NSEventTypeMouseMoved
	NSEventTypeLeftMouseDragged   NSEventType = C.NSEventTypeLeftMouseDragged
	NSEventTypeRightMouseDragged  NSEventType = C.NSEventTypeRightMouseDragged
	NSEventTypeMouseEntered       NSEventType = C.NSEventTypeMouseEntered
	NSEventTypeMouseExited        NSEventType = C.NSEventTypeMouseExited
	NSEventTypeKeyDown            NSEventType = C.NSEventTypeKeyDown
	NSEventTypeKeyUp              NSEventType = C.NSEventTypeKeyUp
	NSEventTypeFlagsChanged       NSEventType = C.NSEventTypeFlagsChanged
	NSEventTypeAppKitDefined      NSEventType = C.NSEventTypeAppKitDefined
	NSEventTypeSystemDefined      NSEventType = C.NSEventTypeSystemDefined
	NSEventTypeApplicationDefined NSEventType = C.NSEventTypeApplicationDefined
	NSEventTypePeriodic           NSEventType = C.NSEventTypePeriodic
	NSEventTypeCursorUpdate       NSEventType = C.NSEventTypeCursorUpdate
	NSEventTypeScrollWheel        NSEventType = C.NSEventTypeScrollWheel
	NSEventTypeTabletPoint        NSEventType = C.NSEventTypeTabletPoint
	NSEventTypeTabletProximity    NSEventType = C.NSEventTypeTabletProximity
	NSEventTypeOtherMouseDown     NSEventType = C.NSEventTypeOtherMouseDown
	NSEventTypeOtherMouseUp       NSEventType = C.NSEventTypeOtherMouseUp
	NSEventTypeOtherMouseDragged  NSEventType = C.NSEventTypeOtherMouseDragged
	NSEventTypeGesture            NSEventType = C.NSEventTypeGesture
	NSEventTypeMagnify            NSEventType = C.NSEventTypeMagnify
	NSEventTypeSwipe              NSEventType = C.NSEventTypeSwipe
	NSEventTypeRotate             NSEventType = C.NSEventTypeRotate
	NSEventTypeBeginGesture       NSEventType = C.NSEventTypeBeginGesture
	NSEventTypeEndGesture         NSEventType = C.NSEventTypeEndGesture
	NSEventTypeSmartMagnify       NSEventType = C.NSEventTypeSmartMagnify
	NSEventTypeQuickLook          NSEventType = C.NSEventTypeQuickLook
	NSEventTypePressure           NSEventType = C.NSEventTypePressure
	NSEventTypeDirectTouch        NSEventType = C.NSEventTypeDirectTouch
)

type NSFont

type NSFont C.uintptr_t

func NSFontSystemFontOfSize

func NSFontSystemFontOfSize(size float32, weight NSFontWeight) NSFont

func NSFontWithName

func NSFontWithName(name string, size float32) NSFont

func (NSFont) IsNil

func (me NSFont) IsNil() bool

type NSFontManager

type NSFontManager C.uintptr_t

func SharedNSFontManager

func SharedNSFontManager() NSFontManager

func (NSFontManager) FontWithFamily

func (me NSFontManager) FontWithFamily(family string, traits uint32, weight int32, size float32) NSFont

type NSFontWeight

type NSFontWeight C.NSFontWeight
const (
	NSFontWeightUltraLight NSFontWeight = -0.800000
	NSFontWeightThin       NSFontWeight = -0.600000
	NSFontWeightLight      NSFontWeight = -0.400000
	NSFontWeightRegular    NSFontWeight = 0.000000
	NSFontWeightMedium     NSFontWeight = 0.230000
	NSFontWeightSemibold   NSFontWeight = 0.300000
	NSFontWeightBold       NSFontWeight = 0.400000
	NSFontWeightHeavy      NSFontWeight = 0.560000
	NSFontWeightBlack      NSFontWeight = 0.620000
)

type NSLayoutManager

type NSLayoutManager C.uintptr_t

func NewNSLayoutManager

func NewNSLayoutManager() NSLayoutManager

func (NSLayoutManager) AddTextContainer

func (me NSLayoutManager) AddTextContainer(textContainer NSTextContainer)

func (NSLayoutManager) CharacterIndexForPoint

func (me NSLayoutManager) CharacterIndexForPoint(textContainer NSTextContainer, font NSFont, text string, width, height, x, y float32) (index uint32, fraction float32)

func (NSLayoutManager) DrawText

func (me NSLayoutManager) DrawText(textContainer NSTextContainer, font NSFont, text string, width, height float32, fgColor, bgColor uint32)

func (NSLayoutManager) MeasureText

func (me NSLayoutManager) MeasureText(textContainer NSTextContainer, font NSFont, text string, width, height float32) (textWidth, textHeight float32)

func (NSLayoutManager) RemoveTextContainerAtIndex

func (me NSLayoutManager) RemoveTextContainerAtIndex(index uint32)

type NSModalResponse

type NSModalResponse int32
const (
	NSModalResponseOK         NSModalResponse = 1
	NSModalResponseCancel     NSModalResponse = 0
	NSModalResponseContinue   NSModalResponse = -1002
	NSModalResponseStop       NSModalResponse = -1000
	NSModalResponseAbort      NSModalResponse = -1001
	NSAlertFirstButtonReturn  NSModalResponse = 1000
	NSAlertSecondButtonReturn NSModalResponse = 1001
	NSAlertThirdButtonReturn  NSModalResponse = 1002
)

type NSNotification added in v0.0.9

type NSNotification C.uintptr_t

type NSOpenPanel

type NSOpenPanel C.uintptr_t

func SharedNSOpenPanel

func SharedNSOpenPanel() NSOpenPanel

-------------- NSOpenPanel -----------------

func (NSOpenPanel) RunModal

func (me NSOpenPanel) RunModal() NSModalResponse

func (NSOpenPanel) SetAllowedContentTypes

func (me NSOpenPanel) SetAllowedContentTypes(types []UTType)

func (NSOpenPanel) SetAllowsMultipleSelection

func (me NSOpenPanel) SetAllowsMultipleSelection(allow bool)

func (NSOpenPanel) SetCanChooseDirectories

func (me NSOpenPanel) SetCanChooseDirectories(can bool)

func (NSOpenPanel) SetCanChooseFiles

func (me NSOpenPanel) SetCanChooseFiles(can bool)

func (NSOpenPanel) SetCanCreateDirectories

func (me NSOpenPanel) SetCanCreateDirectories(can bool)

func (NSOpenPanel) SetDirectoryURL

func (me NSOpenPanel) SetDirectoryURL(url NSURL)

func (NSOpenPanel) URLs

func (me NSOpenPanel) URLs() (urls []NSURL)

type NSPoint

type NSPoint C.NSPoint

type NSRect

type NSRect C.NSRect

func NSMakeRect

func NSMakeRect(x, y, width, height float32) NSRect

func (NSRect) Size

func (me NSRect) Size() (width, height float32)

type NSSavePanel

type NSSavePanel C.uintptr_t

func SharedNSSavePanel

func SharedNSSavePanel() NSSavePanel

-------------- NSSavePanel -----------------

func (NSSavePanel) RunModal

func (me NSSavePanel) RunModal() NSModalResponse

func (NSSavePanel) SetDirectoryURL

func (me NSSavePanel) SetDirectoryURL(url NSURL)

func (NSSavePanel) SetNameFieldStringValue

func (me NSSavePanel) SetNameFieldStringValue(value string)

func (NSSavePanel) URL

func (me NSSavePanel) URL() NSURL

type NSTextContainer

type NSTextContainer C.uintptr_t

func NewNSTextContainer

func NewNSTextContainer(width, height float32) NSTextContainer

func (NSTextContainer) SetSize

func (me NSTextContainer) SetSize(width, height float32)

type NSTextStorage

type NSTextStorage C.uintptr_t

func NewNSTextStorage

func NewNSTextStorage(font NSFont, text string, fgcolor, bgcolor uint32) NSTextStorage

type NSURL

type NSURL C.uintptr_t

func NSURLfileURLWithPath

func NSURLfileURLWithPath(path string) NSURL

func (NSURL) IsNil

func (me NSURL) IsNil() bool

func (NSURL) Path

func (me NSURL) Path() string

type NSView

type NSView C.uintptr_t

func (NSView) IsNil

func (me NSView) IsNil() bool

type NSWindow

type NSWindow C.uintptr_t

func NewNSWindow

func NewNSWindow(width, height int32) NSWindow

func (NSWindow) Alpha

func (me NSWindow) Alpha() float32

func (NSWindow) Center

func (me NSWindow) Center()

func (NSWindow) ContentSize

func (me NSWindow) ContentSize() (width, height int32)

func (NSWindow) InvalidateRectAsync

func (me NSWindow) InvalidateRectAsync(x, y, width, height float32)

func (NSWindow) IsNil

func (me NSWindow) IsNil() bool

func (NSWindow) MakeKeyAndOrderFront

func (me NSWindow) MakeKeyAndOrderFront()

func (NSWindow) SetAlpha

func (me NSWindow) SetAlpha(alpha float32)

func (NSWindow) SetContentView

func (me NSWindow) SetContentView(view NSView)

func (NSWindow) SetTextInputRectAsync

func (me NSWindow) SetTextInputRectAsync(x, y, width, height float32)

func (NSWindow) SetTitle

func (me NSWindow) SetTitle(title string)

func (NSWindow) Size

func (me NSWindow) Size() (width, height int32)

func (NSWindow) StartTextInputAsync

func (me NSWindow) StartTextInputAsync()

func (NSWindow) StopTextInputAsync

func (me NSWindow) StopTextInputAsync()

func (NSWindow) Title

func (me NSWindow) Title() string

type NSWindowStyleMask

type NSWindowStyleMask uint32
const (
	NSWindowStyleMaskBorderless             NSWindowStyleMask = C.NSWindowStyleMaskBorderless
	NSWindowStyleMaskTitled                 NSWindowStyleMask = C.NSWindowStyleMaskTitled
	NSWindowStyleMaskClosable               NSWindowStyleMask = C.NSWindowStyleMaskClosable
	NSWindowStyleMaskMiniaturizable         NSWindowStyleMask = C.NSWindowStyleMaskMiniaturizable
	NSWindowStyleMaskResizable              NSWindowStyleMask = C.NSWindowStyleMaskResizable
	NSWindowStyleMaskUtilityWindow          NSWindowStyleMask = C.NSWindowStyleMaskUtilityWindow
	NSWindowStyleMaskDocModalWindow         NSWindowStyleMask = C.NSWindowStyleMaskDocModalWindow
	NSWindowStyleMaskNonactivatingPanel     NSWindowStyleMask = C.NSWindowStyleMaskNonactivatingPanel
	NSWindowStyleMaskUnifiedTitleAndToolbar NSWindowStyleMask = C.NSWindowStyleMaskUnifiedTitleAndToolbar
	NSWindowStyleMaskFullScreen             NSWindowStyleMask = C.NSWindowStyleMaskFullScreen
	NSWindowStyleMaskFullSizeContentView    NSWindowStyleMask = C.NSWindowStyleMaskFullSizeContentView
	NSWindowStyleMaskHUDWindow              NSWindowStyleMask = C.NSWindowStyleMaskHUDWindow
)

type NSWorkspace

type NSWorkspace C.uintptr_t

func SharedNSWorkspace

func SharedNSWorkspace() NSWorkspace

func (NSWorkspace) ActivateFileViewerSelectingURLs

func (me NSWorkspace) ActivateFileViewerSelectingURLs(urls []NSURL)

func (NSWorkspace) OpenURL

func (me NSWorkspace) OpenURL(url string)

type TypingEvent

type TypingEvent struct {
	Window   NSWindow
	Text     string
	Action   int32 // 0 = Action_Input, 1 = Action_Preedit
	Location int32
	Length   int32
}

type UTType

type UTType C.uintptr_t

func UTTypeWithFilenameExtension

func UTTypeWithFilenameExtension(ext string) UTType

func (UTType) IsNil

func (me UTType) IsNil() bool

type WindowEvent

type WindowEvent struct {
	Window NSWindow
	Type   int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL