exp: golang.org/x/exp/shiny/driver/mtldriver/internal/appkit Index | Files

package appkit

import "golang.org/x/exp/shiny/driver/mtldriver/internal/appkit"

Package appkit 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 mtldriver.

It was copied from dmitri.shuralyov.com/gpu/mtl/example/movingtriangle/internal/ns.

Index

Package Files

appkit.go

type View Uses

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) SetLayer Uses

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

SetLayer sets v.layer to l.

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

func (View) SetWantsLayer Uses

func (v View) SetWantsLayer(wantsLayer bool)

SetWantsLayer sets v.wantsLayer to wantsLayer.

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

type Window Uses

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 Uses

func NewWindow(window unsafe.Pointer) Window

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

func (Window) ContentView Uses

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.

Package appkit imports 3 packages (graph) and is imported by 1 packages. Updated 2019-11-08 with GOOS=darwin. Refresh now. Tools for package owners.