spicefyne

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const MuteIconMargin float32 = 20
View Source
const MuteIconSize float32 = 30
View Source
const PreferencesKeyMute = "PreferencesKeyMute"
View Source
const PreferencesKeyPosition = "PreferencesKeyPosition"
View Source
const SideBarIconButton = 30
View Source
const SideBarPadding = 10
View Source
const SideBarWidth = 300

Variables

This section is empty.

Functions

func GetVDAgentClipboardTypeByFormatType

func GetVDAgentClipboardTypeByFormatType(ft goclip.Type) (spice.SpiceClipboardFormat, error)

func NewCenterHLayout

func NewCenterHLayout() fyne.Layout

func NewMuteIconLayout

func NewMuteIconLayout() fyne.Layout

func NewSidebarLayout

func NewSidebarLayout() fyne.Layout

Types

type SpiceFyne

type SpiceFyne struct {
	widget.BaseWidget
	*spice.Client
	// contains filtered or unexported fields
}

func New

func New(w fyne.Window, a fyne.App, c spice.Connector, password string) (*SpiceFyne, error)

func (*SpiceFyne) AcceptsTab

func (s *SpiceFyne) AcceptsTab() bool

implement fyne.Tabbable

func (*SpiceFyne) ClipboardFetch

func (s *SpiceFyne) ClipboardFetch(selection spice.SpiceClipboardSelection, clipboardType spice.SpiceClipboardFormat) ([]byte, error)

func (*SpiceFyne) ClipboardGrabbed

func (s *SpiceFyne) ClipboardGrabbed(selection spice.SpiceClipboardSelection, clipboardTypes []spice.SpiceClipboardFormat)

func (*SpiceFyne) ClipboardRelease

func (s *SpiceFyne) ClipboardRelease(selection spice.SpiceClipboardSelection)

func (*SpiceFyne) CreateRenderer

func (s *SpiceFyne) CreateRenderer() fyne.WidgetRenderer

func (*SpiceFyne) Cursor

func (s *SpiceFyne) Cursor() desktop.Cursor

func (*SpiceFyne) DisplayInit

func (s *SpiceFyne) DisplayInit(img image.Image)

func (*SpiceFyne) DisplayRefresh

func (s *SpiceFyne) DisplayRefresh()

func (*SpiceFyne) FocusGained

func (s *SpiceFyne) FocusGained()

focus related

func (*SpiceFyne) FocusLost

func (s *SpiceFyne) FocusLost()

func (*SpiceFyne) Focused

func (s *SpiceFyne) Focused() bool

func (*SpiceFyne) KeyDown

func (s *SpiceFyne) KeyDown(ev *fyne.KeyEvent)

func (*SpiceFyne) KeyUp

func (s *SpiceFyne) KeyUp(ev *fyne.KeyEvent)

func (*SpiceFyne) MouseDown

func (s *SpiceFyne) MouseDown(ev *desktop.MouseEvent)

func (*SpiceFyne) MouseIn

func (s *SpiceFyne) MouseIn(*desktop.MouseEvent)

func (*SpiceFyne) MouseMoved

func (s *SpiceFyne) MouseMoved(ev *desktop.MouseEvent)

func (*SpiceFyne) MouseOut

func (s *SpiceFyne) MouseOut()

func (*SpiceFyne) MouseUp

func (s *SpiceFyne) MouseUp(ev *desktop.MouseEvent)

func (*SpiceFyne) Scrolled

func (s *SpiceFyne) Scrolled(ev *fyne.ScrollEvent)

func (*SpiceFyne) SetCursor

func (s *SpiceFyne) SetCursor(i image.Image, x, y uint16)

func (*SpiceFyne) SetEventsTarget

func (s *SpiceFyne) SetEventsTarget(in *spice.ChInputs)

func (*SpiceFyne) SetMainTarget

func (s *SpiceFyne) SetMainTarget(main *spice.ChMain)

func (*SpiceFyne) Tapped

func (s *SpiceFyne) Tapped(t *fyne.PointEvent)

TODO only care for those events if MouseDown() isn't triggered (ie. mobile)

func (*SpiceFyne) TappedSecondary

func (s *SpiceFyne) TappedSecondary(*fyne.PointEvent)

func (*SpiceFyne) TypedKey

func (s *SpiceFyne) TypedKey(*fyne.KeyEvent)

func (*SpiceFyne) TypedRune

func (s *SpiceFyne) TypedRune(rune)

TODO have a keyboard mode where we just emulate whatever is input by the user

func (*SpiceFyne) UpdateSize

func (s *SpiceFyne) UpdateSize(siz fyne.Size)

Jump to

Keyboard shortcuts

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