Documentation ¶
Overview ¶
Package guibridge provides a bridge between the dock and its config window.
It can create the config widget and window connected to the data source, and forward dock events to update the GUI.
Implements backendgui.GuiInterface.
Index ¶
- type Bridge
- func (gc *Bridge) CloseGui()
- func (gc *Bridge) Create()
- func (gc *Bridge) ReloadCurrentWidget(moduleInstance *gldi.ModuleInstance, showPage int)
- func (gc *Bridge) ReloadItems()
- func (gc *Bridge) SetStatusMessage(message string)
- func (gc *Bridge) ShowAddons()
- func (gc *Bridge) ShowItems(icon gldi.Icon, container *gldi.Container, moduleInstance *gldi.ModuleInstance, ...)
- func (gc *Bridge) ShowMainGui()
- func (gc *Bridge) ShowModuleGui(key string)
- func (gc *Bridge) ShowModuleInstanceGui(pModuleInstance *gldi.ModuleInstance, iShowPage int)
- func (gc *Bridge) UpdateDeskletParams(desklet *gldi.Desklet)
- func (gc *Bridge) UpdateDeskletVisibility(desklet *gldi.Desklet)
- func (gc *Bridge) UpdateModuleInstanceContainer(instance *gldi.ModuleInstance, detached bool)
- func (gc *Bridge) UpdateModuleState(name string, active bool)
- func (gc *Bridge) UpdateModulesList()
- func (gc *Bridge) UpdateShortkeys()
- func (gc *Bridge) Window() cftype.WinLike
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bridge ¶
Bridge provides the internal dock interface to the GUI.
func (*Bridge) ReloadCurrentWidget ¶
func (gc *Bridge) ReloadCurrentWidget(moduleInstance *gldi.ModuleInstance, showPage int)
ReloadCurrentWidget is unused. TODO.
func (*Bridge) ReloadItems ¶
func (gc *Bridge) ReloadItems()
ReloadItems forwards the dock event to the GUI if loaded.
func (*Bridge) SetStatusMessage ¶
SetStatusMessage is unused. TODO.
func (*Bridge) ShowAddons ¶
func (gc *Bridge) ShowAddons()
ShowAddons opens the GUI and displays the applets page.
func (*Bridge) ShowItems ¶
func (gc *Bridge) ShowItems(icon gldi.Icon, container *gldi.Container, moduleInstance *gldi.ModuleInstance, showPage int)
ShowItems opens the GUI and displays the given item icon config.
func (*Bridge) ShowMainGui ¶
func (gc *Bridge) ShowMainGui()
ShowMainGui opens the GUI and displays the dock config page.
func (*Bridge) ShowModuleGui ¶
ShowModuleGui opens the GUI and should display an item of the config page.
TODO: maybe rename. (was to display an applets config and is used only for Help ATM)
func (*Bridge) ShowModuleInstanceGui ¶
func (gc *Bridge) ShowModuleInstanceGui(pModuleInstance *gldi.ModuleInstance, iShowPage int)
ShowModuleInstanceGui is unused. TODO.
func (*Bridge) UpdateDeskletParams ¶
UpdateDeskletParams forwards the dock event to the GUI.
func (*Bridge) UpdateDeskletVisibility ¶
UpdateDeskletVisibility forwards the dock event to the GUI.
func (*Bridge) UpdateModuleInstanceContainer ¶
func (gc *Bridge) UpdateModuleInstanceContainer(instance *gldi.ModuleInstance, detached bool)
UpdateModuleInstanceContainer forwards the dock event to the GUI. TODO.
func (*Bridge) UpdateModuleState ¶
UpdateModuleState forwards the dock event to the GUI if loaded.
func (*Bridge) UpdateModulesList ¶
func (gc *Bridge) UpdateModulesList()
UpdateModulesList forwards the dock event to the GUI if loaded.
func (*Bridge) UpdateShortkeys ¶
func (gc *Bridge) UpdateShortkeys()
UpdateShortkeys forwards the dock event to the GUI if loaded.