dcrdex

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: 38 Imported by: 0

Documentation

Index

Constants

View Source
const DCRDEXPageID = "DCRDEXPageID"
View Source
const (
	DEXMarketPageID = "dex_market"
)
View Source
const (
	DEXOnboardingPageID = "dex_onboarding"
)

Variables

View Source
var CertStore = map[string][]byte{
	// contains filtered or unexported fields
}

Functions

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 C

type C = layout.Context

type D

type D = layout.Dimensions

type DEXMarketPage

type DEXMarketPage 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 NewDEXMarketPage

func NewDEXMarketPage(l *load.Load, selectServer string) *DEXMarketPage

NewDEXMarketPage prepares and initializes a *DEXMarketPage. Specify selectServer to select the provided server.

func (*DEXMarketPage) HandleUserInteractions

func (pg *DEXMarketPage) 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 (*DEXMarketPage) Layout

func (pg *DEXMarketPage) 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 (*DEXMarketPage) OnNavigatedFrom

func (pg *DEXMarketPage) 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 (*DEXMarketPage) OnNavigatedTo

func (pg *DEXMarketPage) 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 DEXOnboarding

type DEXOnboarding 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 NewDEXOnboarding

func NewDEXOnboarding(l *load.Load, existingDEXServer string) *DEXOnboarding

NewDEXOnboarding creates a new DEX onboarding pages. Specify existingDEXServer to use the DEX onboarding flow to allow user post bonds for a particular server.

func (*DEXOnboarding) HandleUserInteractions

func (pg *DEXOnboarding) 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 (*DEXOnboarding) Layout

func (pg *DEXOnboarding) 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 (*DEXOnboarding) OnNavigatedFrom

func (pg *DEXOnboarding) 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 (*DEXOnboarding) OnNavigatedTo

func (pg *DEXOnboarding) 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 DEXPage

type DEXPage struct {
	*app.MasterPage

	*load.Load
	// contains filtered or unexported fields
}

func NewDEXPage

func NewDEXPage(l *load.Load) *DEXPage

func (*DEXPage) HandleUserInteractions

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

func (pg *DEXPage) 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 (*DEXPage) Layout

func (pg *DEXPage) 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 (*DEXPage) OnNavigatedFrom

func (pg *DEXPage) 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 (*DEXPage) OnNavigatedTo

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