dwidget

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 13 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LabelColor

func LabelColor(c *fyne.Container) *fyne.Container

Top label background used on dApp tabs

Types

type DeroAmts

type DeroAmts struct {
	xwidget.NumericalEntry
	Prefix    string
	Increment float64
	Decimal   uint
}

func NewDeroEntry

func NewDeroEntry(prefix string, increm float64, decim uint) *DeroAmts

Create new numerical entry with increment change on up or down key stroke

  • If entry does not require prefix, pass ""
  • Increment and Decimal for entry input control

func (*DeroAmts) TypedKey

func (e *DeroAmts) TypedKey(k *fyne.KeyEvent)

Increase or decrease of Increment on TypedKey

func (*DeroAmts) TypedRune

func (e *DeroAmts) TypedRune(r rune)

Accepts whole number or '.'

type DeroRpcEntries

type DeroRpcEntries struct {
	Container  *fyne.Container
	Daemon     *widget.SelectEntry
	Wallet     *widget.SelectEntry
	Auth       *widget.Entry
	Balance    *canvas.Text
	Button     *widget.Button
	Disconnect *widget.Check
	Offset     int
	// contains filtered or unexported fields
}

func NewHorizontalEntries

func NewHorizontalEntries(tag string, offset int) *DeroRpcEntries

Create a horizontal layout container with entries for daemon, wallet and user:pass

  • Objects bound to dReams rpc Daemon and Wallet vars with disconnect control
  • Balance canvas to display wallet balance
  • Button for OnTapped func()
  • Offset of 1 puts entries on trailing edge

func NewVerticalEntries

func NewVerticalEntries(tag string, offset int) *DeroRpcEntries

Create a vertical layout container with entries for daemon, wallet and user:pass

  • Objects bound to dReams rpc Daemon and Wallet vars with disconnect control
  • Balance canvas to display wallet balance
  • Button for OnTapped func()
  • Offset of 1 puts entries on top edge

func (*DeroRpcEntries) AddDaemonOptions

func (d *DeroRpcEntries) AddDaemonOptions(new_opts []string)

Add new options to default daemon rpc entry

func (*DeroRpcEntries) RefreshBalance

func (d *DeroRpcEntries) RefreshBalance()

Refresh Balance of DeroRpcEntries

  • Gets balance from rpc.Wallet.Balance

Jump to

Keyboard shortcuts

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