Documentation ¶
Rendered for darwin/amd64
Index ¶
- Constants
- func BackToUI(callback func())
- func CGContextAddArc(ctx CGContextRef, x, y, radius, startAngle, endAngle float32, clockwise int)
- func CGContextAddPath(ctx CGContextRef, path CGPathRef)
- func CGContextClip(ctx CGContextRef)
- func CGContextClipToRect(ctx CGContextRef, rect CGRect)
- func CGContextDrawImage(ctx CGContextRef, rect CGRect, image CGImageRef)
- func CGContextFillEllipseInRect(ctx CGContextRef, rect CGRect)
- func CGContextFillPath(ctx CGContextRef)
- func CGContextFillRect(ctx CGContextRef, rect CGRect)
- func CGContextFlush(ctx CGContextRef)
- func CGContextResetClip(ctx CGContextRef)
- func CGContextRestoreGState(ctx CGContextRef)
- func CGContextRotateCTM(ctx CGContextRef, angle float32)
- func CGContextSaveGState(ctx CGContextRef)
- func CGContextScaleCTM(ctx CGContextRef, x, y float32)
- func CGContextSetAlpha(ctx CGContextRef, alpha float32)
- func CGContextSetLineDash(ctx CGContextRef, phase float32, dash []float32, count int)
- func CGContextSetLineWidth(ctx CGContextRef, width float32)
- func CGContextSetRGBFillColor(ctx CGContextRef, red, green, blue, alpha float32)
- func CGContextSetRGBStrokeColor(ctx CGContextRef, red, green, blue, alpha float32)
- func CGContextSetShadowWithColor(ctx CGContextRef, offset CGSize, blur float32, color CGColorRef)
- func CGContextStrokePath(ctx CGContextRef)
- func CGContextStrokeRectWithWidth(ctx CGContextRef, rect CGRect, width float32)
- func CGContextTranslateCTM(ctx CGContextRef, x, y float32)
- func CGImageGetSize(image CGImageRef) (width, height int32)
- func CGImageRelease(image CGImageRef)
- func CGPathAddCurveToPoint(path CGMutablePathRef, transform *CGAffineTransform, ...)
- func CGPathAddEllipseInRect(path CGMutablePathRef, transform *CGAffineTransform, rect CGRect)
- func CGPathAddLineToPoint(path CGMutablePathRef, transform *CGAffineTransform, x, y float32)
- func CGPathAddQuadCurveToPoint(path CGMutablePathRef, transform *CGAffineTransform, x2, y2, x3, y3 float32)
- func CGPathAddRect(path CGMutablePathRef, transform *CGAffineTransform, rect CGRect)
- func CGPathAddRoundRectPath(path CGMutablePathRef, x, y, width, height, rLT, rRT, rRB, rLB float32)
- func CGPathAddRoundedRect(path CGMutablePathRef, transform *CGAffineTransform, rect CGRect, ...)
- func CGPathCloseSubpath(path CGMutablePathRef)
- func CGPathMoveToPoint(path CGMutablePathRef, transform *CGAffineTransform, x, y float32)
- func CGPathRelease(path CGPathRef)
- func CurrentThreadID() uint64
- func CursorPositionScreenToWindow(window NSWindow, px, py float32) (x, y float32)
- func CursorPositionWindowToScreen(window NSWindow, px, py float32) (x, y float32)
- func CursorScreenPosition() (x, y float32)
- func NSObject_release(ptr uintptr)
- func NSScreen_frameSize() (width, height int32)
- func SetNSApplicationDelegate(delegate NSApplicationDelegate)
- func SetWindowEventHandler(handler func(any) bool)
- type CGAffineTransform
- type CGColorRef
- type CGContextRef
- type CGImageRef
- type CGMutablePathRef
- type CGPathRef
- type CGPoint
- type CGRect
- type CGSize
- type FontMask
- type NSApplication
- type NSApplicationDelegate
- type NSApplicationTerminateReply
- type NSArray
- type NSCursor
- type NSEvent
- func (me NSEvent) ButtonNumber() int32
- func (me NSEvent) Characters() string
- func (me NSEvent) HasPreciseScrollingDeltas() bool
- func (me NSEvent) IsARepeat() bool
- func (me NSEvent) KeyCode() uint32
- func (me NSEvent) LocationInWindow() (x, y float32)
- func (me NSEvent) ModifierFlags() NSEventModifierFlags
- func (me NSEvent) Pressure() float32
- func (me NSEvent) ScrollingDeltaX() float32
- func (me NSEvent) ScrollingDeltaY() float32
- func (me NSEvent) Stage() int32
- func (me NSEvent) Subtype() NSEventSubtype
- func (me NSEvent) Type() NSEventType
- func (me NSEvent) Window() NSWindow
- type NSEventModifierFlags
- type NSEventSubtype
- type NSEventType
- type NSFont
- type NSFontManager
- type NSFontWeight
- type NSLayoutManager
- func (me NSLayoutManager) AddTextContainer(textContainer NSTextContainer)
- func (me NSLayoutManager) CharacterIndexForPoint(textContainer NSTextContainer, font NSFont, text string, ...) (index uint32, fraction float32)
- func (me NSLayoutManager) DrawText(textContainer NSTextContainer, font NSFont, text string, width, height float32, ...)
- func (me NSLayoutManager) MeasureText(textContainer NSTextContainer, font NSFont, text string, width, height float32) (textWidth, textHeight float32)
- func (me NSLayoutManager) RemoveTextContainerAtIndex(index uint32)
- type NSModalResponse
- type NSNotification
- type NSOpenPanel
- func (me NSOpenPanel) RunModal() NSModalResponse
- func (me NSOpenPanel) SetAllowedContentTypes(types []UTType)
- func (me NSOpenPanel) SetAllowsMultipleSelection(allow bool)
- func (me NSOpenPanel) SetCanChooseDirectories(can bool)
- func (me NSOpenPanel) SetCanChooseFiles(can bool)
- func (me NSOpenPanel) SetCanCreateDirectories(can bool)
- func (me NSOpenPanel) SetDirectoryURL(url NSURL)
- func (me NSOpenPanel) URLs() (urls []NSURL)
- type NSPoint
- type NSRect
- type NSSavePanel
- type NSTextContainer
- type NSTextStorage
- type NSURL
- type NSView
- type NSWindow
- func (me NSWindow) Alpha() float32
- func (me NSWindow) Center()
- func (me NSWindow) ContentSize() (width, height int32)
- func (me NSWindow) InvalidateRectAsync(x, y, width, height float32)
- func (me NSWindow) IsNil() bool
- func (me NSWindow) MakeKeyAndOrderFront()
- func (me NSWindow) SetAlpha(alpha float32)
- func (me NSWindow) SetContentView(view NSView)
- func (me NSWindow) SetTextInputRectAsync(x, y, width, height float32)
- func (me NSWindow) SetTitle(title string)
- func (me NSWindow) Size() (width, height int32)
- func (me NSWindow) StartTextInputAsync()
- func (me NSWindow) StopTextInputAsync()
- func (me NSWindow) Title() string
- type NSWindowStyleMask
- type NSWorkspace
- type TypingEvent
- type UTType
- type WindowEvent
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 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 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 ¶
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 ¶
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
func CGPathCreateWithRoundedRect ¶
func CGPathCreateWithRoundedRect(rect CGRect, cornerWidth, cornerHeight float32, transform *CGAffineTransform) CGPathRef
https://developer.apple.com/documentation/coregraphics/1411218-cgpathcreatewithroundedrect/
type CGRect ¶
func CGRectMake ¶
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 ¶
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 ¶
func (NSArray) ObjectAtIndex ¶
type NSCursor ¶
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
type NSEvent ¶
func (NSEvent) ButtonNumber ¶
func (NSEvent) Characters ¶
func (NSEvent) HasPreciseScrollingDeltas ¶
func (NSEvent) LocationInWindow ¶
func (NSEvent) ModifierFlags ¶
func (me NSEvent) ModifierFlags() NSEventModifierFlags
func (NSEvent) ScrollingDeltaX ¶
func (NSEvent) ScrollingDeltaY ¶
func (NSEvent) Subtype ¶
func (me NSEvent) Subtype() NSEventSubtype
https://developer.apple.com/documentation/appkit/nsevent/1527726-subtype?language=objc
func (NSEvent) Type ¶
func (me NSEvent) Type() NSEventType
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 ¶
func NSFontSystemFontOfSize ¶
func NSFontSystemFontOfSize(size float32, weight NSFontWeight) NSFont
func NSFontWithName ¶
type NSFontManager ¶
func SharedNSFontManager ¶
func SharedNSFontManager() NSFontManager
func (NSFontManager) FontWithFamily ¶
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 ¶
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 NSOpenPanel ¶
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 NSRect ¶
func NSMakeRect ¶
type NSSavePanel ¶
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 ¶
func NewNSTextContainer ¶
func NewNSTextContainer(width, height float32) NSTextContainer
func (NSTextContainer) SetSize ¶
func (me NSTextContainer) SetSize(width, height float32)
type NSTextStorage ¶
func NewNSTextStorage ¶
func NewNSTextStorage(font NSFont, text string, fgcolor, bgcolor uint32) NSTextStorage
type NSURL ¶
func NSURLfileURLWithPath ¶
type NSWindow ¶
func NewNSWindow ¶
func (NSWindow) ContentSize ¶
func (NSWindow) InvalidateRectAsync ¶
func (NSWindow) MakeKeyAndOrderFront ¶
func (me NSWindow) MakeKeyAndOrderFront()
func (NSWindow) SetContentView ¶
func (NSWindow) SetTextInputRectAsync ¶
func (NSWindow) StartTextInputAsync ¶
func (me NSWindow) StartTextInputAsync()
func (NSWindow) StopTextInputAsync ¶
func (me NSWindow) StopTextInputAsync()
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 ¶
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 UTType ¶
type WindowEvent ¶
Click to show internal directories.
Click to hide internal directories.