Documentation ¶
Overview ¶
Package bridge serves as a bridge between the transport backend and the Fyne ui
Index ¶
- type RecvItem
- type RecvList
- type SendItem
- type SendList
- func (p *SendList) CreateItem() fyne.CanvasObject
- func (p *SendList) Length() int
- func (p *SendList) NewSendItem(name string, uri fyne.URI) *SendItem
- func (p *SendList) OnDirSelect(dir fyne.ListableURI, err error)
- func (p *SendList) OnFileSelect(file fyne.URIReadCloser, err error)
- func (p *SendList) SendText()
- func (p *SendList) UpdateItem(i int, item fyne.CanvasObject)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RecvItem ¶
type RecvItem struct { URI fyne.URI Progress *util.ProgressBar Name string }
RecvItem is the item that is being received
type RecvList ¶
RecvList is a list of progress bars that track send progress.
func NewRecvList ¶
NewRecvList greates a list of progress bars.
func (*RecvList) CreateItem ¶
func (p *RecvList) CreateItem() fyne.CanvasObject
CreateItem creates a new item in the list.
func (*RecvList) NewReceive ¶
NewReceive adds data about a new send to the list and then returns the channel to update the code.
func (*RecvList) NewRecvItem ¶
NewRecvItem creates a new send item and adds it to the items.
func (*RecvList) UpdateItem ¶
UpdateItem updates the data in the list.
type SendItem ¶
type SendItem struct { URI fyne.URI Progress *util.ProgressBar Code string Name string }
SendItem is the item that is being sent.
type SendList ¶
SendList is a list of progress bars that track send progress.
func NewSendList ¶
NewSendList greates a list of progress bars.
func (*SendList) CreateItem ¶
func (p *SendList) CreateItem() fyne.CanvasObject
CreateItem creates a new item in the list.
func (*SendList) NewSendItem ¶
NewSendItem adds data about a new send to the list and then returns the item.
func (*SendList) OnDirSelect ¶
OnDirSelect is intended to be passed as callback to a FolderOpen dialog.
func (*SendList) OnFileSelect ¶
OnFileSelect is intended to be passed as callback to a FileOpen dialog.
func (*SendList) UpdateItem ¶
UpdateItem updates the data in the list.