nlinux

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NativeInstallWindow

type NativeInstallWindow interface {
	// Change the title of the window
	SetTitle(title string)
	// Change the label of the window
	SetLabel(label string)
	// Change the progress
	SetProgress(progress float64)
}

A NativeInstallWindow is shown during the process. It doesn't have to be an actual window. It can just be text outputted to a terminal, for example.

type NativeUI

type NativeUI interface {
	// Initialize
	Init()
	// Create and show the main installer UI
	CreateInstallWindow(baseTitle string) (NativeInstallWindow, error)
	// Should block until exit
	Main()

	// Should show an error dialog, exiting when it's closed
	ShowErrorAndQuit(err error)

	RunInMainThread(f func())
}

NativeUI encompasses all the user interface itch-setup can show

func NewGtkUI

func NewGtkUI(cli cl.CLI) NativeUI

NewGtkUI creates a GTK3-based UI for the installer

func NewTextUI

func NewTextUI(cli cl.CLI) NativeUI

NewTextUI creates a GTK3-based UI for the installer

Jump to

Keyboard shortcuts

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