Cairo-Dock
3.4.0
|
Macros | |
#define | gldi_dock_get_name(pDock) |
Enumerations | |
enum | GldiIconSize |
TODO: harmonize the values with the simple config -> make some public functions... | |
enum | CairoDocksNotifications { NOTIFICATION_ENTER_DOCK, NOTIFICATION_LEAVE_DOCK, NOTIFICATION_INSERT_ICON, NOTIFICATION_REMOVE_ICON, NOTIFICATION_ICON_MOVED } |
signals More... | |
Functions | |
gchar * | gldi_dock_get_readable_name (CairoDock *pDock) |
CairoDock * | gldi_dock_get (const gchar *cDockName) |
Icon * | cairo_dock_search_icon_pointing_on_dock (CairoDock *pDock, CairoDock **pParentDock) |
void | gldi_dock_rename (CairoDock *pDock, const gchar *cNewName) |
void | gldi_docks_foreach (GHFunc pFunction, gpointer pUserData) |
void | gldi_docks_foreach_root (GFunc pFunction, gpointer pUserData) |
void | gldi_icons_foreach_in_docks (GldiIconFunc pFunction, gpointer pUserData) |
void | cairo_dock_reload_buffers_in_all_docks (gboolean bUpdateIconSize) |
void | gldi_dock_add_conf_file_for_name (const gchar *cDockName) |
gchar * | gldi_dock_add_conf_file (void) |
void | gldi_docks_redraw_all_root (void) |
void | gldi_dock_set_visibility (CairoDock *pDock, CairoDockVisibility iVisibility) |
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.
#define gldi_dock_get_name | ( | pDock | ) |
Get the name of a Dock.
pDock | the dock. |
signals
gchar* gldi_dock_get_readable_name | ( | 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 gldi_dock_get_name for them.
pDock | the dock. |
CairoDock* gldi_dock_get | ( | const gchar * | cDockName | ) |
Get a Dock from a given name.
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 gldi_dock_rename | ( | CairoDock * | pDock, |
const gchar * | cNewName | ||
) |
Rename a dock. Update the container's name of all of its icons.
pDock | the dock (optional). |
cNewName | the new name. |
void gldi_docks_foreach | ( | GHFunc | pFunction, |
gpointer | pUserData | ||
) |
Execute an action on all docks.
pFunction | the action. |
pUserData | data passed to the callback. |
void gldi_docks_foreach_root | ( | GFunc | pFunction, |
gpointer | pUserData | ||
) |
Execute an action on all main docks.
pFunction | the action. |
pUserData | data passed to the callback. |
void gldi_icons_foreach_in_docks | ( | GldiIconFunc | 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_reload_buffers_in_all_docks | ( | gboolean | bUpdateIconSize | ) |
(Re)load all buffers of all icons in all docks.
bUpdateIconSize | TRUE to recalculate the icons and docks size. |
void gldi_dock_add_conf_file_for_name | ( | const gchar * | cDockName | ) |
Add a config file for a root dock. Does not create the dock (use gldi_dock_new for that). If the config file already exists, it is overwritten (use gldi_dock_get to check if the name is already used).
cDockName | name of the dock. |
gchar* gldi_dock_add_conf_file | ( | void | ) |
Add a config file for a new root dock. Does not create the dock (use gldi_dock_new for that).
void gldi_docks_redraw_all_root | ( | void | ) |
Redraw every root docks.
void gldi_dock_set_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. |