ui

package
v0.0.0-...-12b188e Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: ISC Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const PageCreateRestore = "createrestore"
View Source
const PageOverview = "overview"
View Source
const PageReceive = "receive"
View Source
const (
	PageSeedBackup = "seedbackup"
)
View Source
const (
	PageSend = "send"
)
View Source
const PageSignMessage = "sign_message"
View Source
const PageTransactionDetails = "transactiondetails"
View Source
const PageTransactions = "transactions"
View Source
const PageVerifyMessage = "verifymessage"
View Source
const PageWallet = "wallet"
View Source
const PageWalletAccounts = "walletAccounts"
View Source
const PageWalletPassphrase = "walletPassphrase"

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.

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 SendPage

type SendPage struct {
	LastTradeRate string
	// contains filtered or unexported fields
}

func (*SendPage) Handle

func (pg *SendPage) Handle(c pageCommon)

func (*SendPage) Layout

func (pg *SendPage) Layout(gtx layout.Context, common pageCommon) layout.Dimensions

type Window

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

Window represents the app window (and UI in general). There should only be one. Window uses an internal state of booleans to determine what the window is currently displaying.

func CreateWindow

func CreateWindow(wal *wallet.Wallet, decredIcons map[string]image.Image, collection []text.FontFace) (*Window, error)

CreateWindow creates and initializes a new window with start as the first page displayed. Should never be called more than once as it calls app.NewWindow() which does not support being called more than once.

func (*Window) BackupPage

func (win *Window) BackupPage(c pageCommon) layout.Widget

func (*Window) CreateRestorePage

func (win *Window) CreateRestorePage(common pageCommon) layout.Widget

Loading lays out the loading widget with a faded background

func (*Window) Loading

func (win *Window) Loading(gtx layout.Context)

Loading lays out the loading widget with a faded background

func (*Window) Loop

func (win *Window) Loop(shutdown chan int)

Loop runs main event handling and page rendering loop

func (*Window) OverviewPage

func (win *Window) OverviewPage(c pageCommon) layout.Widget

func (*Window) ReceivePage

func (win *Window) ReceivePage(common pageCommon) layout.Widget

func (*Window) SendPage

func (win *Window) SendPage(common pageCommon) layout.Widget

func (*Window) SignMessagePage

func (win *Window) SignMessagePage(common pageCommon) layout.Widget

func (*Window) TransactionPage

func (win *Window) TransactionPage(common pageCommon) layout.Widget

func (*Window) TransactionsPage

func (win *Window) TransactionsPage(common pageCommon) layout.Widget

func (*Window) VerifyMessagePage

func (win *Window) VerifyMessagePage(c pageCommon) layout.Widget

func (*Window) WalletAccountPage

func (win *Window) WalletAccountPage(common pageCommon) layout.Widget

func (*Window) WalletPage

func (win *Window) WalletPage(common pageCommon) layout.Widget

func (*Window) WalletPassphrasePage

func (win *Window) WalletPassphrasePage(common pageCommon) layout.Widget

type WriteClipboard

type WriteClipboard struct {
	Text string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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