|
Cairo-Dock 2.4.0~1
|
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 | ) |
Make an icon static. Static icon are not animated when mouse hovers them.
| icon | an icon. |
| #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 cairo_dock_remove_quick_info | ( | pIcon | ) |
Clear the quick-info of an icon.
| pIcon | the icon. |
| 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. |
| Icon* cairo_dock_get_icon_with_module | ( | GList * | pIconList, |
| CairoDockModule * | pModule | ||
| ) |
Search the icon of a given module in a list of icons.
| pIconList | a list of icons. |
| pModule | the module. |
| 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, |
| CairoContainer * | 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, |
| CairoContainer * | 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. |
| Icon* cairo_dock_foreach_icons_of_type | ( | GList * | pIconList, |
| CairoDockIconGroup | iGroup, | ||
| CairoDockForeachIconFunc | pFuntion, | ||
| gpointer | data | ||
| ) |
Run an action on all the icons of a given group. The action can even destroy or remove the icon from the list.
| pIconList | a list of icons. |
| iGroup | the group. |
| pFuntion | the callback. |
| data | data passed as a parameter of the callback. |
| void cairo_dock_update_icon_s_container_name | ( | Icon * | icon, |
| const gchar * | cNewParentDockName | ||
| ) |
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.
| icon | an icon. |
| cNewParentDockName | the name of its new dock. |
| void cairo_dock_set_icon_name | ( | const gchar * | cIconName, |
| Icon * | pIcon, | ||
| CairoContainer * | pContainer | ||
| ) |
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.
| cIconName | the new label of the icon. You can even pass pIcon->cName. |
| pIcon | the icon. |
| pContainer | the container of the icon. |
| void cairo_dock_set_icon_name_printf | ( | Icon * | pIcon, |
| CairoContainer * | pContainer, | ||
| const gchar * | cIconNameFormat, | ||
| ... | |||
| ) |
Same as above, but takes a printf-like format string.
| pIcon | the icon. |
| pContainer | the container of the icon. |
| cIconNameFormat | the new label of the icon, in a 'printf' way. |
| ... | data to be inserted into the string. |
| void void cairo_dock_set_quick_info | ( | Icon * | pIcon, |
| CairoContainer * | pContainer, | ||
| 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. |
| pContainer | the container of the icon. |
| cQuickInfo | the text of the quick-info. |
| void cairo_dock_set_quick_info_printf | ( | Icon * | pIcon, |
| CairoContainer * | pContainer, | ||
| const gchar * | cQuickInfoFormat, | ||
| ... | |||
| ) |
Same as above, but takes a printf-like format string.
| pIcon | the icon. |
| pContainer | the container of the icon. |
| cQuickInfoFormat | the text of the quick-info, in a 'printf' way. |
| ... | data to be inserted into the string. |