|
Cairo-Dock 2.4.0~1
|
Data Structures | |
| struct | _CairoDockRenderer |
| Dock's renderer, also known as 'view'. More... | |
| struct | _CairoDock |
| Definition of a Dock, which derives from a Container. More... | |
Defines | |
| #define | CAIRO_DOCK_IS_DOCK(pContainer) |
| #define | CAIRO_DOCK(pDock) |
| #define | cairo_dock_insert_icon_in_dock(icon, pDock, bUpdateSize, bAnimated) |
| #define | cairo_dock_remove_one_icon_from_dock(pDock, icon) |
| #define | cairo_dock_remove_icon_from_dock(pDock, icon) |
| #define | cairo_dock_add_new_launcher_by_uri(cExternDesktopFileURI, pReceivingDock, fOrder) |
| #define | cairo_dock_add_new_launcher_by_type(iType, pReceivingDock, fOrder, iGroup) |
Functions | |
| void | cairo_dock_insert_icon_in_dock_full (Icon *icon, CairoDock *pDock, gboolean bUpdateSize, gboolean bAnimated, gboolean bInsertSeparator, GCompareFunc pCompareFunc) |
| gboolean | cairo_dock_detach_icon_from_dock (Icon *icon, CairoDock *pDock, gboolean bCheckUnusedSeparator) |
| void | cairo_dock_remove_automatic_separators (CairoDock *pDock) |
| void | cairo_dock_insert_separators_in_dock (CairoDock *pDock) |
| void | cairo_dock_remove_icons_from_dock (CairoDock *pDock, CairoDock *pReceivingDock, const gchar *cReceivingDockName) |
This class defines the Docks, and gives the way to create, destroy, and fill them.
A dock is a container that holds a set of icons and a renderer (also known as view).
It has the ability to be placed anywhere on the screen edges and to resize itself automatically to fit the screen's size.
It supports internal dragging of its icons with the mouse, and dragging of itself with alt+mouse.
A dock can be either a main-dock (not linked to any icon) or a sub-dock (linked to an icon of another dock), and there can be as many docks of each sort as you want.
| #define CAIRO_DOCK_IS_DOCK | ( | pContainer | ) |
Say if a Container is a Dock.
| pContainer | the container. |
| #define CAIRO_DOCK | ( | pDock | ) |
Cast a Container into a Dock.
| pDock | the container to consider as a dock. |
| #define cairo_dock_insert_icon_in_dock | ( | icon, | |
| pDock, | |||
| bUpdateSize, | |||
| bAnimated | |||
| ) |
Insert an icon into a dock. Insert an automatic separator if needed. Do nothing if the icon already exists inside the dock.
| icon | the icon to be inserted. It should have been filled beforehand. |
| pDock | the dock to insert inside. |
| bUpdateSize | TRUE to update the size of the dock after the insertion. |
| bAnimated | TRUE to arm the icon's animation for insertion. |
| #define cairo_dock_remove_one_icon_from_dock | ( | pDock, | |
| icon | |||
| ) |
Completely remove an icon from the dock, that is to say detach the icon, and remove all links with Cairo-Dock : its .desktop is deleted, its module is deactivated, and its Xid is removed from the Taskbar (its class is handled too). Unnecessary separators are not tested. The icon is not yet destroyed, but looses its sub-dock in case of a container launcher.
| pDock | the dock containing the icon, or NULL if the icon is already detached. |
| icon | the icon to be removed. |
| #define cairo_dock_remove_icon_from_dock | ( | pDock, | |
| icon | |||
| ) |
Completely remove an icon from the dock, that is to say detach the icon, and remove all links with Cairo-Dock : its .desktop is deleted, its module is deactivated, and its Xid is removed from the Taskbar (its class is handled too). Unnecessary separators are removed as well. The icon is not yet destroyed, but looses its sub-dock in case of a container launcher.
| pDock | the dock containing the icon, or NULL if the icon is already detached. |
| icon | the icon to be removed. |
| #define cairo_dock_add_new_launcher_by_uri | ( | cExternDesktopFileURI, | |
| pReceivingDock, | |||
| fOrder | |||
| ) |
Add a launcher from a common desktop file : create and add the corresponding .desktop file with the others, load the corresponding icon, and insert it inside a dock with an animtion.
| cExternDesktopFileURI | path to a desktop file. |
| pReceivingDock | the dock that will hold the new launcher. |
| fOrder | the order of the icon inside the dock. |
| #define cairo_dock_add_new_launcher_by_type | ( | iType, | |
| pReceivingDock, | |||
| fOrder, | |||
| iGroup | |||
| ) |
Add an empty default launcher of a given type : create and add the corresponding .desktop file with the others, load the corresponding icon, and insert it inside a dock with an animtion. The launcher is then suitable for being edited by the user to add real properties.
| iType | type of the launcher. |
| pReceivingDock | the dock that will hold the new launcher. |
| fOrder | the order of the icon inside the dock. |
| iGroup | the group it will belong to |
| void cairo_dock_insert_icon_in_dock_full | ( | Icon * | icon, |
| CairoDock * | pDock, | ||
| gboolean | bUpdateSize, | ||
| gboolean | bAnimated, | ||
| gboolean | bInsertSeparator, | ||
| GCompareFunc | pCompareFunc | ||
| ) |
Insert an icon into a dock. Do nothing if the icon already exists inside the dock.
| icon | the icon to be inserted. It should have been filled beforehand. |
| pDock | the dock to insert inside. |
| bUpdateSize | TRUE to update the size of the dock after the insertion. |
| bAnimated | TRUE to arm the icon's animation for insertion. |
| bInsertSeparator | TRUE to insert an automatic separator if needed. |
| pCompareFunc | a sorting function to place the new icon amongst the others, or NULL to sort by group/order. |
| gboolean cairo_dock_detach_icon_from_dock | ( | Icon * | icon, |
| CairoDock * | pDock, | ||
| gboolean | bCheckUnusedSeparator | ||
| ) |
Detach an icon from its dock. The icon is not destroyed, and can be directly re-inserted in another container; it keeps its sub-dock, but looses its dialogs. Do nothing if the icon doesn't exist inside the dock.
| icon | the icon to detach. |
| pDock | the dock containing the icon. |
| bCheckUnusedSeparator | TRUE to check and remove unnecessary separators. |
| void cairo_dock_remove_automatic_separators | ( | CairoDock * | pDock | ) |
Remove and destroy all automatic separators inside a dock.
| pDock | the dock. |
| void cairo_dock_insert_separators_in_dock | ( | CairoDock * | pDock | ) |
Add automatic separators between the different types of icons inside a dock.
| pDock | the dock. |
| void cairo_dock_remove_icons_from_dock | ( | CairoDock * | pDock, |
| CairoDock * | pReceivingDock, | ||
| const gchar * | cReceivingDockName | ||
| ) |
Remove all icons from a dock (and its sub-docks). If the receiving dock is NULL, the icons are destroyed and removed from the current theme itself.
| pDock | a dock. |
| pReceivingDock | the dock that will receive the icons, or NULL to destroy and remove the icons. |
| cReceivingDockName | name of the receiving dock. |