Documentation ¶
Index ¶
- Constants
- func DisableLog()
- func UseLogger(logger slog.Logger)
- type AccountUTXOInfo
- type C
- type D
- type Lastclicked
- type ManualCoinSelectionPage
- func (pg *ManualCoinSelectionPage) Handle()
- func (pg *ManualCoinSelectionPage) HandleUserInteractions()
- func (pg *ManualCoinSelectionPage) Layout(gtx C) D
- func (pg *ManualCoinSelectionPage) OnDismiss()
- func (pg *ManualCoinSelectionPage) OnNavigatedFrom()
- func (pg *ManualCoinSelectionPage) OnNavigatedTo()
- func (pg *ManualCoinSelectionPage) OnResume()
- type Page
- func (pg *Page) Handle()
- func (pg *Page) HandleKeyPress(_ *key.Event)
- func (pg *Page) HandleUserInteractions()
- func (pg *Page) KeysToHandle() key.Set
- func (pg *Page) Layout(gtx C) D
- func (pg *Page) OnDarkModeChanged(_ bool)
- func (pg *Page) OnDismiss()
- func (pg *Page) OnNavigatedFrom()
- func (pg *Page) OnNavigatedTo()
- func (pg *Page) OnResume()
- func (pg *Page) RestyleWidgets()
- func (pg *Page) UpdateSelectedUTXOs(utxos []*sharedW.UnspentOutput)
- type UTXOInfo
Constants ¶
const ( ManualCoinSelectionPageID = "manual_coin_selection" // MaxAddressLen defines the maximum length of address characters displayed // on the UI. MaxAddressLen = 16 )
const ( SendPageID = "Send" // MaxTxLabelSize defines the maximum number of characters to be allowed on MaxTxLabelSize = 100 )
Variables ¶
This section is empty.
Functions ¶
func DisableLog ¶
func DisableLog()
DisableLog disables all library log output. Logging output is disabled by default until UseLogger is called.
Types ¶
type AccountUTXOInfo ¶
type D ¶
type D = layout.Dimensions
type Lastclicked ¶
type Lastclicked struct {
// contains filtered or unexported fields
}
type ManualCoinSelectionPage ¶
type ManualCoinSelectionPage 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 UTXOList *cryptomaterial.ClickableList // contains filtered or unexported fields }
func NewManualCoinSelectionPage ¶
func NewManualCoinSelectionPage(l *load.Load, sendPage *Page) *ManualCoinSelectionPage
func (*ManualCoinSelectionPage) Handle ¶ added in v1.1.0
func (pg *ManualCoinSelectionPage) Handle()
Handle implements app.Modal.
func (*ManualCoinSelectionPage) HandleUserInteractions ¶
func (pg *ManualCoinSelectionPage) 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 (*ManualCoinSelectionPage) Layout ¶
func (pg *ManualCoinSelectionPage) 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 (*ManualCoinSelectionPage) OnDismiss ¶ added in v1.1.0
func (pg *ManualCoinSelectionPage) OnDismiss()
OnDismiss implements app.Modal.
func (*ManualCoinSelectionPage) OnNavigatedFrom ¶
func (pg *ManualCoinSelectionPage) 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 (*ManualCoinSelectionPage) OnNavigatedTo ¶
func (pg *ManualCoinSelectionPage) 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 (*ManualCoinSelectionPage) OnResume ¶ added in v1.1.0
func (pg *ManualCoinSelectionPage) OnResume()
OnResume implements app.Modal.
type Page ¶
type Page 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 (*Page) Handle ¶ added in v1.1.0
func (pg *Page) Handle()
Handle is like HandleUserInteractions but Handle is called if this page is displayed as a modal while HandleUserInteractions is called if this page is displayed as a full page. Either Handle or HandleUserInteractions will be called just before Layout() is called to determine if any user interaction recently occurred on the modal or page and may be used to update any affected UI components shortly before they are displayed by the Layout() method.
func (*Page) HandleKeyPress ¶
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 (*Page) HandleUserInteractions ¶
func (pg *Page) 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 (*Page) KeysToHandle ¶
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 (*Page) 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 (*Page) OnDarkModeChanged ¶
OnDarkModeChanged is triggered whenever the dark mode setting is changed to enable restyling UI elements where necessary. Satisfies the load.DarkModeChangeHandler interface.
func (*Page) OnDismiss ¶ added in v1.1.0
func (pg *Page) OnDismiss()
OnDismiss is like OnNavigatedFrom but OnDismiss is called if this page is displayed as a modal while OnNavigatedFrom is called if this page is displayed as a full page. Either OnDismiss or OnNavigatedFrom is called after the modal is dismissed. NOTE: The modal may be re-displayed on the app's window, in which case OnResume() will be called again. This method should not destroy UI components unless they'll be recreated in the OnResume() method.
func (*Page) OnNavigatedFrom ¶
func (pg *Page) 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 (*Page) OnNavigatedTo ¶
func (pg *Page) 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 (*Page) OnResume ¶ added in v1.1.0
func (pg *Page) OnResume()
OnResume is like OnNavigatedTo but OnResume is called if this page is displayed as a modal while OnNavigatedTo is called if this page is displayed as a full page. Either OnResume or OnNavigatedTo is called to initialize data and get UI elements ready to be displayed. This is called just before Handle() and Layout() are called (in that order).
func (*Page) RestyleWidgets ¶
func (pg *Page) RestyleWidgets()
RestyleWidgets restyles select widgets to match the current theme. This is especially necessary when the dark mode setting is changed.
func (*Page) UpdateSelectedUTXOs ¶
func (pg *Page) UpdateSelectedUTXOs(utxos []*sharedW.UnspentOutput)
type UTXOInfo ¶
type UTXOInfo struct { *sharedW.UnspentOutput // contains filtered or unexported fields }
UTXOInfo defines a utxo record associated with a specific row in the table view.