ui

package
Version: v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 18 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DialogSize = fyne.NewSize(400, 300)
	WindowSize = fyne.NewSize(800, 600)
)

Functions

func NewTestModeSign added in v1.2.2

func NewTestModeSign() fyne.CanvasObject

func ShortcutFocused

func ShortcutFocused(s fyne.Shortcut, w fyne.Window)

Types

type AccessView

type AccessView struct {
	widget.Form
	// contains filtered or unexported fields
}

func NewAccessView

func NewAccessView(ui UI, client bcclientgo.BCClient) *AccessView

func (*AccessView) SetAccess

func (v *AccessView) SetAccess(access *bcgo.Record_Access)

type AliasLabel

type AliasLabel struct {
	widget.Label
}

func NewAliasLabel

func NewAliasLabel(alias string) *AliasLabel

func (*AliasLabel) SetAlias

func (a *AliasLabel) SetAlias(alias string)

type AliasView

type AliasView struct {
	widget.Form
	// contains filtered or unexported fields
}

func NewAliasView

func NewAliasView(ui UI, client bcclientgo.BCClient) *AliasView

func (*AliasView) SetURI

func (v *AliasView) SetURI(uri storage.AliasURI) error

type BlockView

type BlockView struct {
	widget.Form
	// contains filtered or unexported fields
}

func NewBlockView

func NewBlockView(ui UI, client bcclientgo.BCClient) *BlockView

func (*BlockView) SetBlock

func (v *BlockView) SetBlock(block *bcgo.Block)

func (*BlockView) SetHash

func (v *BlockView) SetHash(hash []byte)

func (*BlockView) SetURI

func (v *BlockView) SetURI(uri storage.BlockURI) error

type CacheView

type CacheView struct {
	widget.Label
	// contains filtered or unexported fields
}

func NewCacheView

func NewCacheView(updater func() bcgo.Cache) *CacheView

func (*CacheView) Refresh

func (v *CacheView) Refresh()

type FilePicker

type FilePicker struct {
	widget.BaseWidget
	// contains filtered or unexported fields
}

func NewFilePicker

func NewFilePicker(w fyne.Window, e *widget.Entry) *FilePicker

func (*FilePicker) CreateRenderer

func (r *FilePicker) CreateRenderer() fyne.WidgetRenderer

func (*FilePicker) Cursor

func (r *FilePicker) Cursor() desktop.Cursor

func (*FilePicker) Tapped

func (r *FilePicker) Tapped(*fyne.PointEvent)

type HeadView

type HeadView struct {
	widget.Form
	// contains filtered or unexported fields
}

func NewHeadView

func NewHeadView(ui UI, client bcclientgo.BCClient) *HeadView

func (*HeadView) SetURI

func (v *HeadView) SetURI(uri storage.ChannelURI) error

type KeyLabel

type KeyLabel struct {
	widget.Label
}

func NewKeyLabel

func NewKeyLabel(key []byte) *KeyLabel

func (*KeyLabel) SetKey

func (k *KeyLabel) SetKey(key []byte)
type Link struct {
	widget.Hyperlink
	OnTapped func()
}

func (*Link) Tapped

func (l *Link) Tapped(*fyne.PointEvent)

type NetworkView

type NetworkView struct {
	widget.Label
	// contains filtered or unexported fields
}

func NewNetworkView

func NewNetworkView(updater func() bcgo.Network) *NetworkView

func (*NetworkView) Refresh

func (v *NetworkView) Refresh()

type ProgressMiningListener

type ProgressMiningListener struct {
	Func func(f float64)
}

func (*ProgressMiningListener) OnMiningStarted

func (p *ProgressMiningListener) OnMiningStarted(channel bcgo.Channel, size uint64)

func (*ProgressMiningListener) OnMiningThresholdReached

func (p *ProgressMiningListener) OnMiningThresholdReached(channel bcgo.Channel, hash []byte, block *bcgo.Block)

func (*ProgressMiningListener) OnNewMaxOnes

func (p *ProgressMiningListener) OnNewMaxOnes(channel bcgo.Channel, nonce, ones uint64)

type RecordView

type RecordView struct {
	widget.Form
	// contains filtered or unexported fields
}

func NewRecordView

func NewRecordView(ui UI, client bcclientgo.BCClient) *RecordView

func (*RecordView) SetHash

func (v *RecordView) SetHash(hash []byte)

func (*RecordView) SetRecord

func (v *RecordView) SetRecord(record *bcgo.Record)

func (*RecordView) SetURI

func (v *RecordView) SetURI(uri storage.RecordURI) error

type ReferenceView

type ReferenceView struct {
	widget.Form
	// contains filtered or unexported fields
}

func NewReferenceView

func NewReferenceView(ui UI, client bcclientgo.BCClient) *ReferenceView

func (*ReferenceView) SetReference

func (v *ReferenceView) SetReference(reference *bcgo.Reference)

type RootView

type RootView struct {
	widget.Entry
	// contains filtered or unexported fields
}

func NewRootView

func NewRootView(updater func() string) *RootView

func (*RootView) Refresh

func (v *RootView) Refresh()

type TimestampLabel

type TimestampLabel struct {
	widget.Label
}

func NewTimestampLabel

func NewTimestampLabel(timestamp uint64) *TimestampLabel

func (*TimestampLabel) SetTimestamp

func (t *TimestampLabel) SetTimestamp(timestamp uint64)

type UI

type UI interface {
	ShowError(error)
	ShowURI(bcclientgo.BCClient, fyne.URI)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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