PieDock 1.4.3
Classes | Static Public Member Functions

PieDock::WindowManager Class Reference

#include <WindowManager.h>

List of all members.

Classes

class  Property
class  WindowList

Static Public Member Functions

static void activate (Display *, Window)
static void iconify (Display *, Window)
static void close (Display *, Window)
static Window getActive (Display *)
static Window getClientWindow (Display *, Window)
static std::string getTitle (Display *, Window)
static ArgbSurfacegetIcon (Display *, Window)
static unsigned long getWorkspace (Display *, Window)
static unsigned long getNumberOfWorkspaces (Display *)
static bool isNormalWindow (Display *, Window)
static void setWindowType (Display *, Window, const char *)
static void sendClientMessage (Display *, Window, const char *, unsigned long=0, unsigned long=0, unsigned long=0, unsigned long=0, unsigned long=0)
static Atom getAtom (Display *, const char *)

Detailed Description

Interface to the window manager

Author:
Markus Fisch <mf@markusfisch.de>

Member Function Documentation

void WindowManager::activate ( Display *  d,
Window  w 
) [static]

Activate, raise and switch to the workspace of some window

Parameters:
d- display
w- window id

References getWorkspace(), and sendClientMessage().

Referenced by PieDock::Menu::execute().

void WindowManager::close ( Display *  d,
Window  w 
) [static]

Close some window

Parameters:
d- display
w- window id

References sendClientMessage().

Referenced by PieDock::Menu::execute().

Window WindowManager::getActive ( Display *  d) [static]

Return currently active window

Parameters:
d- display

Referenced by PieDock::Menu::update().

Atom WindowManager::getAtom ( Display *  d,
const char *  n 
) [static]

Get X internal atom

Parameters:
d- display
n- name of atom

Referenced by getClientWindow(), getTitle(), isNormalWindow(), sendClientMessage(), and setWindowType().

Window WindowManager::getClientWindow ( Display *  d,
Window  w 
) [static]

Get client/content window from a possible frame/decor window

Parameters:
d- display
w- window

Private class to stand in if XmuClientWindow is missing; didn't like the thought of having a depedency for this

References getAtom().

Referenced by PieDock::Menu::execute().

ArgbSurface * WindowManager::getIcon ( Display *  d,
Window  w 
) [static]

Return icon of some window

Parameters:
d- display
w- window id

Referenced by PieDock::Menu::update().

unsigned long WindowManager::getNumberOfWorkspaces ( Display *  d) [static]

Return number of workspaces

Parameters:
d- display
std::string WindowManager::getTitle ( Display *  d,
Window  w 
) [static]

Return (visible) title of some window

Parameters:
d- display
w- window id

References getAtom().

Referenced by PieDock::Menu::update().

unsigned long WindowManager::getWorkspace ( Display *  d,
Window  w 
) [static]

Return workspace of window

Parameters:
d- display
w- window id

Referenced by activate(), and PieDock::WindowStack::addWindow().

void WindowManager::iconify ( Display *  d,
Window  w 
) [static]

Iconify some window

Parameters:
d- display
w- window id

Referenced by PieDock::Menu::execute().

bool WindowManager::isNormalWindow ( Display *  d,
Window  w 
) [static]

Returns true if given window is not a panel or dock or something like that

Parameters:
d- display
w- window id

References getAtom().

Referenced by PieDock::Menu::update().

void WindowManager::sendClientMessage ( Display *  d,
Window  w,
const char *  message,
unsigned long  data0 = 0,
unsigned long  data1 = 0,
unsigned long  data2 = 0,
unsigned long  data3 = 0,
unsigned long  data4 = 0 
) [static]

Send a ClientMessage to some window

Parameters:
d- display
w- target window
message- message to send
data0- data (optional)
data1- data (optional)
data2- data (optional)
data3- data (optional)
data4- data (optional)

References getAtom().

Referenced by activate(), and close().

void WindowManager::setWindowType ( Display *  d,
Window  w,
const char *  type 
) [static]

Set window type

Parameters:
d- display
w- target window
t- type

References getAtom().

Referenced by PieDock::PieMenuWindow::PieMenuWindow().


The documentation for this class was generated from the following files: