settings

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: ISC Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogPageID = "Log"
	LogOffset = 24000
)
View Source
const AboutPageID = "About"
View Source
const AppSettingsPageID = "Settings"
View Source
const HelpPageID = "Help"
View Source
const LicensePageID = "License"
View Source
const StatisticsPageID = "Statistics"

Variables

This section is empty.

Functions

func ChangeNetworkType added in v1.1.0

func ChangeNetworkType(load *load.Load, windowNav app.WindowNavigator, newNetType string)

func DisableLog

func DisableLog()

DisableLog disables all library log output. Logging output is disabled by default until UseLogger is called.

func UseLogger

func UseLogger(logger slog.Logger)

UseLogger uses a specified Logger to output package logging info.

Types

type AboutPage

type AboutPage struct {
	*load.Load
	// GenericPageModal defines methods such as ID() and OnAttachedToNavigator()
	// that helps this Page satisfy the app.Page interface. It also defines
	// helper methods for accessing the PageNavigator that displayed this page
	// and the root WindowNavigator.
	*app.GenericPageModal
	// contains filtered or unexported fields
}

func NewAboutPage

func NewAboutPage(l *load.Load) *AboutPage

func (*AboutPage) HandleUserInteractions

func (pg *AboutPage) HandleUserInteractions()

HandleUserInteractions is called just before Layout() to determine if any user interaction recently occurred on the page and may be used to update the page's UI components shortly before they are displayed. Part of the load.Page interface.

func (*AboutPage) Layout

func (pg *AboutPage) Layout(gtx C) D

Layout draws the page UI components into the provided C to be eventually drawn on screen. Part of the load.Page interface.

func (*AboutPage) OnNavigatedFrom

func (pg *AboutPage) OnNavigatedFrom()

OnNavigatedFrom is called when the page is about to be removed from the displayed window. This method should ideally be used to disable features that are irrelevant when the page is NOT displayed. NOTE: The page may be re-displayed on the app's window, in which case OnNavigatedTo() will be called again. This method should not destroy UI components unless they'll be recreated in the OnNavigatedTo() method. Part of the load.Page interface.

func (*AboutPage) OnNavigatedTo

func (pg *AboutPage) OnNavigatedTo()

OnNavigatedTo is called when the page is about to be displayed and may be used to initialize page features that are only relevant when the page is displayed. Part of the load.Page interface.

type AppSettingsPage added in v1.1.0

type AppSettingsPage struct {
	*load.Load
	// GenericPageModal defines methods such as ID() and OnAttachedToNavigator()
	// that helps this Page satisfy the app.Page interface. It also defines
	// helper methods for accessing the PageNavigator that displayed this page
	// and the root WindowNavigator.
	*app.GenericPageModal
	// contains filtered or unexported fields
}

func NewAppSettingsPage added in v1.1.0

func NewAppSettingsPage(l *load.Load) *AppSettingsPage

func (*AppSettingsPage) HandleUserInteractions added in v1.1.0

func (pg *AppSettingsPage) HandleUserInteractions()

HandleUserInteractions is called just before Layout() to determine if any user interaction recently occurred on the page and may be used to update the page's UI components shortly before they are displayed. Part of the load.Page interface.

func (*AppSettingsPage) Layout added in v1.1.0

func (pg *AppSettingsPage) Layout(gtx C) D

Layout draws the page UI components into the provided C to be eventually drawn on screen. Part of the load.Page interface.

func (*AppSettingsPage) OnNavigatedFrom added in v1.1.0

func (pg *AppSettingsPage) OnNavigatedFrom()

OnNavigatedFrom is called when the page is about to be removed from the displayed window. This method should ideally be used to disable features that are irrelevant when the page is NOT displayed. NOTE: The page may be re-displayed on the app's window, in which case OnNavigatedTo() will be called again. This method should not destroy UI components unless they'll be recreated in the OnNavigatedTo() method. Part of the load.Page interface.

func (*AppSettingsPage) OnNavigatedTo added in v1.1.0

func (pg *AppSettingsPage) OnNavigatedTo()

OnNavigatedTo is called when the page is about to be displayed and may be used to initialize page features that are only relevant when the page is displayed. Part of the load.Page interface.

type C

type C = layout.Context

type D

type D = layout.Dimensions

type HelpPage

type HelpPage struct {
	*load.Load
	// GenericPageModal defines methods such as ID() and OnAttachedToNavigator()
	// that helps this Page satisfy the app.Page interface. It also defines
	// helper methods for accessing the PageNavigator that displayed this page
	// and the root WindowNavigator.
	*app.GenericPageModal
	// contains filtered or unexported fields
}

func NewHelpPage

func NewHelpPage(l *load.Load) *HelpPage

func (*HelpPage) HandleUserInteractions

func (pg *HelpPage) HandleUserInteractions()

HandleUserInteractions is called just before Layout() to determine if any user interaction recently occurred on the page and may be used to update the page's UI components shortly before they are displayed. Part of the load.Page interface.

func (*HelpPage) Layout

func (pg *HelpPage) Layout(gtx C) D

Layout draws the page UI components into the provided C to be eventually drawn on screen. Part of the load.Page interface.

func (*HelpPage) OnNavigatedFrom

func (pg *HelpPage) OnNavigatedFrom()

OnNavigatedFrom is called when the page is about to be removed from the displayed window. This method should ideally be used to disable features that are irrelevant when the page is NOT displayed. NOTE: The page may be re-displayed on the app's window, in which case OnNavigatedTo() will be called again. This method should not destroy UI components unless they'll be recreated in the OnNavigatedTo() method. Part of the load.Page interface.

func (*HelpPage) OnNavigatedTo

func (pg *HelpPage) OnNavigatedTo()

OnNavigatedTo is called when the page is about to be displayed and may be used to initialize page features that are only relevant when the page is displayed. Part of the load.Page interface.

type LicensePage

type LicensePage struct {
	*load.Load
	// GenericPageModal defines methods such as ID() and OnAttachedToNavigator()
	// that helps this Page satisfy the app.Page interface. It also defines
	// helper methods for accessing the PageNavigator that displayed this page
	// and the root WindowNavigator.
	*app.GenericPageModal
	// contains filtered or unexported fields
}

func NewLicensePage

func NewLicensePage(l *load.Load) *LicensePage

func (*LicensePage) HandleUserInteractions

func (pg *LicensePage) HandleUserInteractions()

HandleUserInteractions is called just before Layout() to determine if any user interaction recently occurred on the page and may be used to update the page's UI components shortly before they are displayed. Part of the load.Page interface.

func (*LicensePage) Layout

func (pg *LicensePage) Layout(gtx C) D

Layout draws the page UI components into the provided C to be eventually drawn on screen. Part of the load.Page interface.

func (*LicensePage) OnNavigatedFrom

func (pg *LicensePage) OnNavigatedFrom()

OnNavigatedFrom is called when the page is about to be removed from the displayed window. This method should ideally be used to disable features that are irrelevant when the page is NOT displayed. NOTE: The page may be re-displayed on the app's window, in which case OnNavigatedTo() will be called again. This method should not destroy UI components unless they'll be recreated in the OnNavigatedTo() method. Part of the load.Page interface.

func (*LicensePage) OnNavigatedTo

func (pg *LicensePage) OnNavigatedTo()

OnNavigatedTo is called when the page is about to be displayed and may be used to initialize page features that are only relevant when the page is displayed. Part of the load.Page interface.

type LogPage

type LogPage struct {
	*load.Load
	// GenericPageModal defines methods such as ID() and OnAttachedToNavigator()
	// that helps this Page satisfy the app.Page interface. It also defines
	// helper methods for accessing the PageNavigator that displayed this page
	// and the root WindowNavigator.
	*app.GenericPageModal
	// contains filtered or unexported fields
}

func NewLogPage

func NewLogPage(l *load.Load, logPath string, pageTitle string) *LogPage

func (*LogPage) HandleUserInteractions

func (pg *LogPage) HandleUserInteractions()

HandleUserInteractions is called just before Layout() to determine if any user interaction recently occurred on the page and may be used to update the page's UI components shortly before they are displayed. Part of the load.Page interface.

func (*LogPage) Layout

func (pg *LogPage) Layout(gtx C) D

Layout draws the page UI components into the provided layout context to be eventually drawn on screen. Part of the load.Page interface.

func (*LogPage) OnNavigatedFrom

func (pg *LogPage) OnNavigatedFrom()

OnNavigatedFrom is called when the page is about to be removed from the displayed window. This method should ideally be used to disable features that are irrelevant when the page is NOT displayed. NOTE: The page may be re-displayed on the app's window, in which case OnNavigatedTo() will be called again. This method should not destroy UI components unless they'll be recreated in the OnNavigatedTo() method. Part of the load.Page interface.

func (*LogPage) OnNavigatedTo

func (pg *LogPage) OnNavigatedTo()

OnNavigatedTo is called when the page is about to be displayed and may be used to initialize page features that are only relevant when the page is displayed. Part of the load.Page interface.

type StatPage

type StatPage struct {
	*load.Load
	// GenericPageModal defines methods such as ID() and OnAttachedToNavigator()
	// that helps this Page satisfy the app.Page interface. It also defines
	// helper methods for accessing the PageNavigator that displayed this page
	// and the root WindowNavigator.
	*app.GenericPageModal
	// contains filtered or unexported fields
}

func NewStatPage

func NewStatPage(l *load.Load, wallet sharedW.Asset) *StatPage

func (*StatPage) HandleUserInteractions

func (pg *StatPage) HandleUserInteractions()

HandleUserInteractions is called just before Layout() to determine if any user interaction recently occurred on the page and may be used to update the page's UI components shortly before they are displayed. Part of the load.Page interface.

func (*StatPage) Layout

func (pg *StatPage) Layout(gtx C) D

Layout draws the page UI components into the provided C to be eventually drawn on screen. Part of the load.Page interface.

func (*StatPage) OnNavigatedFrom

func (pg *StatPage) OnNavigatedFrom()

OnNavigatedFrom is called when the page is about to be removed from the displayed window. This method should ideally be used to disable features that are irrelevant when the page is NOT displayed. NOTE: The page may be re-displayed on the app's window, in which case OnNavigatedTo() will be called again. This method should not destroy UI components unless they'll be recreated in the OnNavigatedTo() method. Part of the load.Page interface.

func (*StatPage) OnNavigatedTo

func (pg *StatPage) OnNavigatedTo()

OnNavigatedTo is called when the page is about to be displayed and may be used to initialize page features that are only relevant when the page is displayed. Part of the load.Page interface.

Jump to

Keyboard shortcuts

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