ui

package
Version: v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: BSD-3-Clause Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RootWindowName is the base string that all root windows will have in their title and is used to identify root windows.
	RootWindowName = "Fyne Desktop"
	// SkipTaskbarHint should be added to the title of normal windows that should be skipped like the X11 SkipTaskbar hint.
	SkipTaskbarHint = "FyneDesk:skip"
)

Variables

This section is empty.

Functions

func NewDesktop

func NewDesktop(app fyne.App, wm fynedesk.WindowManager, icons fynedesk.ApplicationProvider, screenProvider fynedesk.ScreenList) fynedesk.Desktop

NewDesktop creates a new desktop in fullscreen for main usage. The WindowManager passed in will be used to manage the screen it is loaded on. An ApplicationProvider is used to lookup application icons from the operating system.

func NewEmbeddedDesktop

func NewEmbeddedDesktop(app fyne.App, icons fynedesk.ApplicationProvider) fynedesk.Desktop

NewEmbeddedDesktop creates a new windowed desktop for test purposes. An ApplicationProvider is used to lookup application icons from the operating system. If run during CI for testing it will return an in-memory window using the fyne/test package.

func ShowAppLauncher

func ShowAppLauncher()

ShowAppLauncher opens a new application launcher, closing an old one if it existed.

Types

type Switcher added in v0.2.0

type Switcher struct {
	// contains filtered or unexported fields
}

Switcher is an instance of a visible app switcher that can request a change in window stacking order

func ShowAppSwitcher added in v0.2.0

func ShowAppSwitcher(wins []fynedesk.Window, prov fynedesk.ApplicationProvider) *Switcher

ShowAppSwitcher shows the application Switcher to change windows. The most recently used not-top window will be selected by default. If the Switcher was already visible then it will select the next window in order.

func ShowAppSwitcherReverse added in v0.2.0

func ShowAppSwitcherReverse(wins []fynedesk.Window, prov fynedesk.ApplicationProvider) *Switcher

ShowAppSwitcherReverse shows the application Switcher to change windows. The least recently used window will be selected by default. If the Switcher was already visible then it will select the last window in order.

func (*Switcher) HideApply added in v0.2.0

func (s *Switcher) HideApply()

HideApply dismisses the application Switcher and raises whichever window was selected.

func (*Switcher) HideCancel added in v0.2.0

func (s *Switcher) HideCancel()

HideCancel dismisses the application Switcher without changing window order.

func (*Switcher) Next added in v0.2.0

func (s *Switcher) Next()

Next selects the next logical lower window in the stack. If the bottom most window is selected then it will wrap to the topmost. This will be raised if the change is applied by calling HideApply.

func (*Switcher) Previous added in v0.2.0

func (s *Switcher) Previous()

Previous selects the next logical higher window in the stack. If the top most window was selected it wraps to the lowest. This will be raised if the change is applied by calling HideApply.

Jump to

Keyboard shortcuts

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