Cairo-Dock 2.4.0~1
cairo-dock-X-manager.h File Reference

Data Structures

struct  _CairoDockWMBackend
 Definition of the Window Manager backend. More...
struct  _CairoDockDesktopBackground
 Definition of a Desktop Background Buffer. It has a reference count so that it can be shared across all the lib. More...

Enumerations

enum  CairoDesktopNotifications {
  NOTIFICATION_DESKTOP_CHANGED,
  NOTIFICATION_SCREEN_GEOMETRY_ALTERED,
  NOTIFICATION_DESKTOP_VISIBILITY_CHANGED,
  NOTIFICATION_KBD_STATE_CHANGED,
  NOTIFICATION_WINDOW_CONFIGURED,
  NOTIFICATION_WINDOW_ACTIVATED,
  NOTIFICATION_WINDOW_PROPERTY_CHANGED
}
 signals More...

Functions

void cairo_dock_wm_register_backend (CairoDockWMBackend *pBackend)
void cairo_dock_get_current_desktop_and_viewport (int *iCurrentDesktop, int *iCurrentViewportX, int *iCurrentViewportY)

Detailed Description

This class manages the interactions with X. The X manager will handle signals from X and dispatch them, and manages the screen geometry.


Enumeration Type Documentation

signals

Enumerator:
NOTIFICATION_DESKTOP_CHANGED 

notification called when the user switches to another desktop/viewport. data : NULL

NOTIFICATION_SCREEN_GEOMETRY_ALTERED 

notification called when the geometry of the desktop has changed (number of viewports/desktops, dimensions). data : NULL

NOTIFICATION_DESKTOP_VISIBILITY_CHANGED 

notification called when the desktop is shown/hidden. data:NULL.

NOTIFICATION_KBD_STATE_CHANGED 

notification called when the state of the keyboard has changed.

NOTIFICATION_WINDOW_CONFIGURED 

notification called when a window is resized or moved, or when the z-order of windows has changed. data : {Xid, XConfigureEvent or NULL}.

NOTIFICATION_WINDOW_ACTIVATED 

notification called when the active window has changed. data : Window* or NULL

NOTIFICATION_WINDOW_PROPERTY_CHANGED 

notification called when a window's property has changed. data : {Window, Atom, int}


Function Documentation

void cairo_dock_wm_register_backend ( CairoDockWMBackend pBackend)

Register a Window Manager backend, overwriting any previous one.

Parameters:
pBackenda Window Manager backend; the function takes ownership of the pointer.
void cairo_dock_get_current_desktop_and_viewport ( int *  iCurrentDesktop,
int *  iCurrentViewportX,
int *  iCurrentViewportY 
)

Get the current workspace (desktop and viewport).

Parameters:
iCurrentDesktopwill be filled with the current desktop number
iCurrentViewportXwill be filled with the current horizontal viewport number
iCurrentViewportYwill be filled with the current vertical viewport number
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines