backendgui

package
v0.0.0-...-0caaa62 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2017 License: GPL-3.0-or-later Imports: 5 Imported by: 0

Documentation

Overview

Package backendgui provides a GUI interface to interact with the dock GUI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanManageThemes

func CanManageThemes() bool

CanManageThemes returns if the backend can configure themes.

Unused yet (but should be possible to activate now).

func CloseGui

func CloseGui()

CloseGui closes the configuration window.

func Register

func Register(gui GuiInterface)

Register registers a GUI to the backend, allowing it to receive GUI events.

func ReloadCurrentWidget

func ReloadCurrentWidget(moduleInstance *gldi.ModuleInstance, showPage int)

ReloadCurrentWidget reloads the current widget page.

func ReloadItems

func ReloadItems()

ReloadItems reloads the items page.

func SetStatusMessage

func SetStatusMessage(message string)

SetStatusMessage is unused.

func ShowAddons

func ShowAddons() cftype.WinLike

ShowAddons opens the addons page of the GUI.

func ShowItems

func ShowItems(icon gldi.Icon, container *gldi.Container, moduleInstance *gldi.ModuleInstance, showPage int) cftype.WinLike

ShowItems opens the icons page of the GUI to configure the given item.

func ShowMainGui

func ShowMainGui() cftype.WinLike

ShowMainGui shows the main config page of the GUI.

func ShowModuleGui

func ShowModuleGui(appletName string) cftype.WinLike

ShowModuleGui opens the icons page of the GUI for the specific applet.

func ShowModuleInstanceGui

func ShowModuleInstanceGui(moduleInstance *gldi.ModuleInstance, showPage int)

ShowModuleInstanceGui opens the icons page of the GUI to configure the given applet.

func UpdateDeskletParams

func UpdateDeskletParams(desklet *gldi.Desklet)

UpdateDeskletParams updates desklets params of an applet.

func UpdateDeskletVisibility

func UpdateDeskletVisibility(desklet *gldi.Desklet)

UpdateDeskletVisibility updates the desklet visibility widget of an applet.

func UpdateModuleInstanceContainer

func UpdateModuleInstanceContainer(moduleInstance *gldi.ModuleInstance, detached bool)

UpdateModuleInstanceContainer updates the container widget of an applet.

func UpdateModuleState

func UpdateModuleState(name string, active bool)

UpdateModuleState updates the state of an applet.

func UpdateModulesList

func UpdateModulesList()

UpdateModulesList updates the list of applets.

func UpdateShortkeys

func UpdateShortkeys()

UpdateShortkeys updates the shortkeys list.

Types

type GuiInterface

type GuiInterface interface {
	ShowMainGui()                                                    //
	ShowModuleGui(appletName string)                                 //
	ShowItems(gldi.Icon, *gldi.Container, *gldi.ModuleInstance, int) //

	ShowAddons()
	ReloadItems()
	// ReloadCategoryWidget()
	// Reload()
	CloseGui()

	UpdateModulesList()
	UpdateModuleState(name string, active bool)
	UpdateModuleInstanceContainer(instance *gldi.ModuleInstance, detached bool)
	UpdateShortkeys()
	UpdateDeskletParams(*gldi.Desklet)
	UpdateDeskletVisibility(*gldi.Desklet)

	// CORE BACKEND
	SetStatusMessage(message string)
	ReloadCurrentWidget(moduleInstance *gldi.ModuleInstance, showPage int)
	ShowModuleInstanceGui(*gldi.ModuleInstance, int) //

	Window() cftype.WinLike
}

GuiInterface defines the interface to the gldi GUI backend.

Jump to

Keyboard shortcuts

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