godock: github.com/sqp/godock/libs/gldi/mgrgldi Index | Files

package mgrgldi

import "github.com/sqp/godock/libs/gldi/mgrgldi"

Package mgrgldi manages go applets as internal applets.

Index

Package Files

mgrgldi.go

type AppManager Uses

type AppManager struct {
    // contains filtered or unexported fields
}

AppManager is a multi applet manager.

func NewAppManager Uses

func NewAppManager(log cdtype.Logger) *AppManager

NewAppManager creates an applets manager with the given list of applets services.

func Register Uses

func Register(log cdtype.Logger) *AppManager

Register starts the applets manager service to use go internal applets in the dock.

func (*AppManager) BuildMenu Uses

func (o *AppManager) BuildMenu(m *backendmenu.DockMenu) bool

BuildMenu forwards a build menu event to the applet.

func (*AppManager) CountActive Uses

func (o *AppManager) CountActive() int

CountActive returns the number of managed applets.

func (*AppManager) GetApplets Uses

func (o *AppManager) GetApplets(name string) (list []cdtype.AppInstance)

GetApplets return an applet instance.

func (*AppManager) OnChangeFocus Uses

func (o *AppManager) OnChangeFocus(win cdglobal.Window) bool

OnChangeFocus forwards a window focus event to the applet.

func (*AppManager) OnDropData Uses

func (o *AppManager) OnDropData(icon gldi.Icon, container *gldi.Container, data string, order float64) bool

OnDropData forwards a drop event to the applet.

func (*AppManager) OnLeftClick Uses

func (o *AppManager) OnLeftClick(icon gldi.Icon, container *gldi.Container, btnState uint) bool

OnLeftClick forwards a click event to the applet.

func (*AppManager) OnMiddleClick Uses

func (o *AppManager) OnMiddleClick(icon gldi.Icon, container *gldi.Container) bool

OnMiddleClick forwards a click event to the applet.

func (*AppManager) OnMouseScroll Uses

func (o *AppManager) OnMouseScroll(icon gldi.Icon, container *gldi.Container, scrollUp bool) bool

OnMouseScroll forwards a mouse event to the applet.

func (*AppManager) StartLoop Uses

func (o *AppManager) StartLoop()

StartLoop starts the polling loop for applets.

func (*AppManager) StopLoop Uses

func (o *AppManager) StopLoop()

StopLoop stops the polling loop.

func (*AppManager) Tick Uses

func (o *AppManager) Tick()

Tick ticks all applets pollers.

type MenuerLike struct {
    backendmenu.DockMenu
}

MenuerLike converts the backend menu to match the applets Menuer interface.

func (m *MenuerLike) AddCheckEntry(label string, active bool, call interface{}, userData ...interface{}) cdtype.MenuWidgeter

AddCheckEntry adds a check entry to the menu.

func (m *MenuerLike) AddEntry(label, iconPath string, call interface{}, userData ...interface{}) cdtype.MenuWidgeter

AddEntry adds an item to the menu with its callback.

func (m *MenuerLike) AddRadioEntry(label string, active bool, group int, call interface{}, userData ...interface{}) cdtype.MenuWidgeter

AddRadioEntry adds a radio entry to the menu.

func (m *MenuerLike) AddSubMenu(label, iconPath string) cdtype.Menuer

AddSubMenu adds a submenu to the menu.

Package mgrgldi imports 14 packages (graph) and is imported by 1 packages. Updated 2017-11-29. Refresh now. Tools for package owners.