page

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: ISC Imports: 42 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogPageID = "Log"
	LogOffset = 24000
)
View Source
const AboutPageID = "About"
View Source
const DebugPageID = "Debug"
View Source
const HelpPageID = "Help"
View Source
const LicensePageID = "License"
View Source
const (
	MainPageID = "Main"
)
View Source
const MorePageID = "More"
View Source
const ReceivePageID = "Receive"
View Source
const SecurityToolsPageID = "SecurityTools"
View Source
const SettingsPageID = "Settings"
View Source
const StartPageID = "start_page"
View Source
const StatisticsPageID = "Statistics"
View Source
const ValidateAddressPageID = "ValidateAddress"
View Source
const VerifyMessagePageID = "VerifyMessage"

Variables

View Source
var (
	NavDrawerWidth          = unit.Value{U: unit.UnitDp, V: 160}
	NavDrawerMinimizedWidth = unit.Value{U: unit.UnitDp, V: 72}
)
View Source
var (
	MaxWidth = components.MaxWidth
)

Functions

func DisableLog

func DisableLog()

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

func EditorsNotEmpty

func EditorsNotEmpty(editors ...*widget.Editor) bool

func GetAbsolutePath

func GetAbsolutePath() (string, error)

func HandleSubmitEvent

func HandleSubmitEvent(editors ...*widget.Editor) bool

func NewStartPage

func NewStartPage(l *load.Load) load.Page

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
	// contains filtered or unexported fields
}

func NewAboutPage

func NewAboutPage(l *load.Load) *AboutPage

func (*AboutPage) HandleUserInteractions added in v1.7.0

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) ID

func (pg *AboutPage) ID() string

ID is a unique string that identifies the page and may be used to differentiate this page from other pages. Part of the load.Page interface.

func (*AboutPage) Layout

func (pg *AboutPage) Layout(gtx layout.Context) layout.Dimensions

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

func (*AboutPage) OnNavigatedFrom added in v1.7.0

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 added in v1.7.0

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 C

type C = layout.Context

type D

type D = layout.Dimensions

type DebugPage

type DebugPage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewDebugPage

func NewDebugPage(l *load.Load) *DebugPage

func (*DebugPage) HandleUserInteractions added in v1.7.0

func (pg *DebugPage) 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 (*DebugPage) ID

func (pg *DebugPage) ID() string

ID is a unique string that identifies the page and may be used to differentiate this page from other pages. Part of the load.Page interface.

func (*DebugPage) Layout

func (pg *DebugPage) 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 (*DebugPage) OnNavigatedFrom added in v1.7.0

func (pg *DebugPage) 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 (*DebugPage) OnNavigatedTo added in v1.7.0

func (pg *DebugPage) 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 HelpPage

type HelpPage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewHelpPage

func NewHelpPage(l *load.Load) *HelpPage

func (*HelpPage) HandleUserInteractions added in v1.7.0

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) ID

func (pg *HelpPage) ID() string

ID is a unique string that identifies the page and may be used to differentiate this page from other pages. Part of the load.Page interface.

func (*HelpPage) Layout

func (pg *HelpPage) Layout(gtx layout.Context) layout.Dimensions

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

func (*HelpPage) OnNavigatedFrom added in v1.7.0

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 added in v1.7.0

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 HideBalanceItem added in v1.7.0

type HideBalanceItem struct {
	// contains filtered or unexported fields
}

type LicensePage

type LicensePage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewLicensePage

func NewLicensePage(l *load.Load) *LicensePage

func (*LicensePage) HandleUserInteractions added in v1.7.0

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) ID

func (pg *LicensePage) ID() string

ID is a unique string that identifies the page and may be used to differentiate this page from other pages. Part of the load.Page interface.

func (*LicensePage) Layout

func (pg *LicensePage) Layout(gtx layout.Context) layout.Dimensions

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

func (*LicensePage) OnNavigatedFrom added in v1.7.0

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 added in v1.7.0

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
	// contains filtered or unexported fields
}

func NewLogPage

func NewLogPage(l *load.Load) *LogPage

func (*LogPage) HandleUserInteractions added in v1.7.0

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) ID

func (pg *LogPage) ID() string

ID is a unique string that identifies the page and may be used to differentiate this page from other pages. 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 added in v1.7.0

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 added in v1.7.0

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 MainPage

type MainPage struct {
	*load.Load
	*listeners.SyncProgressListener
	*listeners.TxAndBlockNotificationListener
	*listeners.ProposalNotificationListener
	// contains filtered or unexported fields
}

func NewMainPage

func NewMainPage(l *load.Load) *MainPage

func (*MainPage) HandleUserInteractions added in v1.7.0

func (mp *MainPage) 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 (*MainPage) ID

func (mp *MainPage) ID() string

ID is a unique string that identifies the page and may be used to differentiate this page from other pages. Part of the load.Page interface.

func (*MainPage) Layout

func (mp *MainPage) Layout(gtx layout.Context) layout.Dimensions

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

func (*MainPage) LayoutTopBar

func (mp *MainPage) LayoutTopBar(gtx layout.Context) layout.Dimensions

func (*MainPage) LayoutUSDBalance

func (mp *MainPage) LayoutUSDBalance(gtx layout.Context) layout.Dimensions

func (*MainPage) OnCurrencyChanged added in v1.7.0

func (mp *MainPage) OnCurrencyChanged()

func (*MainPage) OnDarkModeChanged added in v1.7.0

func (mp *MainPage) OnDarkModeChanged(isDarkModeOn bool)

OnDarkModeChanged is triggered whenever the dark mode setting is changed to enable restyling UI elements where necessary. Satisfies the load.AppSettingsChangeHandler interface.

func (*MainPage) OnLanguageChanged added in v1.7.0

func (mp *MainPage) OnLanguageChanged()

func (*MainPage) OnNavigatedFrom added in v1.7.0

func (mp *MainPage) 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 (*MainPage) OnNavigatedTo added in v1.7.0

func (mp *MainPage) 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.

func (*MainPage) StartSyncing

func (mp *MainPage) StartSyncing()

func (*MainPage) UnlockWalletForSyncing

func (mp *MainPage) UnlockWalletForSyncing(wal *dcrlibwallet.Wallet)

type MorePage

type MorePage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewMorePage

func NewMorePage(l *load.Load) *MorePage

func (*MorePage) HandleUserInteractions added in v1.7.0

func (pg *MorePage) 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 (*MorePage) ID

func (pg *MorePage) ID() string

ID is a unique string that identifies the page and may be used to differentiate this page from other pages. Part of the load.Page interface.

func (*MorePage) Layout

func (pg *MorePage) Layout(gtx layout.Context) layout.Dimensions

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

func (*MorePage) OnNavigatedFrom added in v1.7.0

func (pg *MorePage) 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 (*MorePage) OnNavigatedTo added in v1.7.0

func (pg *MorePage) 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 NavHandler struct {
	Clickable     *widget.Clickable
	Image         *decredmaterial.Image
	ImageInactive *decredmaterial.Image
	Title         string
	PageID        string
}

type ReceivePage

type ReceivePage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewReceivePage

func NewReceivePage(l *load.Load) *ReceivePage

func (*ReceivePage) HandleUserInteractions added in v1.7.0

func (pg *ReceivePage) 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 (*ReceivePage) ID

func (pg *ReceivePage) ID() string

ID is a unique string that identifies the page and may be used to differentiate this page from other pages. Part of the load.Page interface.

func (*ReceivePage) Layout

func (pg *ReceivePage) Layout(gtx layout.Context) layout.Dimensions

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

func (*ReceivePage) OnNavigatedFrom added in v1.7.0

func (pg *ReceivePage) 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 (*ReceivePage) OnNavigatedTo added in v1.7.0

func (pg *ReceivePage) 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 SecurityToolsPage

type SecurityToolsPage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewSecurityToolsPage

func NewSecurityToolsPage(l *load.Load) *SecurityToolsPage

func (*SecurityToolsPage) HandleUserInteractions added in v1.7.0

func (pg *SecurityToolsPage) 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 (*SecurityToolsPage) ID

func (pg *SecurityToolsPage) ID() string

ID is a unique string that identifies the page and may be used to differentiate this page from other pages. Part of the load.Page interface.

func (*SecurityToolsPage) Layout

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

func (*SecurityToolsPage) OnNavigatedFrom added in v1.7.0

func (pg *SecurityToolsPage) 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 (*SecurityToolsPage) OnNavigatedTo added in v1.7.0

func (pg *SecurityToolsPage) 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 SettingsPage

type SettingsPage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewSettingsPage

func NewSettingsPage(l *load.Load) *SettingsPage

func (*SettingsPage) HandleUserInteractions added in v1.7.0

func (pg *SettingsPage) 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 (*SettingsPage) ID

func (pg *SettingsPage) ID() string

ID is a unique string that identifies the page and may be used to differentiate this page from other pages. Part of the load.Page interface.

func (*SettingsPage) Layout

func (pg *SettingsPage) Layout(gtx layout.Context) layout.Dimensions

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

func (*SettingsPage) OnNavigatedFrom added in v1.7.0

func (pg *SettingsPage) 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 (*SettingsPage) OnNavigatedTo added in v1.7.0

func (pg *SettingsPage) 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
	// contains filtered or unexported fields
}

func NewStatPage

func NewStatPage(l *load.Load) *StatPage

func (*StatPage) HandleUserInteractions added in v1.7.0

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) ID

func (pg *StatPage) ID() string

ID is a unique string that identifies the page and may be used to differentiate this page from other pages. Part of the load.Page interface.

func (*StatPage) Layout

func (pg *StatPage) Layout(gtx layout.Context) layout.Dimensions

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

func (*StatPage) OnNavigatedFrom added in v1.7.0

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 added in v1.7.0

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.

type ValidateAddressPage

type ValidateAddressPage struct {
	*load.Load
	// contains filtered or unexported fields
}

func NewValidateAddressPage

func NewValidateAddressPage(l *load.Load) *ValidateAddressPage

func (*ValidateAddressPage) HandleUserInteractions added in v1.7.0

func (pg *ValidateAddressPage) 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 (*ValidateAddressPage) ID

func (pg *ValidateAddressPage) ID() string

ID is a unique string that identifies the page and may be used to differentiate this page from other pages. Part of the load.Page interface.

func (*ValidateAddressPage) Layout

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

func (*ValidateAddressPage) OnNavigatedFrom added in v1.7.0

func (pg *ValidateAddressPage) 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 (*ValidateAddressPage) OnNavigatedTo added in v1.7.0

func (pg *ValidateAddressPage) 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 VerifyMessagePage

type VerifyMessagePage struct {
	*load.Load

	EnableEditorSwitch bool
	// contains filtered or unexported fields
}

func NewVerifyMessagePage

func NewVerifyMessagePage(l *load.Load) *VerifyMessagePage

func (*VerifyMessagePage) HandleUserInteractions added in v1.7.0

func (pg *VerifyMessagePage) 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 (*VerifyMessagePage) ID

func (pg *VerifyMessagePage) ID() string

ID is a unique string that identifies the page and may be used to differentiate this page from other pages. Part of the load.Page interface.

func (*VerifyMessagePage) Layout

func (pg *VerifyMessagePage) 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 (*VerifyMessagePage) OnNavigatedFrom added in v1.7.0

func (pg *VerifyMessagePage) 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 (*VerifyMessagePage) OnNavigatedTo added in v1.7.0

func (pg *VerifyMessagePage) 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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