notif

package
v0.0.0-...-0caaa62 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2017 License: GPL-3.0-or-later Imports: 7 Imported by: 0

Documentation

Overview

Package notif registers dock notifications.

Index

Constants

View Source
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.

View Source
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

type OnContainerLeftClickFunc func(icon gldi.Icon, container *gldi.Container, btnState uint) bool

OnContainerLeftClickFunc defines a container left click callback.

type OnContainerMenuFunc

type OnContainerMenuFunc func(gldi.Icon, *gldi.Container, *gldi.CairoDock, *gtk.Menu) bool

OnContainerMenuFunc defines a container menu callback.

type OnContainerMiddleClickFunc

type OnContainerMiddleClickFunc func(icon gldi.Icon, container *gldi.Container) bool

OnContainerMiddleClickFunc defines a container middle click callback.

type OnContainerMouseScrollFunc

type OnContainerMouseScrollFunc func(icon gldi.Icon, container *gldi.Container, scrollUp bool) bool

OnContainerMouseScrollFunc defines a container mouse scroll callback.

type OnDeskletFunc

type OnDeskletFunc func(*gldi.Desklet)

OnDeskletFunc defines a desklet callback.

type OnDockDestroyFunc

type OnDockDestroyFunc func(*gldi.CairoDock)

OnDockDestroyFunc defines a dock destroy callback.

type OnDockIconMovedFunc

type OnDockIconMovedFunc func(gldi.Icon, *gldi.CairoDock)

OnDockIconMovedFunc defines a dock icon moved callback.

type OnDockInsertIconFunc

type OnDockInsertIconFunc func(gldi.Icon, *gldi.CairoDock)

OnDockInsertIconFunc defines a dock insert icon callback.

type OnDockRemoveIconFunc

type OnDockRemoveIconFunc func(gldi.Icon, *gldi.CairoDock)

OnDockRemoveIconFunc defines a dock remove icon callback.

type OnModuleFunc

type OnModuleFunc func(name string, active bool)

OnModuleFunc defines a module callback.

type OnModuleInstanceDetachedFunc

type OnModuleInstanceDetachedFunc func(mi *gldi.ModuleInstance, isDetached bool)

OnModuleInstanceDetachedFunc defines a module instance detached callback.

type OnShortkeyFunc

type OnShortkeyFunc func()

OnShortkeyFunc defines a shortkey callback.

type OnWindowChangeFocusFunc

type OnWindowChangeFocusFunc func(cdglobal.Window) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL