Documentation ¶
Index ¶
- func LabelColor(c *fyne.Container) *fyne.Container
- func NewCanvasText(text string, size float32, align fyne.TextAlign) (canv *canvas.Text)
- func NewCenterLabel(text string) *widget.Label
- func NewLine(w, h float32, c color.Color) fyne.CanvasObject
- func NewSpacer(w, h float32) *canvas.Rectangle
- func NewTrailingLabel(text string) *widget.Label
- type DeroAmts
- type DeroRpcEntries
- type Lists
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
func NewCanvasText ¶ added in v0.10.1
Create a new *canvas.Text with size and alignment
func NewCenterLabel ¶ added in v0.10.1
Create a new *widget.Label with center alignment
func NewSpacer ¶ added in v0.11.0
Create a new transparent *canvas.Rectangle to use as object spacer
func NewTrailingLabel ¶ added in v0.10.1
Create a new *widget.Label with trailing alignment
Types ¶
type DeroAmts ¶
type DeroAmts struct { xwidget.NumericalEntry Prefix string Increment float64 Decimal uint }
func NewDeroEntry ¶
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
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) AddIndicator ¶ added in v0.11.0
func (d *DeroRpcEntries) AddIndicator(ind fyne.CanvasObject)
Add canvas object indicators to DeroRpcEntries, switching for layout and Offset
func (*DeroRpcEntries) RefreshBalance ¶
func (d *DeroRpcEntries) RefreshBalance()
Refresh Balance of DeroRpcEntries
- Gets balance from rpc.Wallet.Balance
type Lists ¶ added in v0.10.1
Fyne List widget, arrays for string or uint64 content
func (*Lists) ExistsIndex ¶ added in v0.10.1
Check if u exists in All
func (*Lists) ExistsSCID ¶ added in v0.10.1
Check if scid exists in SCIDs
func (*Lists) RemoveIndex ¶ added in v0.10.1
Remove u from All
func (*Lists) RemoveSCID ¶ added in v0.10.1
Remove scid from SCIDs