Cairo-Dock  3.4.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
cairo-dock-icon-manager.h File Reference

Enumerations

enum  CairoIconNotifications {
  NOTIFICATION_UNFOLD_SUBDOCK,
  NOTIFICATION_UPDATE_ICON,
  NOTIFICATION_UPDATE_ICON_SLOW,
  NOTIFICATION_PRE_RENDER_ICON,
  NOTIFICATION_RENDER_ICON,
  NOTIFICATION_STOP_ICON,
  NOTIFICATION_REQUEST_ICON_ANIMATION
}
 signals More...
 

Functions

void gldi_icons_foreach (GldiIconFunc pFunction, gpointer pUserData)
 
gint cairo_dock_search_icon_size (GtkIconSize iIconSize)
 
gchar * cairo_dock_search_icon_s_path (const gchar *cFileName, gint iDesiredIconSize)
 

Detailed Description

This class manages the icons parameters and their associated ressources.

Specialized Icons are handled by the corresponding manager.

Enumeration Type Documentation

signals

Enumerator
NOTIFICATION_UNFOLD_SUBDOCK 

notification called when an icon's sub-dock is starting to (un)fold. data : {Icon}

NOTIFICATION_UPDATE_ICON 

notification called when an icon is updated in the fast rendering loop.

NOTIFICATION_UPDATE_ICON_SLOW 

notification called when an icon is updated in the slow rendering loop.

NOTIFICATION_PRE_RENDER_ICON 

notification called when the background of an icon is rendered.

NOTIFICATION_RENDER_ICON 

notification called when an icon is rendered.

NOTIFICATION_STOP_ICON 

notification called when an icon is stopped, for instance before it is removed.

NOTIFICATION_REQUEST_ICON_ANIMATION 

notification called when someone asks for an animation for a given icon.

Function Documentation

void gldi_icons_foreach ( GldiIconFunc  pFunction,
gpointer  pUserData 
)

Execute an action on all icons.

Parameters
pFunctionthe action.
pUserDatadata passed to the callback.
gint cairo_dock_search_icon_size ( GtkIconSize  iIconSize)

Search the icon size of a GtkIconSize.

Parameters
iIconSizea GtkIconSize
Returns
the maximum between the width and the height of the icon size in pixel (or 128 if there is a problem)
gchar* cairo_dock_search_icon_s_path ( const gchar *  cFileName,
gint  iDesiredIconSize 
)

Search the path of an icon into the defined icons themes. It also handles the '~' caracter in paths.

Parameters
cFileNamename of the icon file.
iDesiredIconSizedesired icon size if we use icons from user icons theme.
Returns
the complete path of the icon, or NULL if not found.