gui

package
v0.4.16 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2021 License: Unlicense Imports: 49 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check added in v0.4.14

func Check(err error) bool

func Debug added in v0.4.14

func Debug(a ...interface{})

func Debugc added in v0.4.14

func Debugc(fn func() string)

func Debugf added in v0.4.14

func Debugf(format string, a ...interface{})

func Debugs added in v0.4.14

func Debugs(a interface{})

func Error added in v0.4.14

func Error(a ...interface{})

func Errorc added in v0.4.14

func Errorc(fn func() string)

func Errorf added in v0.4.14

func Errorf(format string, a ...interface{})

func Errors added in v0.4.14

func Errors(a interface{})

func Fatal added in v0.4.14

func Fatal(a ...interface{})

func Fatalc added in v0.4.14

func Fatalc(fn func() string)

func Fatalf added in v0.4.14

func Fatalf(format string, a ...interface{})

func Fatals added in v0.4.14

func Fatals(a interface{})

func Info added in v0.4.14

func Info(a ...interface{})

func Infoc added in v0.4.14

func Infoc(fn func() string)

func Infof added in v0.4.14

func Infof(format string, a ...interface{})

func Infos added in v0.4.14

func Infos(a interface{})

func Main added in v0.4.14

func Main(cx *conte.Xt, c *cli.Context) (err error)

func Trace added in v0.4.14

func Trace(a ...interface{})

func Tracec added in v0.4.14

func Tracec(fn func() string)

func Tracef added in v0.4.14

func Tracef(format string, a ...interface{})

func Traces added in v0.4.14

func Traces(a interface{})

func Warn added in v0.4.14

func Warn(a ...interface{})

func Warnc added in v0.4.14

func Warnc(fn func() string)

func Warnf added in v0.4.14

func Warnf(format string, a ...interface{})

func Warns added in v0.4.14

func Warns(a interface{})

Types

type AddressEntry added in v0.4.14

type AddressEntry struct {
	Address, Comment  string
	Created, Modified time.Time
}

type CategoryFilter added in v0.4.14

type CategoryFilter struct {
	Send     bool
	Generate bool
	Immature bool
	Receive  bool
	Unknown  bool
}

CategoryFilter marks which transactions to omit from the filtered transaction list

func (*CategoryFilter) Filter added in v0.4.14

func (c *CategoryFilter) Filter(s string) (include bool)

type Console added in v0.4.14

type Console struct {
	*gui.Window
	// contains filtered or unexported fields
}

func (*Console) Fn added in v0.4.14

func (c *Console) Fn(gtx l.Context) l.Dimensions

func (*Console) JSONWidget added in v0.4.14

func (c *Console) JSONWidget(color string, j []byte) (out []l.Widget)

type JSONElement added in v0.4.14

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

type JSONElements added in v0.4.14

type JSONElements []JSONElement

func GetJSONElements added in v0.4.14

func GetJSONElements(in map[string]interface{}) (je JSONElements)

func (JSONElements) Len added in v0.4.14

func (je JSONElements) Len() int

func (JSONElements) Less added in v0.4.14

func (je JSONElements) Less(i, j int) bool

func (JSONElements) Swap added in v0.4.14

func (je JSONElements) Swap(i, j int)

type Marshalled added in v0.4.14

type Marshalled struct {
	LastUpdated        time.Time
	BestBlockHeight    int32
	BestBlockHash      chainhash.Hash
	Balance            float64
	BalanceUnconfirmed float64
	AllTxs             []btcjson.ListTransactionsResult
	Filter             CategoryFilter
	ReceivingAddress   string
	ActivePage         string
	AddressBook        []AddressEntry
}

func (*Marshalled) Unmarshal added in v0.4.14

func (m *Marshalled) Unmarshal(s *State)

type SendAddress added in v0.4.14

type SendAddress struct {
	AddressInput      *gui.Input
	LabelInput        *gui.Input
	AddressBookBtn    *gui.Clickable
	PasteClipboardBtn *gui.Clickable
	ClearBtn          *gui.Clickable
	AmountInput       *gui.Input
	// AmountInput       *counter.Counter
	SubtractFee     *gui.Bool
	AllAvailableBtn *gui.Clickable
}

type State added in v0.4.14

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

func GetNewState added in v0.4.14

func GetNewState(params *netparams.Params,
	activePage *uberatomic.String) *State

func (*State) ActivePage added in v0.4.14

func (s *State) ActivePage() string

func (*State) Balance added in v0.4.14

func (s *State) Balance() float64

func (*State) BalanceUnconfirmed added in v0.4.14

func (s *State) BalanceUnconfirmed() float64

func (*State) BestBlockHash added in v0.4.14

func (s *State) BestBlockHash() *chainhash.Hash

func (*State) BestBlockHeight added in v0.4.14

func (s *State) BestBlockHeight() int32

func (*State) BumpLastUpdated added in v0.4.14

func (s *State) BumpLastUpdated()

func (*State) Goroutines added in v0.4.14

func (s *State) Goroutines() []l.Widget

func (*State) LastUpdated added in v0.4.14

func (s *State) LastUpdated() time.Time

func (*State) Load added in v0.4.14

func (s *State) Load(filename string, pass *string)

func (*State) Marshal added in v0.4.14

func (s *State) Marshal() (out *Marshalled)

func (*State) Save added in v0.4.14

func (s *State) Save(filename string, pass *string) (err error)

func (*State) SetActivePage added in v0.4.14

func (s *State) SetActivePage(page string)

func (*State) SetAllTxs added in v0.4.14

func (s *State) SetAllTxs(allTxs []btcjson.ListTransactionsResult)

func (*State) SetBalance added in v0.4.14

func (s *State) SetBalance(total float64)

func (*State) SetBalanceUnconfirmed added in v0.4.14

func (s *State) SetBalanceUnconfirmed(unconfirmed float64)

func (*State) SetBestBlockHash added in v0.4.14

func (s *State) SetBestBlockHash(h *chainhash.Hash)

func (*State) SetBestBlockHeight added in v0.4.14

func (s *State) SetBestBlockHeight(height int32)

func (*State) SetGoroutines added in v0.4.14

func (s *State) SetGoroutines(gr []l.Widget)

type WalletGUI

type WalletGUI struct {
	State *State

	ChainMutex, WalletMutex   sync.Mutex
	ChainClient, WalletClient *rpcclient.Client
	*gui.Window
	Size    *int
	MainApp *gui.App

	RecentTransactionsWidget l.Widget
	HistoryWidget            l.Widget

	Syncing uberatomic.Bool
	// contains filtered or unexported fields
}

func (*WalletGUI) ChainNotifications added in v0.4.14

func (wg *WalletGUI) ChainNotifications() *rpcclient.NotificationHandlers

func (*WalletGUI) ConsolePage added in v0.4.14

func (wg *WalletGUI) ConsolePage() *Console

func (*WalletGUI) CreateWalletPage added in v0.4.14

func (wg *WalletGUI) CreateWalletPage(gtx l.Context) l.Dimensions

func (*WalletGUI) GetAppWidget added in v0.4.14

func (wg *WalletGUI) GetAppWidget() (a *gui.App)

func (*WalletGUI) GetBools added in v0.4.14

func (wg *WalletGUI) GetBools() map[string]*gui.Bool

func (*WalletGUI) GetButtons added in v0.4.14

func (wg *WalletGUI) GetButtons()

func (*WalletGUI) GetClickables added in v0.4.14

func (wg *WalletGUI) GetClickables() map[string]*gui.Clickable

func (*WalletGUI) GetIncDecs added in v0.4.14

func (wg *WalletGUI) GetIncDecs()

func (*WalletGUI) GetInputs added in v0.4.14

func (wg *WalletGUI) GetInputs()

func (*WalletGUI) GetLists added in v0.4.14

func (wg *WalletGUI) GetLists() (o map[string]*gui.List)

func (*WalletGUI) GetPasswords added in v0.4.14

func (wg *WalletGUI) GetPasswords()

func (*WalletGUI) GetRunUnit added in v0.4.14

func (wg *WalletGUI) GetRunUnit(name string, before, after func(), args ...string) *rununit.RunUnit

func (*WalletGUI) HistoryPage added in v0.4.14

func (wg *WalletGUI) HistoryPage() l.Widget

func (*WalletGUI) HistoryPageStatusFilter added in v0.4.14

func (wg *WalletGUI) HistoryPageStatusFilter() l.Widget

func (*WalletGUI) HistoryPageView added in v0.4.14

func (wg *WalletGUI) HistoryPageView() l.Widget

func (*WalletGUI) OverviewPage added in v0.4.14

func (wg *WalletGUI) OverviewPage() l.Widget

func (*WalletGUI) Page added in v0.4.14

func (wg *WalletGUI) Page(title string, widget gui.Widgets) func(gtx l.Context) l.Dimensions

func (*WalletGUI) PageTopBarButton added in v0.4.14

func (wg *WalletGUI) PageTopBarButton(
	name string, index int, ico *[]byte, onClick func(string), app *gui.App,
	highlightColor string,
) func(gtx l.Context) l.Dimensions

func (*WalletGUI) ReceivePage added in v0.4.14

func (wg *WalletGUI) ReceivePage() l.Widget

func (*WalletGUI) RecentTransactions added in v0.4.14

func (wg *WalletGUI) RecentTransactions(n int, listName string) l.Widget

RecentTransactions generates a display showing recent transactions

fields to use: Address, Amount, BlockIndex, BlockTime, Category, Confirmations, Generated

func (*WalletGUI) Run added in v0.4.14

func (wg *WalletGUI) Run() (err error)

func (*WalletGUI) RunStatusPanel added in v0.4.14

func (wg *WalletGUI) RunStatusPanel(gtx l.Context) l.Dimensions

func (*WalletGUI) SendPage added in v0.4.14

func (wg *WalletGUI) SendPage() l.Widget

func (*WalletGUI) SetNodeRunState added in v0.4.14

func (wg *WalletGUI) SetNodeRunState(b bool)

func (*WalletGUI) SetWalletRunState added in v0.4.14

func (wg *WalletGUI) SetWalletRunState(b bool)

func (*WalletGUI) SideBarButton added in v0.4.14

func (wg *WalletGUI) SideBarButton(title, page string, index int) func(gtx l.Context) l.Dimensions

func (*WalletGUI) StatusBarButton added in v0.4.14

func (wg *WalletGUI) StatusBarButton(
	name string,
	index int,
	ico *[]byte,
	onClick func(string),
	app *gui.App,
) func(gtx l.Context) l.Dimensions

func (*WalletGUI) Tickers added in v0.4.14

func (wg *WalletGUI) Tickers()

func (*WalletGUI) WalletAndClientRunning added in v0.4.14

func (wg *WalletGUI) WalletAndClientRunning() bool

func (*WalletGUI) WalletNotifications added in v0.4.14

func (wg *WalletGUI) WalletNotifications() *rpcclient.NotificationHandlers

Jump to

Keyboard shortcuts

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