|
Cairo-Dock 2.4.0~1
|
This class manages all the Docks. Each Dock has a name that is unique. A Dock can be a sub-dock or a root-dock, whether there exists an icon that points on it or not, but there is no fundamental difference between both.
signals
| CairoDock* cairo_dock_create_dock | ( | const gchar * | cDockName, |
| const gchar * | cRendererName | ||
| ) |
Create a new root dock.
| cDockName | name of the dock, used to identify it quickly. If the name is already used, the corresponding dock is returned. |
| cRendererName | name of a renderer. If NULL, the default renderer will be applied. |
Increase by 1 the number of pointing icons. If the dock was a root dock, it becomes a sub-dock.
| pDock | a dock. |
| pParentDock | its parent dock, if it becomes a sub-dock, otherwise it can be NULL. |
| CairoDock* cairo_dock_create_subdock_from_scratch | ( | GList * | pIconList, |
| gchar * | cDockName, | ||
| CairoDock * | pParentDock | ||
| ) |
Create a new dock of type "sub-dock", and load a given list of icons inside. The list then belongs to the dock, so it must not be freeed after that. The buffers of each icon are loaded, so they just need to have an image filename and a name.
| pIconList | a list of icons that will be loaded and inserted into the new dock. |
| cDockName | desired name for the new dock. |
| pParentDock | the parent dock. |
| void cairo_dock_destroy_dock | ( | CairoDock * | pDock, |
| const gchar * | cDockName | ||
| ) |
Destroy a dock and its icons.
| pDock | the dock. |
| cDockName | name for the dock. |
| const gchar* cairo_dock_search_dock_name | ( | CairoDock * | pDock | ) |
Search the name of a Dock. It does a linear search in the table of Docks.
| pDock | the dock. |
| gchar* cairo_dock_get_readable_name_for_fock | ( | CairoDock * | pDock | ) |
Get a readable name for a main Dock, suitable for display (like "Bottom dock"). Sub-Docks names are defined by the user, so you can just use cairo_dock_search_dock_name for them.
| pDock | the dock. |
| CairoDock* cairo_dock_search_dock_from_name | ( | const gchar * | cDockName | ) |
Search a Dock from a given name. It does a fast search in the table of Docks.
| cDockName | the name of the dock. |
Search an icon pointing on a dock. If several icons point on it, the first one will be returned.
| pDock | the dock. |
| pParentDock | if not NULL, this will be filled with the dock containing the icon. |
| void cairo_dock_rename_dock | ( | const gchar * | cDockName, |
| CairoDock * | pDock, | ||
| const gchar * | cNewName | ||
| ) |
Rename a dock. Update the container's name of all of its icons.
| cDockName | name of the dock. |
| pDock | the dock (optional). |
| cNewName | the new name. |
| void cairo_dock_foreach_docks | ( | GHFunc | pFunction, |
| gpointer | pUserData | ||
| ) |
Execute an action on all docks.
| pFunction | the action. |
| pUserData | data passed to the callback. |
| void cairo_dock_foreach_root_docks | ( | GFunc | pFunction, |
| gpointer | pUserData | ||
| ) |
Execute an action on all main docks.
| pFunction | the action. |
| pUserData | data passed to the callback. |
| void cairo_dock_foreach_icons_in_docks | ( | CairoDockForeachIconFunc | pFunction, |
| gpointer | pUserData | ||
| ) |
Execute an action on all icons being inside a dock.
| pFunction | the action. |
| pUserData | data passed to the callback. |
| void cairo_dock_hide_parent_dock | ( | CairoDock * | pDock | ) |
Recursively hides all the parent docks of a sub-dock.
| pDock | the (sub)dock. |
| gboolean cairo_dock_hide_child_docks | ( | CairoDock * | pDock | ) |
Recursively hides all the sub-docks of a given dock.
| pDock | the dock. |
| void cairo_dock_reload_buffers_in_all_docks | ( | gboolean | bReloadAppletsToo | ) |
(Re)load all buffers of all icons in all docks.
| bReloadAppletsToo | TRUE to reload applet icons too. |
| void cairo_dock_reload_one_root_dock | ( | const gchar * | cDockName, |
| CairoDock * | pDock | ||
| ) |
Reload the config of a root dock and update it accordingly.
| cDockName | name of the dock. |
| pDock | the dock. |
| void cairo_dock_remove_root_dock_config | ( | const gchar * | cDockName | ) |
Delete the config of a root dock. Doesn't delete the dock (use cairo_dock_destroy_dock for that), but if it was empty, it won't be created the next time you restart Cairo-Dock.
| cDockName | name of the dock. |
| void cairo_dock_add_root_dock_config_for_name | ( | const gchar * | cDockName | ) |
Add a config file for a root dock. Does not create the dock (use cairo_dock_create_dock for that). If the config file already exists, it is overwritten (use cairo_dock_search_dock_from_name to check if the dock already exists).
| cDockName | name of the dock. |
| gchar* cairo_dock_add_root_dock_config | ( | void | ) |
Add a config file for a new root dock. Does not create the dock (use cairo_dock_create_dock for that).
| void cairo_dock_set_dock_visibility | ( | CairoDock * | pDock, |
| CairoDockVisibility | iVisibility | ||
| ) |
Set the visibility of a root dock. Perform all the necessary actions.
| pDock | a root dock. |
| iVisibility | its new visibility. |