Cairo-Dock
3.4.0
|
Macros | |
#define | cairo_dock_icon_is_being_inserted(icon) |
#define | cairo_dock_icon_is_being_removed(icon) |
#define | cairo_dock_get_icon_order(icon) |
#define | cairo_dock_get_next_element(ic, list) |
#define | cairo_dock_get_previous_element(ic, list) |
#define | cairo_dock_set_icon_static(icon, _bStatic) |
#define | cairo_dock_set_icon_always_visible(icon, _bAlwaysVisible) |
#define | gldi_icon_mark_as_launching(pIcon) |
#define | gldi_icon_is_launching(pIcon) |
This class provides utility functions on Icons.
#define cairo_dock_icon_is_being_inserted | ( | icon | ) |
Say whether an icon is currently being inserted.
#define cairo_dock_icon_is_being_removed | ( | icon | ) |
Say whether an icon is currently being removed.
#define cairo_dock_get_icon_order | ( | icon | ) |
Get the group order of an icon. 3 groups are available by default : launchers, applis, and applets, and each group has an order.
#define cairo_dock_get_next_element | ( | ic, | |
list | |||
) |
Get the next element in a list, looping if necessary..
ic | the current element. |
list | a list. |
#define cairo_dock_get_previous_element | ( | ic, | |
list | |||
) |
Get the previous element in a list, looping if necessary..
ic | the current element. |
list | a list. |
#define cairo_dock_set_icon_static | ( | icon, | |
_bStatic | |||
) |
Make an icon static or not. Static icons are not animated when mouse hovers them.
icon | an icon. |
_bStatic | static or not. |
#define cairo_dock_set_icon_always_visible | ( | icon, | |
_bAlwaysVisible | |||
) |
Make an icon always visible, even when the dock is hidden.
icon | an icon. |
_bAlwaysVisible | whether the icon is always visible or not. |
#define gldi_icon_mark_as_launching | ( | pIcon | ) |
Mark an Icon as 'launching'. This states lasts until the corresponding window appears (with a timeout of 15 seconds). Typically used to prevent the program from being started 2 times in a row, or to keep the animation running until the program is started.
#define gldi_icon_is_launching | ( | pIcon | ) |
Tell if an Icon is being launched.
CairoDockIconGroup cairo_dock_get_icon_type | ( | Icon * | icon | ) |
Get the type of an icon according to its content (launcher, appli, applet). This can be different from its group.
icon | the icon. |
Compare 2 icons with the order relation on (group order, icon order).
icon1 | an icon. |
icon2 | another icon. |
Compare 2 icons with the order relation on the name (case unsensitive alphabetical order).
icon1 | an icon. |
icon2 | another icon. |
Compare 2 icons with the order relation on the extension of their URIs (case unsensitive alphabetical order).
icon1 | an icon. |
icon2 | another icon. |
GList* cairo_dock_sort_icons_by_order | ( | GList * | pIconList | ) |
Sort a list with the order relation on (group order, icon order).
pIconList | a list of icons. |
GList* cairo_dock_sort_icons_by_name | ( | GList * | pIconList | ) |
Sort a list with the alphabetical order on the icons' name.
pIconList | a list of icons. |
Icon* cairo_dock_get_first_icon | ( | GList * | pIconList | ) |
Get the first icon of a list of icons.
pIconList | a list of icons. |
Icon* cairo_dock_get_last_icon | ( | GList * | pIconList | ) |
Get the last icon of a list of icons.
pIconList | a list of icons. |
Icon* cairo_dock_get_first_icon_of_group | ( | GList * | pIconList, |
CairoDockIconGroup | iGroup | ||
) |
Get the first icon of a given group.
pIconList | a list of icons. |
iGroup | the group of icon. |
Icon* cairo_dock_get_last_icon_of_group | ( | GList * | pIconList, |
CairoDockIconGroup | iGroup | ||
) |
Get the last icon of a given group.
pIconList | a list of icons. |
iGroup | the group of icon. |
Icon* cairo_dock_get_first_icon_of_order | ( | GList * | pIconList, |
CairoDockIconGroup | iGroup | ||
) |
Get the first icon whose group has the same order as a given one.
pIconList | a list of icons. |
iGroup | a group of icon. |
Icon* cairo_dock_get_last_icon_of_order | ( | GList * | pIconList, |
CairoDockIconGroup | iGroup | ||
) |
Get the last icon whose group has the same order as a given one.
pIconList | a list of icons. |
iGroup | a group of icon. |
Icon* cairo_dock_get_pointed_icon | ( | GList * | pIconList | ) |
Get the currently pointed icon in a list of icons.
pIconList | a list of icons. |
Get the icon next to a given one. The cost is O(n).
pIconList | a list of icons. |
pIcon | an icon in the list. |
Get the icon previous to a given one. The cost is O(n).
pIconList | a list of icons. |
pIcon | an icon in the list. |
Icon* cairo_dock_get_icon_with_command | ( | GList * | pIconList, |
const gchar * | cCommand | ||
) |
Search an icon with a given command in a list of icons.
pIconList | a list of icons. |
cCommand | the command. |
Icon* cairo_dock_get_icon_with_base_uri | ( | GList * | pIconList, |
const gchar * | cBaseURI | ||
) |
Search an icon with a given URI in a list of icons.
pIconList | a list of icons. |
cBaseURI | the URI. |
Icon* cairo_dock_get_icon_with_name | ( | GList * | pIconList, |
const gchar * | cName | ||
) |
Search an icon with a given name in a list of icons.
pIconList | a list of icons. |
cName | the name. |
Search the icon pointing on a given sub-dock in a list of icons.
pIconList | a list of icons. |
pSubDock | a sub-dock. |
void cairo_dock_get_icon_extent | ( | Icon * | pIcon, |
int * | iWidth, | ||
int * | iHeight | ||
) |
Get the dimension allocated to the surface/texture of an icon.
pIcon | the icon. |
iWidth | pointer to the width. |
iHeight | pointer to the height. |
void cairo_dock_get_current_icon_size | ( | Icon * | pIcon, |
GldiContainer * | pContainer, | ||
double * | fSizeX, | ||
double * | fSizeY | ||
) |
Get the current size of an icon as it is seen on the screen (taking into account the zoom and the ratio).
pIcon | the icon |
pContainer | its container |
fSizeX | pointer to the X size (horizontal) |
fSizeY | pointer to the Y size (vertical) |
void cairo_dock_compute_icon_area | ( | Icon * | icon, |
GldiContainer * | pContainer, | ||
GdkRectangle * | pArea | ||
) |
Get the total zone used by an icon on its container (taking into account reflect, gap to reflect, zoom and stretching).
icon | the icon |
pContainer | its container |
pArea | a rectangle filled with the zone used by the icon on its container. |
void gldi_icon_set_name | ( | Icon * | pIcon, |
const gchar * | cIconName | ||
) |
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.
pIcon | the icon. |
cIconName | the new label of the icon. You can even pass pIcon->cName. |
void gldi_icon_set_name_printf | ( | Icon * | pIcon, |
const gchar * | cIconNameFormat, | ||
... | |||
) |
Same as above, but takes a printf-like format string.
pIcon | the icon. |
cIconNameFormat | the new label of the icon, in a 'printf' way. |
... | data to be inserted into the string. |
void void gldi_icon_set_quick_info | ( | Icon * | pIcon, |
const gchar * | cQuickInfo | ||
) |
Set the quick-info of an icon. This is a small text (a few characters) that is superimposed on the icon.
pIcon | the icon. |
cQuickInfo | the text of the quick-info. If NULL, will just remove the current the quick-info. |
void gldi_icon_set_quick_info_printf | ( | Icon * | pIcon, |
const gchar * | cQuickInfoFormat, | ||
... | |||
) |
Same as above, but takes a printf-like format string.
pIcon | the icon. |
cQuickInfoFormat | the text of the quick-info, in a 'printf' way. |
... | data to be inserted into the string. |
gboolean cairo_dock_begin_draw_icon | ( | Icon * | pIcon, |
gint | iRenderingMode | ||
) |
Initiate an OpenGL drawing session on an icon's texture.
pIcon | the icon on which to draw. |
iRenderingMode | rendering mode. 0:normal, 1:don't clear the current texture, so that the drawing will be superimposed on it, 2:keep the current icon texture unchanged for all the drawing (the drawing is made on another texture). |
void cairo_dock_end_draw_icon | ( | Icon * | pIcon | ) |
Finish an OpenGL drawing session on an icon.
pIcon | the icon on which to draw. |