bridge

package
v3.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package bridge serves as a bridge between the transport backend and the Fyne ui

Index

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) Length added in v3.4.0

func (d *RecvData) Length() int

Length returns the length of the data.

func (*RecvData) NewReceive added in v3.4.0

func (d *RecvData) NewReceive(code string)

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

func (d *RecvData) NewRecv(code string) *RecvItem

NewRecv creates a new send item and adds it to the items.

func (*RecvData) NewRecvList added in v3.6.0

func (d *RecvData) NewRecvList() *widget.List

NewRecvList greates a list of progress bars.

func (*RecvData) OnSelected added in v3.4.0

func (d *RecvData) OnSelected(i int)

OnSelected currently just makes sure that we don't persist selection.

func (*RecvData) UpdateItem added in v3.4.0

func (d *RecvData) UpdateItem(i int, object fyne.CanvasObject)

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) Length added in v3.4.0

func (d *SendData) Length() int

Length returns the length of the data.

func (*SendData) NewSend added in v3.4.0

func (d *SendData) NewSend(uri fyne.URI) *SendItem

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

func (d *SendData) NewSendList() *widget.List

NewSendList greates a list of progress bars.

func (*SendData) OnDirSelect added in v3.4.0

func (d *SendData) OnDirSelect(dir fyne.ListableURI, err error)

OnDirSelect is intended to be passed as callback to a FolderOpen dialog.

func (*SendData) OnFileSelect added in v3.4.0

func (d *SendData) OnFileSelect(file fyne.URIReadCloser, err error)

OnFileSelect is intended to be passed as callback to a FileOpen dialog.

func (*SendData) OnSelected added in v3.4.0

func (d *SendData) OnSelected(i int)

OnSelected currently just makes sure that we don't persist selection.

func (*SendData) SendText added in v3.4.0

func (d *SendData) SendText()

SendText sends new text.

func (*SendData) UpdateItem added in v3.4.0

func (d *SendData) UpdateItem(i int, object fyne.CanvasObject)

UpdateItem updates the data in the list.

type SendItem

type SendItem struct {
	URI  fyne.URI
	Code string

	Value  int64
	Max    int64
	Status func() string
	// contains filtered or unexported fields
}

SendItem is the item that is being sent.

Jump to

Keyboard shortcuts

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