Directories
¶
| Path | Synopsis |
|---|---|
|
Package audiosession holds iOS's one AVAudioSession for every part of NSGo that sets it: videos, the audio package's players and sounds, speech and microphone.
|
Package audiosession holds iOS's one AVAudioSession for every part of NSGo that sets it: videos, the audio package's players and sounds, speech and microphone. |
|
Package automation is the protocol between the nsgo tool and an app `nsgo dev -automation` built: the tool sends a Request and the app's agent (package nsgotest) answers it.
|
Package automation is the protocol between the nsgo tool and an app `nsgo dev -automation` built: the tool sends a Request and the app's agent (package nsgotest) answers it. |
|
Package backend runs an app on the platform it is built for, which build tags pick (run_*.go, view_*.go): what nsgo.Run and nsgo.NewView do once they have gathered their options.
|
Package backend runs an app on the platform it is built for, which build tags pick (run_*.go, view_*.go): what nsgo.Run and nsgo.NewView do once they have gathered their options. |
|
Package cldr formats dates and times by the Unicode CLDR's data, as ICU and Intl write them, and transforms messages for the pseudo locales, for package i18n.
|
Package cldr formats dates and times by the Unicode CLDR's data, as ICU and Intl write them, and transforms messages for the pseudo locales, for package i18n. |
|
internal/gen
command
Command gen writes tables.go, the data of the Unicode CLDR package cldr formats dates with, from a pinned release of cldr-json: go generate ./internal/cldr runs it.
|
Command gen writes tables.go, the data of the Unicode CLDR package cldr formats dates with, from a pinned release of cldr-json: go generate ./internal/cldr runs it. |
|
Package devtools is what nsgo dev -devtools and -automation read from a running app and send it: core registers each surface's tree here while Enabled, and nsgo's dev client serves them to the DevTools page and hands them to the automation's Agent, over one channel.
|
Package devtools is what nsgo dev -devtools and -automation read from a running app and send it: core registers each surface's tree here while Enabled, and nsgo's dev client serves them to the DevTools page and hands them to the automation's Agent, over one channel. |
|
Package driver is the protocol between core and the platform backends: the mount items a commit sends, the events backends report, the TextEngine they implement, and the values both sides share.
|
Package driver is the protocol between core and the platform backends: the mount items a commit sends, the events backends report, the TextEngine they implement, and the values both sides share. |
|
Package engine runs an app on a goroutine of its own and hands the platform one MountBatch per commit.
|
Package engine runs an app on a goroutine of its own and hands the platform one MountBatch per commit. |
|
Package layout is NSGo's layout engine: a Go reimplementation of the CSS layout algorithms of Taffy 0.15 with the features NSH enables (block, flexbox, grid and content sizes; no floats, no calc(), no balanced flex wrapping).
|
Package layout is NSGo's layout engine: a Go reimplementation of the CSS layout algorithms of Taffy 0.15 with the features NSH enables (block, flexbox, grid and content sizes; no floats, no calc(), no balanced flex wrapping). |
|
Package moduletest holds the tests that check the whole module rather than one package: its import layers (layering_test.go), what apps link (linked_test.go), the public API's types (api_test.go), that base reads no theme (theme_test.go) and the skills it gives coding agents (skills_test.go).
|
Package moduletest holds the tests that check the whole module rather than one package: its import layers (layering_test.go), what apps link (linked_test.go), the public API's types (api_test.go), that base reads no theme (theme_test.go) and the skills it gives coding agents (skills_test.go). |
|
platform
|
|
|
android/runtime
Package runtime holds the prebuilt parts of every APK: the Java runtime in ../java, compiled to dex, and the manifest nsgo build fills in for each app; and the same runtime as a jar, for the libraries nsgo build -embed makes.
|
Package runtime holds the prebuilt parts of every APK: the Java runtime in ../java, compiled to dex, and the manifest nsgo build fills in for each app; and the same runtime as a jar, for the libraries nsgo build -embed makes. |
|
apple
Package apple holds what the AppKit and UIKit backends share, called through purego without cgo: CoreFoundation strings, CoreGraphics colors and canvases, layer styles and transitions, the CoreText text engine, which prepares and lays text out on the engine goroutine for the main thread to draw, and image views, which load and decode off it.
|
Package apple holds what the AppKit and UIKit backends share, called through purego without cgo: CoreFoundation strings, CoreGraphics colors and canvases, layer styles and transitions, the CoreText text engine, which prepares and lays text out on the engine goroutine for the main thread to draw, and image views, which load and decode off it. |
|
canvas2d
Package canvas2d plays NSGo's drawings into a canvas's 2D context over syscall/js: a browser's <canvas> on the web, and a WeChat mini program's offscreen canvas, which has the same context.
|
Package canvas2d plays NSGo's drawings into a canvas's 2D context over syscall/js: a browser's <canvas> on the web, and a WeChat mini program's offscreen canvas, which has the same context. |
|
canvastest
Package canvastest holds drawings that exercise a canvas player, and what their pixels must show, so each backend's tests check their player the same way: they draw each Sample on white at twice its points and run its probes.
|
Package canvastest holds drawings that exercise a canvas player, and what their pixels must show, so each backend's tests check their player the same way: they draw each Sample on white at twice its points and run its probes. |
|
field
Package field keeps what a backend reports about one text field the way NSH's platforms do, whatever control edits it: the user's edits and their count, a composition and the value the app sets during one, the selection, keys and maxLength.
|
Package field keeps what a backend reports about one text field the way NSH's platforms do, whatever control edits it: the user's edits and their count, a composition and the value the app sets during one, the selection, keys and maxLength. |
|
finger
Package finger reports a mouse as finger 0 of core.EventTouch, for the desktop backends: its primary button going down, moving while down and going up are a finger's touches.
|
Package finger reports a mouse as finger 0 of core.EventTouch, for the desktop backends: its primary button going down, moving while down and going up are a finger's touches. |
|
fontfile
Package fontfile reads what the backends need to register an app's font files: the family, weight and slant of each face in a TrueType, OpenType or collection file, from its name and OS/2 tables.
|
Package fontfile reads what the backends need to register an app's font files: the family, weight and slant of each face in a TrueType, OpenType or collection file, from its name and OS/2 tables. |
|
hover
Package hover follows the pointer over views for the backends whose views hear no hovers of their own, Windows' and Linux's.
|
Package hover follows the pointer over views for the backends whose views hear no hovers of their own, Windows' and Linux's. |
|
imagedecode
Package imagedecode decodes image bytes into premultiplied pixels for the backends that decode images themselves: PNG, JPEG, GIF and WebP, animated GIF and WebP with every frame composited, and SVG drawn by a rasterizer of its own from core.ParseSVG's drawing, as NSH's svg module draws with resvg.
|
Package imagedecode decodes image bytes into premultiplied pixels for the backends that decode images themselves: PNG, JPEG, GIF and WebP, animated GIF and WebP with every frame composited, and SVG drawn by a rasterizer of its own from core.ParseSVG's drawing, as NSH's svg module draws with resvg. |
|
imageload
Package imageload fetches image bytes for the native backends: https and http, file paths and file: URIs, data: URIs, "asset:" paths under the app's resources and bytes the app holds.
|
Package imageload fetches image bytes for the native backends: https and http, file paths and file: URIs, data: URIs, "asset:" paths under the app's resources and bytes the app holds. |
|
imageload/imageloadtest
Package imageloadtest checks a backend's imageload.HTTP against a local server, so each backend's tests hold its system client to the same behavior: status, headers both ways, the body, progress and cancelling.
|
Package imageloadtest checks a backend's imageload.HTTP against a local server, so each backend's tests hold its system client to the same behavior: status, headers both ways, the body, progress and cancelling. |
|
linux
Package linux is NSGo's GTK 4 backend, on NSH's Linux design: every view is a widget of its own (NsgoView, a GtkWidget subclass) that its parent places at the core's frame and that draws itself with GtkSnapshot and Cairo, text the engine measured and laid out with Pango included.
|
Package linux is NSGo's GTK 4 backend, on NSH's Linux design: every view is a widget of its own (NsgoView, a GtkWidget subclass) that its parent places at the core's frame and that draws itself with GtkSnapshot and Cairo, text the engine measured and laid out with Pango included. |
|
macos
Package macos is NSGo's AppKit backend: one flipped, layer-backed NSView per node, styled through its CALayer, with text the engine laid out with CoreText drawn on the main thread and images decoded off it, and an optional NSVisualEffectView material behind the window's content.
|
Package macos is NSGo's AppKit backend: one flipped, layer-backed NSView per node, styled through its CALayer, with text the engine laid out with CoreText drawn on the main thread and images decoded off it, and an optional NSVisualEffectView material behind the window's content. |
|
menutext
Package menutext says the labels of the menu items the backends show.
|
Package menutext says the labels of the menu items the backends show. |
|
perfhud
Package perfhud holds what the backends' performance panels share: the process' CPU and memory use (engine.ProcessSample) and, on Apple platforms, drawing the trace.
|
Package perfhud holds what the backends' performance panels share: the process' CPU and memory use (engine.ProcessSample) and, on Apple platforms, drawing the trace. |
|
picked
Package picked prepares the images a user picked as a PickRequest asks, in pure Go, for the backends whose pickers hand over files as they are: Windows and Linux.
|
Package picked prepares the images a user picked as a PickRequest asks, in pure Go, for the backends whose pickers hand over files as they are: Windows and Linux. |
|
privacy
Package privacy tells and asks for the permissions Apple's systems keep for the user (TCC): the macOS and iOS backends answer core's permission requests with it, and the microphone package, speech recognition and iOS's photo taking ask through it, so each permission has one implementation.
|
Package privacy tells and asks for the permissions Apple's systems keep for the user (TCC): the macOS and iOS backends answer core's permission requests with it, and the microphone package, speech recognition and iOS's photo taking ask through it, so each permission has one implementation. |
|
queue
Package queue hands mount batches from the engine goroutine to a platform's main thread.
|
Package queue hands mount batches from the engine goroutine to a platform's main thread. |
|
scrollbar
Package scrollbar is the scroll logic of the backends that keep scroll offsets of their own: where a scroll view's thumb is, whether a point is on its bar, and where dragging the thumb scrolls to; the offsets its content inset allows; and where a snapping view settles after a wheel or a thumb drag.
|
Package scrollbar is the scroll logic of the backends that keep scroll offsets of their own: where a scroll view's thumb is, whether a point is on its bar, and where dragging the thumb scrolls to; the offsets its content inset allows; and where a snapping view settles after a wheel or a thumb drag. |
|
textselect
Package textselect is what the Windows and Linux backends share of a selection across the texts of an area (driver.SelectionModel): the texts as the model reads them, hit-tested through their layouts.
|
Package textselect is what the Windows and Linux backends share of a selection across the texts of an area (driver.SelectionModel): the texts as the model reads them, hit-tested through their layouts. |
|
updates
Package updates finds a newer version of the app for the backends whose platforms have no updater of their own (updater.Check): in the app's appcast, the RSS feed in Sparkle's format that nsgo build writes, on Linux and Android, and in the App Store on iOS.
|
Package updates finds a newer version of the app for the backends whose platforms have no updater of their own (updater.Check): in the app's appcast, the RSS feed in Sparkle's format that nsgo build writes, on Linux and Android, and in the App Store on iOS. |
|
web
Package web is NSGo's browser backend: Go compiled to WebAssembly, one absolutely positioned element per view.
|
Package web is NSGo's browser backend: Go compiled to WebAssembly, one absolutely positioned element per view. |
|
webstyle
Package webstyle writes NSGo's styles as CSS, for the backends that draw with a browser's engine: the web and WeChat mini programs, whose render layer is a web view.
|
Package webstyle writes NSGo's styles as CSS, for the backends that draw with a browser's engine: the web and WeChat mini programs, whose render layer is a web view. |
|
windows
Package windows is NSGo's Win32 backend: one window that draws a retained tree of views with Direct2D into a flip-model swap chain on a Direct3D 11 device, text the engine laid out with DirectWrite, presses hit tested by the engine, inputs as editors of the backend's own drawn with the views (input.go), web views as WebView2 composition controllers in the window's DirectComposition tree, videos played by Media Foundation's media engine, images decoded by Go, native components' child windows following their views (component.go), files dropped through OLE (drop.go), alerts as task dialogs and updates through WinSparkle (updates.go).
|
Package windows is NSGo's Win32 backend: one window that draws a retained tree of views with Direct2D into a flip-model swap chain on a Direct3D 11 device, text the engine laid out with DirectWrite, presses hit tested by the engine, inputs as editors of the backend's own drawn with the views (input.go), web views as WebView2 composition controllers in the window's DirectComposition tree, videos played by Media Foundation's media engine, images decoded by Go, native components' child windows following their views (component.go), files dropped through OLE (drop.go), alerts as task dialogs and updates through WinSparkle (updates.go). |
|
Package restart starts a desktop app again once it has exited, for desktop.Restart, and keeps an app that restarts as it launches from doing so forever.
|
Package restart starts a desktop app again once it has exited, for desktop.Restart, and keeps an app that restarts as it launches from doing so forever. |
|
Package shader compiles shaders written in Go's syntax into the intermediate representation of package shaderir, which its backends translate for each platform's GPU API.
|
Package shader compiles shaders written in Go's syntax into the intermediate representation of package shaderir, which its backends translate for each platform's GPU API. |
|
wgsl
Package wgsl compiles the shaders TSX apps write in WGSL, as NSH's are, into package shaderir's programs, which every backend draws as it draws a Kage program (package shader).
|
Package wgsl compiles the shaders TSX apps write in WGSL, as NSH's are, into package shaderir's programs, which every backend draws as it draws a Kage program (package shader). |
|
Package shaderir offers intermediate representation for shader programs, forked from Ebitengine with package shader (see its documentation).
|
Package shaderir offers intermediate representation for shader programs, forked from Ebitengine with package shader (see its documentation). |
|
Package testhost is where a backend built for `nsgo test -target` (the nsgotest build tag) offers its test host, and where nsgotest finds it: the platform's loop on the main thread, an app shown on a real surface, and native input at the surface's points.
|
Package testhost is where a backend built for `nsgo test -target` (the nsgotest build tag) offers its test host, and where nsgotest finds it: the platform's loop on the main thread, an app shown on a real surface, and native input at the surface's points. |
|
Package woff unpacks WOFF and WOFF2 font files into the TrueType or OpenType data they hold, which every platform's text engine registers.
|
Package woff unpacks WOFF and WOFF2 font files into the TrueType or OpenType data they hold, which every platform's text engine registers. |
Click to show internal directories.
Click to hide internal directories.