46
46
#define cairo_dock_get_icon_order(icon) cairo_dock_get_group_order ((icon)->iGroup)
48
#define cairo_dock_set_icon_container(_pIcon, _pContainer) (_pIcon)->pContainer = CAIRO_CONTAINER (_pContainer)
50
#define cairo_dock_get_icon_max_scale(pIcon) (pIcon->fHeight != 0 && pIcon->pContainer ? (pIcon->pContainer->bIsHorizontal ? pIcon->iImageHeight : pIcon->iImageWidth) / pIcon->fHeight : 1.)
48
53
/** Get the type of an icon according to its content (launcher, appli, applet). This can be different from its group.
49
54
*@param icon the icon.
50
55
*@return the type of the icon.
98
103
Icon *cairo_dock_get_last_icon (GList *pIconList);
101
*Renvoie la 1ere icon a etre dessinee dans un dock (qui n'est pas forcement la 1ere icon de la liste, si l'utilisateur a scrolle).
102
*@param pDock le dock.
103
*@return la 1ere icon a etre dessinee, ou NULL si la liste is vide.
105
Icon *cairo_dock_get_first_drawn_icon (CairoDock *pDock);
108
*Renvoie la derniere icon a etre dessinee dans un dock (qui n'est pas forcement la derniere icon de la liste, si l'utilisateur a scrolle).
109
*@param pDock le dock.
110
*@return la derniere icon a etre dessinee, ou NULL si la liste is vide.
112
Icon *cairo_dock_get_last_drawn_icon (CairoDock *pDock);
114
105
/** Get the first icon of a given group.
115
106
*@param pIconList a list of icons.
116
107
*@param iGroup the group of icon.
142
133
Icon* cairo_dock_get_last_icon_of_order (GList *pIconList, CairoDockIconGroup iGroup);
144
Icon* cairo_dock_get_last_icon_until_order (GList *pIconList, CairoDockIconGroup iGroup);
146
135
Icon* cairo_dock_get_first_icon_of_true_type (GList *pIconList, CairoDockIconTrueType iType);
148
137
/** Get the currently pointed icon in a list of icons.
248
237
void cairo_dock_move_icon_after_icon (CairoDock *pDock, Icon *icon1, Icon *icon2);
250
/** Run an action on all the icons of a given group. The action can even destroy or remove the icon from the list.
251
*@param pIconList a list of icons.
252
*@param iGroup the group.
253
*@param pFuntion the callback.
254
*@param data data passed as a parameter of the callback.
255
*@return the first automatic separator with another group, or NULL if there is none.
257
Icon *cairo_dock_foreach_icons_of_type (GList *pIconList, CairoDockIconGroup iGroup, CairoDockForeachIconFunc pFuntion, gpointer data);
259
239
/** Update the container's name of an icon with the name of a dock. In the case of a launcher or an applet, the conf file is updated too.
260
240
*@param icon an icon.
261
241
*@param cNewParentDockName the name of its new dock.
263
243
void cairo_dock_update_icon_s_container_name (Icon *icon, const gchar *cNewParentDockName);
265
/** Make an icon static. Static icon are not animated when mouse hovers them.
245
/** Make an icon static or not. Static icons are not animated when mouse hovers them.
266
246
*@param icon an icon.
247
*@param bStatic static or not.
268
#define cairo_dock_set_icon_static(icon) ((icon)->bStatic = TRUE)
249
#define cairo_dock_set_icon_static(icon, _bStatic) (icon)->bStatic = _bStatic
270
251
/** Make an icon always visible, even when the dock is hidden.
271
252
*@param icon an icon.
272
253
*@param bAlwaysVisible whether the icon is always visible or not.
274
#define cairo_dock_set_icon_always_visible(icon, bAlwaysVisible) ((bAlwaysVisible)->bStatic = bAlwaysVisible)
255
#define cairo_dock_set_icon_always_visible(icon, _bAlwaysVisible) (icon)->bAlwaysVisible = _bAlwaysVisible
276
257
/** Set the label of an icon. If it has a sub-dock, it is renamed (the name is possibly altered to stay unique). The label buffer is updated too.
277
258
*@param cIconName the new label of the icon. You can even pass pIcon->cName.