Documentation
¶
Index ¶
- Constants
- type C
- type D
- type SignMessagePage
- type ValidateAddressPage
- type VerifyMessagePage
- func (pg *VerifyMessagePage) HandleKeyEvent(evt *key.Event)
- func (pg *VerifyMessagePage) HandleUserInteractions()
- func (pg *VerifyMessagePage) KeysToHandle() key.Set
- func (pg *VerifyMessagePage) Layout(gtx C) D
- func (pg *VerifyMessagePage) OnNavigatedFrom()
- func (pg *VerifyMessagePage) OnNavigatedTo()
Constants ¶
const SignMessagePageID = "SignMessage"
const ValidateAddressPageID = "ValidateAddress"
const VerifyMessagePageID = "VerifyMessage"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type D ¶
type D = layout.Dimensions
type SignMessagePage ¶
type SignMessagePage 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 NewSignMessagePage ¶
func NewSignMessagePage(l *load.Load, wallet sharedW.Asset) *SignMessagePage
func (*SignMessagePage) HandleKeyPress ¶
func (pg *SignMessagePage) HandleKeyPress(evt *key.Event)
HandleKeyPress is called when one or more keys are pressed on the current window that match any of the key combinations returned by KeysToHandle(). Satisfies the load.KeyEventHandler interface for receiving key events.
func (*SignMessagePage) HandleUserInteractions ¶
func (pg *SignMessagePage) 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 (*SignMessagePage) KeysToHandle ¶
func (pg *SignMessagePage) KeysToHandle() key.Set
KeysToHandle returns an expression that describes a set of key combinations that this page wishes to capture. The HandleKeyPress() method will only be called when any of these key combinations is pressed. Satisfies the load.KeyEventHandler interface for receiving key events.
func (*SignMessagePage) Layout ¶
func (pg *SignMessagePage) 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 (*SignMessagePage) OnNavigatedFrom ¶
func (pg *SignMessagePage) 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 (*SignMessagePage) OnNavigatedTo ¶
func (pg *SignMessagePage) 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 // 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 NewValidateAddressPage ¶
func NewValidateAddressPage(l *load.Load, wallet sharedW.Asset) *ValidateAddressPage
func (*ValidateAddressPage) HandleUserInteractions ¶
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) Layout ¶
func (pg *ValidateAddressPage) 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 (*ValidateAddressPage) OnNavigatedFrom ¶
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 ¶
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 // 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 NewVerifyMessagePage ¶
func NewVerifyMessagePage(l *load.Load, wallet sharedW.Asset) *VerifyMessagePage
func (*VerifyMessagePage) HandleKeyEvent ¶
func (pg *VerifyMessagePage) HandleKeyEvent(evt *key.Event)
HandleKeyPress is called when one or more keys are pressed on the current window that match any of the key combinations returned by KeysToHandle(). Satisfies the load.KeyEventHandler interface for receiving key events.
func (*VerifyMessagePage) HandleUserInteractions ¶
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) KeysToHandle ¶
func (pg *VerifyMessagePage) KeysToHandle() key.Set
KeysToHandle returns an expression that describes a set of key combinations that this page wishes to capture. The HandleKeyPress() method will only be called when any of these key combinations is pressed. Satisfies the load.KeyEventHandler interface for receiving key events.
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 ¶
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 ¶
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.