Documentation ¶
Overview ¶
Package backendmenu provides menu events and widgets to build the menu.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIconForDesklet ¶
GetIconForDesklet will return the correct icon if clicked on a desklet.
Types ¶
type DockMenu ¶
type DockMenu struct { menus.Menu Icon gldi.Icon Container *gldi.Container Dock *gldi.CairoDock // just a pointer to container with type dock. }
DockMenu represents a dock menu.
func WrapDockMenu ¶
func WrapDockMenu(icon gldi.Icon, container *gldi.Container, dock *gldi.CairoDock, menu *gtk.Menu) *DockMenu
WrapDockMenu wraps a menu as DockMenu.
func (*DockMenu) AddButtonsEntry ¶
func (m *DockMenu) AddButtonsEntry(label string, btns ...MenuBtn) *menus.ButtonsEntry
AddButtonsEntry adds an item with button entries to the menu.
func (*DockMenu) AddSubMenu ¶
AddSubMenu adds a submenu to the menu.
type MenuEntry ¶
type MenuEntry int
MenuEntry represents common menu item entries type.
const ( MenuAbout MenuEntry = iota MenuAddApplet MenuAddLauncher MenuAddMainDock MenuAddSeparator MenuAddSubDock MenuClassItems MenuConfigure MenuCustomIconRemove MenuCustomIconSet MenuDeleteDock MenuDeskletLock MenuDeskletSticky MenuDeskletVisibility MenuDetachApplet MenuEditDock MenuDuplicateApplet MenuEditApplet MenuEditIcon MenuEditTarget MenuHandbook MenuHelp MenuLaunchNew MenuLockIcons MenuMakeLauncher MenuMoveToDesktopClass MenuMoveToDesktopWindow MenuMoveToDock MenuQuickHide MenuQuit MenuRemoveApplet MenuRemoveIcon MenuThemes MenuWindowAbove MenuWindowBelow MenuWindowFullScreen MenuWindowKill MenuWindowMoveAllHere MenuWindowMoveHere MenuWindowSticky )
Common menu item entries.
Click to show internal directories.
Click to hide internal directories.