ui

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ShortcutReload      = desktop.CustomShortcut{KeyName: fyne.KeyR, Modifier: os.ControlModifier}
	ShortcutSearch      = desktop.CustomShortcut{KeyName: fyne.KeyF, Modifier: os.ControlModifier}
	ShortcutCloseWindow = desktop.CustomShortcut{KeyName: fyne.KeyW, Modifier: os.ControlModifier}

	ShortcutNavOne   = desktop.CustomShortcut{KeyName: fyne.Key1, Modifier: os.ControlModifier}
	ShortcutNavTwo   = desktop.CustomShortcut{KeyName: fyne.Key2, Modifier: os.ControlModifier}
	ShortcutNavThree = desktop.CustomShortcut{KeyName: fyne.Key3, Modifier: os.ControlModifier}
	ShortcutNavFour  = desktop.CustomShortcut{KeyName: fyne.Key4, Modifier: os.ControlModifier}
	ShortcutNavFive  = desktop.CustomShortcut{KeyName: fyne.Key5, Modifier: os.ControlModifier}
	ShortcutNavSix   = desktop.CustomShortcut{KeyName: fyne.Key6, Modifier: os.ControlModifier}
	ShortcutNavSeven = desktop.CustomShortcut{KeyName: fyne.Key7, Modifier: os.ControlModifier}

	NavShortcuts = []desktop.CustomShortcut{ShortcutNavOne, ShortcutNavTwo, ShortcutNavThree,
		ShortcutNavFour, ShortcutNavFive, ShortcutNavSix, ShortcutNavSeven}
)

Functions

This section is empty.

Types

type BottomPanel

type BottomPanel struct {
	widget.BaseWidget

	ImageManager *backend.ImageManager

	NowPlaying  *widgets.NowPlayingCard
	Controls    *widgets.PlayerControls
	AuxControls *widgets.AuxControls
	// contains filtered or unexported fields
}

func NewBottomPanel

func NewBottomPanel(p *player.Player, contr *controller.Controller) *BottomPanel

func (*BottomPanel) CreateRenderer

func (bp *BottomPanel) CreateRenderer() fyne.WidgetRenderer

func (*BottomPanel) SetPlaybackManager

func (bp *BottomPanel) SetPlaybackManager(pm *backend.PlaybackManager)

type MainWindow

type MainWindow struct {
	Window fyne.Window

	App          *backend.App
	Router       browsing.Router
	Controller   *controller.Controller
	BrowsingPane *browsing.BrowsingPane
	BottomPanel  *BottomPanel
	// contains filtered or unexported fields
}

func NewMainWindow

func NewMainWindow(fyneApp fyne.App, appName, appVersion string, app *backend.App, size fyne.Size) MainWindow

func (*MainWindow) Canvas

func (m *MainWindow) Canvas() fyne.Canvas

func (*MainWindow) HaveSystemTray

func (m *MainWindow) HaveSystemTray() bool

func (*MainWindow) SetContent

func (m *MainWindow) SetContent(c fyne.CanvasObject)

func (*MainWindow) SetTitle

func (m *MainWindow) SetTitle(title string)

func (*MainWindow) SetupSystemTrayMenu

func (m *MainWindow) SetupSystemTrayMenu(appName string, fyneApp fyne.App)

func (*MainWindow) Show

func (m *MainWindow) Show()

func (*MainWindow) ShowNewVersionDialog

func (m *MainWindow) ShowNewVersionDialog(appName, versionTag string)

func (*MainWindow) StartupPage

func (m *MainWindow) StartupPage() controller.Route

Directories

Path Synopsis
TODO: remove this file once https://github.com/fyne-io/fyne-x/pull/56 lands in fyne-x and use the fyne-x version.
TODO: remove this file once https://github.com/fyne-io/fyne-x/pull/56 lands in fyne-x and use the fyne-x version.

Jump to

Keyboard shortcuts

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