|
PieDock 1.4.3
|
#include <WindowManager.h>
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 ArgbSurface * | getIcon (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 *) |
Interface to the window manager
| void WindowManager::activate | ( | Display * | d, |
| Window | w | ||
| ) | [static] |
Activate, raise and switch to the workspace of some window
| 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
| d | - display |
| w | - window id |
References sendClientMessage().
Referenced by PieDock::Menu::execute().
| Window WindowManager::getActive | ( | Display * | d | ) | [static] |
| Atom WindowManager::getAtom | ( | Display * | d, |
| const char * | n | ||
| ) | [static] |
Get X internal atom
| 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
| 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
| d | - display |
| w | - window id |
Referenced by PieDock::Menu::update().
| unsigned long WindowManager::getNumberOfWorkspaces | ( | Display * | d | ) | [static] |
Return number of workspaces
| d | - display |
| std::string WindowManager::getTitle | ( | Display * | d, |
| Window | w | ||
| ) | [static] |
Return (visible) title of some window
| 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
| d | - display |
| w | - window id |
Referenced by activate(), and PieDock::WindowStack::addWindow().
| void WindowManager::iconify | ( | Display * | d, |
| Window | w | ||
| ) | [static] |
| bool WindowManager::isNormalWindow | ( | Display * | d, |
| Window | w | ||
| ) | [static] |
Returns true if given window is not a panel or dock or something like that
| 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
| 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
| d | - display |
| w | - target window |
| t | - type |
References getAtom().
Referenced by PieDock::PieMenuWindow::PieMenuWindow().
1.7.3