Documentation ¶
Overview ¶
Package backendgui provides a GUI interface to interact with the dock GUI.
Index ¶
- func CanManageThemes() bool
- func CloseGui()
- func Register(gui GuiInterface)
- func ReloadCurrentWidget(moduleInstance *gldi.ModuleInstance, showPage int)
- func ReloadItems()
- func SetStatusMessage(message string)
- func ShowAddons() cftype.WinLike
- func ShowItems(icon gldi.Icon, container *gldi.Container, moduleInstance *gldi.ModuleInstance, ...) cftype.WinLike
- func ShowMainGui() cftype.WinLike
- func ShowModuleGui(appletName string) cftype.WinLike
- func ShowModuleInstanceGui(moduleInstance *gldi.ModuleInstance, showPage int)
- func UpdateDeskletParams(desklet *gldi.Desklet)
- func UpdateDeskletVisibility(desklet *gldi.Desklet)
- func UpdateModuleInstanceContainer(moduleInstance *gldi.ModuleInstance, detached bool)
- func UpdateModuleState(name string, active bool)
- func UpdateModulesList()
- func UpdateShortkeys()
- type GuiInterface
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 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 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 ¶
ShowMainGui shows the main config page of the GUI.
func ShowModuleGui ¶
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 ¶
UpdateDeskletParams updates desklets params of an applet.
func UpdateDeskletVisibility ¶
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 ¶
UpdateModuleState updates the state of an applet.
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.