|
Cairo-Dock 2.4.0~1
|
This class manages the Desklets, that are Widgets placed directly on your desktop. A Desklet is a container that holds 1 applet's icon plus an optionnal list of other icons and an optionnal GTK widget, has a decoration, suports several accessibility types (like Compiz Widget Layer), and has a renderer. Desklets can be resized or moved directly with the mouse, and can be rotated in the 3 directions of space.
signals
| CairoDesklet* cairo_dock_create_desklet | ( | Icon * | pIcon, |
| CairoDeskletAttribute * | pAttributes | ||
| ) |
Create a desklet linked to an Icon, and load its configuration.
| pIcon | the main icon, or NULL. |
| pAttributes | the configuration attributes, or NULL. |
| void cairo_dock_destroy_desklet | ( | CairoDesklet * | pDesklet | ) |
Destroy a desklet.
| pDesklet | a desklet. |
| CairoDesklet* cairo_dock_foreach_desklet | ( | CairoDockForeachDeskletFunc | pCallback, |
| gpointer | user_data | ||
| ) |
Run a function through all the desklets. If the callback returns TRUE, then the loop ends and the function returns the current desklet.
| pCallback | function to be called on eash desklet. If it returns TRUE, the loop ends and the function returns the current desklet. |
| user_data | data to be passed to the callback. |
| void cairo_dock_foreach_icons_in_desklets | ( | CairoDockForeachIconFunc | pFunction, |
| gpointer | pUserData | ||
| ) |
Execute an action on all icons being inside a desklet.
| pFunction | the action. |
| pUserData | data passed to the callback. |
| void cairo_dock_reload_desklets_decorations | ( | gboolean | bDefaultThemeOnly | ) |
Reload the decorations of all the desklets.
| bDefaultThemeOnly | whether to reload only the desklet that have the default decoration theme. |
| void cairo_dock_set_all_desklets_visible | ( | gboolean | bOnWidgetLayerToo | ) |
Make all desklets visible. Their accessibility is set to CAIRO_DESKLET_NORMAL.
| bOnWidgetLayerToo | TRUE if you want to act on the desklet that are on the WidgetLayer as well. |
| void cairo_dock_set_desklets_visibility_to_default | ( | void | ) |
Reset the desklets accessibility to the state defined in their conf file.
| CairoDesklet* cairo_dock_get_desklet_by_Xid | ( | Window | Xid | ) |
Search the desklet whose X ID matches the given one.
| Xid | an X ID. |
| Icon* cairo_dock_find_clicked_icon_in_desklet | ( | CairoDesklet * | pDesklet | ) |
Find the currently pointed icon in a desklet, taking into account the 3D rotations.
| pDesklet | the desklet. |