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

Data Structures

struct  _CairoDockClassAppli
 Definition of a Class of application. More...
 

Macros

#define cairo_dock_register_class(cDesktopFile)
 

Functions

void gldi_window_foreach_inhibitor (GldiWindowActor *actor, GldiIconRFunc callback, gpointer data)
 
void cairo_dock_set_data_from_class (const gchar *cClass, Icon *pIcon)
 

Detailed Description

This class handles the Class Icons, which are icons pointing to the sub-dock of a class.

This class handles the managment of the applications classes. Classes are used to group the windows of a same program, and to bind a launcher to the launched application.

Macro Definition Documentation

#define cairo_dock_register_class (   cDesktopFile)

Register a class corresponding to a desktop file. Launchers can then derive from the class.

Parameters
cDesktopFilethe desktop file path or name; if it's a name or if the path couldn't be found, it will be searched in the common directories.
Returns
the class ID in a newly allocated string.

Function Documentation

void gldi_window_foreach_inhibitor ( GldiWindowActor actor,
GldiIconRFunc  callback,
gpointer  data 
)

Run a function on each Icon that inhibites a given window.

Parameters
actorthe window actor
callbackfunction to be called
datadata passed to the callback
void cairo_dock_set_data_from_class ( const gchar *  cClass,
Icon pIcon 
)

Make a launcher derive from a class. Parameters of the icon that are not NULL are not overwritten.

Parameters
cClassthe class name
pIconthe icon