Documentation ¶
Overview ¶
Package bridge serves as a bridge between the transport backend and the Fyne ui
Index ¶
- type RecvData
- func (d *RecvData) CreateItem() fyne.CanvasObject
- func (d *RecvData) Length() int
- func (d *RecvData) NewReceive(code string)
- func (d *RecvData) NewRecv(code string) *RecvItem
- func (d *RecvData) NewRecvList() *widget.List
- func (d *RecvData) OnSelected(i int)
- func (d *RecvData) UpdateItem(i int, object fyne.CanvasObject)
- type RecvItem
- type SendData
- func (d *SendData) CreateItem() fyne.CanvasObject
- func (d *SendData) Length() int
- func (d *SendData) NewSend(uri fyne.URI) *SendItem
- func (d *SendData) NewSendFromFiles(uris []fyne.URI)
- func (d *SendData) NewSendList() *widget.List
- func (d *SendData) OnDirSelect(dir fyne.ListableURI, err error)
- func (d *SendData) OnFileSelect(file fyne.URIReadCloser, err error)
- func (d *SendData) OnSelected(i int)
- func (d *SendData) SendText()
- func (d *SendData) UpdateItem(i int, object fyne.CanvasObject)
- type SendItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RecvData ¶ added in v3.4.0
type RecvData struct { Client *transport.Client Window fyne.Window // contains filtered or unexported fields }
RecvData is a list of progress bars that track send progress.
func (*RecvData) CreateItem ¶ added in v3.4.0
func (d *RecvData) CreateItem() fyne.CanvasObject
CreateItem creates a new item in the list.
func (*RecvData) NewReceive ¶ added in v3.4.0
NewReceive adds data about a new send to the list and then returns the channel to update the code.
func (*RecvData) NewRecv ¶ added in v3.4.0
NewRecv creates a new send item and adds it to the items.
func (*RecvData) NewRecvList ¶ added in v3.6.0
NewRecvList greates a list of progress bars.
func (*RecvData) OnSelected ¶ added in v3.4.0
OnSelected currently just makes sure that we don't persist selection.
func (*RecvData) UpdateItem ¶ added in v3.4.0
UpdateItem updates the data in the list.
type RecvItem ¶
type RecvItem struct { URI fyne.URI Name string Code string Value int64 Max int64 Status func() string // contains filtered or unexported fields }
RecvItem is the item that is being received
type SendData ¶ added in v3.4.0
type SendData struct { Client *transport.Client Window fyne.Window // contains filtered or unexported fields }
SendData is a list of progress bars that track send progress.
func (*SendData) CreateItem ¶ added in v3.4.0
func (d *SendData) CreateItem() fyne.CanvasObject
CreateItem creates a new item in the list.
func (*SendData) NewSend ¶ added in v3.4.0
NewSend adds data about a new send to the list and then returns the item.
func (*SendData) NewSendFromFiles ¶ added in v3.5.0
func (d *SendData) NewSendFromFiles(uris []fyne.URI)
NewSendFromFiles creates a directory from the files and sends it as a directory send.
func (*SendData) NewSendList ¶ added in v3.6.0
NewSendList greates a list of progress bars.
func (*SendData) OnDirSelect ¶ added in v3.4.0
OnDirSelect is intended to be passed as callback to a FolderOpen dialog.
func (*SendData) OnFileSelect ¶ added in v3.4.0
OnFileSelect is intended to be passed as callback to a FileOpen dialog.
func (*SendData) OnSelected ¶ added in v3.4.0
OnSelected currently just makes sure that we don't persist selection.
func (*SendData) UpdateItem ¶ added in v3.4.0
UpdateItem updates the data in the list.