Documentation
¶
Overview ¶
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.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
Components core.NativeComponents
// Fonts are the font files to register, under the app's resources.
Fonts []string
// Monitor shows the performance monitor over the app: --nsgo-fps.
Monitor bool
// Material is the material behind the main window's content, and Width and Height its size.
Material core.WindowMaterial
Width, Height core.Points
// Frame is where the main window opens, when it moves.
Frame core.WindowFrame
// Constraints limit the main window.
Constraints core.WindowConstraints
// Appearance is the appearance the app starts in.
Appearance core.Appearance
// Simulate is the OS a web build runs as: --nsgo-os. Other platforms ignore it.
Simulate core.OS
// InstanceKey scopes the Windows and Linux instance lock; empty keeps one per app ID.
InstanceKey string
// HideDock starts the app out of the Dock (macOS).
HideDock bool
// Transparent, NoShadow and SkipTaskbar are the main window's (core.WindowOptions).
Transparent, NoShadow, SkipTaskbar bool
// Hidden opens the main window without showing it (nsgo.StartHidden).
Hidden bool
// Parent is the window NewView's view is made in (Windows).
Parent uintptr
}
Options are what nsgo.Run's and nsgo.NewView's options set.