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

Data Structures

struct  _GldiWindowManagerBackend
 Definition of the Windows Manager backend. More...
 
struct  _GldiWindowActor
 Definition of a window actor. More...
 

Enumerations

enum  GldiWindowNotifications
 signals
 

Functions

void gldi_windows_manager_register_backend (GldiWindowManagerBackend *pBackend)
 
void gldi_windows_foreach (gboolean bOrderedByZ, GFunc callback, gpointer data)
 
GldiWindowActorgldi_windows_find (gboolean(*callback)(GldiWindowActor *, gpointer), gpointer data)
 
GldiWindowActorgldi_windows_get_active (void)
 

Detailed Description

This class manages the windows actors and notifies for any change on them.

Function Documentation

void gldi_windows_manager_register_backend ( GldiWindowManagerBackend pBackend)

Register a Window Manager backend. NULL functions are simply ignored.

Parameters
pBackenda Window Manager backend
void gldi_windows_foreach ( gboolean  bOrderedByZ,
GFunc  callback,
gpointer  data 
)

Run a function on each window actor.

Parameters
bOrderedByZTRUE to sort by z-order, FALSE to sort by age
callbackthe callback
datauser data
GldiWindowActor* gldi_windows_find ( gboolean(*)(GldiWindowActor *, gpointer)  callback,
gpointer  data 
)

Run a function on each window actor.

Parameters
callbackthe callback (takes the actor and the data, returns TRUE to stop)
datauser data
Returns
the found actor, or NULL
GldiWindowActor* gldi_windows_get_active ( void  )

Get the current active window actor.

Returns
the actor, or NULL if no window is currently active