Directories
¶
| Path | Synopsis |
|---|---|
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
Package menutext says the labels of the menu items the backends show.
|
Package menutext says the labels of the menu items the backends show. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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). |
Click to show internal directories.
Click to hide internal directories.