ui

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: BSD-3-Clause Imports: 32 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

View Source
var Authors = resourceAuthors

Authors contains the list of the toolkit authors, extracted from ../../../AUTHORS.

Functions

func NewDesktop

func NewDesktop(app fyne.App, mgr 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

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 NewAppSwitcher

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

NewAppSwitcher creates 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 NewAppSwitcherReverse

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

NewAppSwitcherReverse creates 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

func (s *Switcher) HideApply()

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

func (*Switcher) HideCancel

func (s *Switcher) HideCancel()

HideCancel dismisses the application Switcher without changing window order.

func (*Switcher) Next

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

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.

func (*Switcher) Show

func (s *Switcher) Show()

Show the app switcher, it would then be hidden with HideApply or HideCancel.

Jump to

Keyboard shortcuts

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