Documentation ¶
Index ¶
- Constants
- Variables
- func DisableLog()
- func EditorsNotEmpty(editors ...*widget.Editor) bool
- func GetAbsolutePath() (string, error)
- func HandleSubmitEvent(editors ...*widget.Editor) bool
- func NewStartPage(l *load.Load) load.Page
- func UseLogger(logger slog.Logger)
- type AboutPage
- type C
- type D
- type DebugPage
- type HelpPage
- type HideBalanceItem
- type LicensePage
- type LogPage
- type MainPage
- func (mp *MainPage) HandleUserInteractions()
- func (mp *MainPage) ID() string
- func (mp *MainPage) Layout(gtx layout.Context) layout.Dimensions
- func (mp *MainPage) LayoutTopBar(gtx layout.Context) layout.Dimensions
- func (mp *MainPage) LayoutUSDBalance(gtx layout.Context) layout.Dimensions
- func (mp *MainPage) OnCurrencyChanged()
- func (mp *MainPage) OnDarkModeChanged(isDarkModeOn bool)
- func (mp *MainPage) OnLanguageChanged()
- func (mp *MainPage) OnNavigatedFrom()
- func (mp *MainPage) OnNavigatedTo()
- func (mp *MainPage) StartSyncing()
- func (mp *MainPage) UnlockWalletForSyncing(wal *dcrlibwallet.Wallet)
- type MorePage
- type NavHandler
- type ReceivePage
- type SecurityToolsPage
- type SettingsPage
- type StatPage
- type ValidateAddressPage
- type VerifyMessagePage
Constants ¶
const ( LogPageID = "Log" LogOffset = 24000 )
const AboutPageID = "About"
const DebugPageID = "Debug"
const HelpPageID = "Help"
const LicensePageID = "License"
const (
MainPageID = "Main"
)
const MorePageID = "More"
const ReceivePageID = "Receive"
const SecurityToolsPageID = "SecurityTools"
const SettingsPageID = "Settings"
const StartPageID = "start_page"
const StatisticsPageID = "Statistics"
const ValidateAddressPageID = "ValidateAddress"
const VerifyMessagePageID = "VerifyMessage"
Variables ¶
var ()
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 GetAbsolutePath ¶
func HandleSubmitEvent ¶
Types ¶
type AboutPage ¶
func NewAboutPage ¶
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 ¶
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 D ¶
type D = layout.Dimensions
type DebugPage ¶
func NewDebugPage ¶
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 ¶
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 ¶
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 ¶
func NewHelpPage ¶
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 ¶
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 ¶
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 ¶
func NewLogPage ¶
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 ¶
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 ¶
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 (*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 ¶
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
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 ¶
func NewMorePage ¶
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 ¶
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 ¶
type NavHandler struct {}
type ReceivePage ¶
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 ¶
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 ¶
func (pg *SecurityToolsPage) 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. 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 ¶
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 ¶
func NewStatPage ¶
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 ¶
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 ¶
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 ¶
func (pg *ValidateAddressPage) 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 (*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.