ns

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package ns provides access to Apple's AppKit API (https://developer.apple.com/documentation/appkit).

This package is in very early stages of development. It's a minimal implementation with scope limited to supporting the movingtriangle example.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type View

type View struct {
	// contains filtered or unexported fields
}

View is the infrastructure for drawing, printing, and handling events in an app.

Reference: https://developer.apple.com/documentation/appkit/nsview.

func (View) IsInFullScreenMode

func (v View) IsInFullScreenMode() bool

IsInFullScreenMode returns a boolean value indicating whether the view is in full screen mode.

Reference: https://developer.apple.com/documentation/appkit/nsview/1483337-infullscreenmode.

func (View) SetLayer

func (v View) SetLayer(l ca.Layer)

SetLayer sets v.layer to l.

Reference: https://developer.apple.com/documentation/appkit/nsview/1483298-layer.

func (View) SetWantsLayer

func (v View) SetWantsLayer(wantsLayer bool)

SetWantsLayer sets v.wantsLayer to wantsLayer.

Reference: https://developer.apple.com/documentation/appkit/nsview/1483695-wantslayer.

type Window

type Window struct {
	// contains filtered or unexported fields
}

Window is a window that an app displays on the screen.

Reference: https://developer.apple.com/documentation/appkit/nswindow.

func NewWindow

func NewWindow(window uintptr) Window

NewWindow returns a Window that wraps an existing NSWindow * pointer.

func (Window) ContentView

func (w Window) ContentView() View

ContentView returns the window's content view, the highest accessible View in the window's view hierarchy.

Reference: https://developer.apple.com/documentation/appkit/nswindow/1419160-contentview.

Jump to

Keyboard shortcuts

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