nlinux

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: MIT Imports: 15 Imported by: 0

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