Documentation ¶
Overview ¶
Package notif registers dock notifications.
Index ¶
- Constants
- func RegisterContainerDropData(call OnContainerDropDataFunc)
- func RegisterContainerLeftClick(call OnContainerLeftClickFunc)
- func RegisterContainerMenuContainer(call OnContainerMenuFunc)
- func RegisterContainerMenuIcon(call OnContainerMenuFunc)
- func RegisterContainerMiddleClick(call OnContainerMiddleClickFunc)
- func RegisterContainerMouseScroll(call OnContainerMouseScrollFunc)
- func RegisterDeskletConfigure(call OnDeskletFunc)
- func RegisterDeskletDestroy(call OnDeskletFunc)
- func RegisterDeskletNew(call OnDeskletFunc)
- func RegisterDockDestroy(call OnDockDestroyFunc)
- func RegisterDockIconMoved(call OnDockIconMovedFunc)
- func RegisterDockInsertIcon(call OnDockInsertIconFunc)
- func RegisterDockRemoveIcon(call OnDockRemoveIconFunc)
- func RegisterModuleActivated(call OnModuleFunc)
- func RegisterModuleInstanceDetached(call OnModuleInstanceDetachedFunc)
- func RegisterModuleRegistered(call OnModuleFunc)
- func RegisterShortkeyChanged(call OnShortkeyFunc)
- func RegisterWindowChangeFocus(call OnWindowChangeFocusFunc)
- type OnContainerDropDataFunc
- type OnContainerLeftClickFunc
- type OnContainerMenuFunc
- type OnContainerMiddleClickFunc
- type OnContainerMouseScrollFunc
- type OnDeskletFunc
- type OnDockDestroyFunc
- type OnDockIconMovedFunc
- type OnDockInsertIconFunc
- type OnDockRemoveIconFunc
- type OnModuleFunc
- type OnModuleInstanceDetachedFunc
- type OnShortkeyFunc
- type OnWindowChangeFocusFunc
- type RunType
Constants ¶
const ( // ActionLetPass is returned when the event is continued to be processed (C). ActionLetPass = C.GLDI_NOTIFICATION_LET_PASS // ActionLetPass is returned when the event is intercepted and blocked (C). ActionIntercept = C.GLDI_NOTIFICATION_INTERCEPT )
Signal intercept or let pass.
const ( // AnswerLetPass is returned when the event is continued to be processed. AnswerLetPass = false // AnswerIntercept is returned when the event is intercepted and blocked. AnswerIntercept = true )
Variables ¶
This section is empty.
Functions ¶
func RegisterContainerDropData ¶
func RegisterContainerDropData(call OnContainerDropDataFunc)
RegisterContainerDropData registers notification called when something is dropped inside a container.
func RegisterContainerLeftClick ¶
func RegisterContainerLeftClick(call OnContainerLeftClickFunc)
RegisterContainerLeftClick registers notification called when use clicks on an icon
func RegisterContainerMenuContainer ¶
func RegisterContainerMenuContainer(call OnContainerMenuFunc)
RegisterContainerMenuContainer registers notification called when the menu is being built on a container.
func RegisterContainerMenuIcon ¶
func RegisterContainerMenuIcon(call OnContainerMenuFunc)
RegisterContainerMenuIcon registers notification called when the menu is being built on an icon (possibly NULL).
func RegisterContainerMiddleClick ¶
func RegisterContainerMiddleClick(call OnContainerMiddleClickFunc)
RegisterContainerMiddleClick registers notification called when the user middle-clicks on an icon.
func RegisterContainerMouseScroll ¶
func RegisterContainerMouseScroll(call OnContainerMouseScrollFunc)
RegisterContainerMouseScroll registers notification called when the user scrolls on an icon.
func RegisterDeskletConfigure ¶
func RegisterDeskletConfigure(call OnDeskletFunc)
RegisterDeskletConfigure registers notification called when a desklet is resized or moved on the screen.
func RegisterDeskletDestroy ¶
func RegisterDeskletDestroy(call OnDeskletFunc)
RegisterDeskletDestroy registers notification called when a desklet is going to be destroyed.
func RegisterDeskletNew ¶
func RegisterDeskletNew(call OnDeskletFunc)
RegisterDeskletNew registers notification called when a desklet is created.
func RegisterDockDestroy ¶
func RegisterDockDestroy(call OnDockDestroyFunc)
RegisterDockDestroy registers notification called when a dock is going to be destroyed.
func RegisterDockIconMoved ¶
func RegisterDockIconMoved(call OnDockIconMovedFunc)
RegisterDockIconMoved registers notification called when an icon is moved inside a dock.
func RegisterDockInsertIcon ¶
func RegisterDockInsertIcon(call OnDockInsertIconFunc)
RegisterDockInsertIcon registers notification called when an icon has just been inserted into a dock.
func RegisterDockRemoveIcon ¶
func RegisterDockRemoveIcon(call OnDockRemoveIconFunc)
RegisterDockRemoveIcon registers notification called when an icon is going to be removed from a dock.
func RegisterModuleActivated ¶
func RegisterModuleActivated(call OnModuleFunc)
RegisterModuleActivated registers notification called when a module is activated.
func RegisterModuleInstanceDetached ¶
func RegisterModuleInstanceDetached(call OnModuleInstanceDetachedFunc)
RegisterModuleInstanceDetached registers notification called when a module instance is detached.
func RegisterModuleRegistered ¶
func RegisterModuleRegistered(call OnModuleFunc)
RegisterModuleRegistered registers notification called when a module is registered.
func RegisterShortkeyChanged ¶
func RegisterShortkeyChanged(call OnShortkeyFunc)
RegisterShortkeyChanged registers notification called when shortkeys are added, removed or changed.
func RegisterWindowChangeFocus ¶
func RegisterWindowChangeFocus(call OnWindowChangeFocusFunc)
RegisterWindowChangeFocus registers notification called when the focused window changed.
Types ¶
type OnContainerDropDataFunc ¶
type OnContainerDropDataFunc func(icon gldi.Icon, container *gldi.Container, data string, position float64) bool
OnContainerDropDataFunc defines a container drop data callback.
type OnContainerLeftClickFunc ¶
OnContainerLeftClickFunc defines a container left click callback.
type OnContainerMenuFunc ¶
OnContainerMenuFunc defines a container menu callback.
type OnContainerMiddleClickFunc ¶
OnContainerMiddleClickFunc defines a container middle click callback.
type OnContainerMouseScrollFunc ¶
OnContainerMouseScrollFunc defines a container mouse scroll callback.
type OnDeskletFunc ¶
OnDeskletFunc defines a desklet callback.
type OnDockDestroyFunc ¶
OnDockDestroyFunc defines a dock destroy callback.
type OnDockIconMovedFunc ¶
OnDockIconMovedFunc defines a dock icon moved callback.
type OnDockInsertIconFunc ¶
OnDockInsertIconFunc defines a dock insert icon callback.
type OnDockRemoveIconFunc ¶
OnDockRemoveIconFunc defines a dock remove icon callback.
type OnModuleFunc ¶
OnModuleFunc defines a module callback.
type OnModuleInstanceDetachedFunc ¶
type OnModuleInstanceDetachedFunc func(mi *gldi.ModuleInstance, isDetached bool)
OnModuleInstanceDetachedFunc defines a module instance detached callback.
type OnWindowChangeFocusFunc ¶
OnWindowChangeFocusFunc defines a window focus callback.
type RunType ¶
type RunType int
RunType defines if an event is received before or after others.
const ( RunFirst RunType = C.GLDI_RUN_FIRST RunAfter RunType = C.GLDI_RUN_AFTER )
Event registration call time.