Documentation ¶
Overview ¶
Package bridge serves as a bridge between the transport backend and the Fyne ui
Index ¶
- func NewRecvList(data *RecvData) *widget.List
- func NewSendList(data *SendData) *widget.List
- type RecvData
- 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) 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, item fyne.CanvasObject)
- type SendItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRecvList ¶
NewRecvList greates a list of progress bars.
func NewSendList ¶
NewSendList greates a list of progress bars.
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
NewRecvItem creates a new send item and adds it to the items.
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 Canvas fyne.Canvas // 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) 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.