PieDock
1.6.3
|
#include <WorkspaceLayout.h>
Classes | |
struct | WorkspacePosition |
Public Types | |
enum | PreferredVirtualLayout { Horizontal, Vertical, Square } |
Public Member Functions | |
const unsigned long & | getScreenWidth () const |
const unsigned long & | getScreenHeight () const |
const unsigned long & | getTotalWidth () const |
const unsigned long & | getTotalHeight () const |
const int & | getColumns () const |
const int & | getRows () const |
const bool & | isVirtual () const |
bool | isOnAnotherWorkspace (Window, WorkspacePosition &) |
bool | isOnAnotherWorkspace (Window, XWindowAttributes &, WorkspacePosition &) |
Static Public Member Functions | |
static WorkspaceLayout * | getWorkspaceLayout (Display *, PreferredVirtualLayout=Horizontal) |
Layout of workspaces
|
static |
Return singleton instance
d | - display |
l | - preferred layout of workspaces (optional) |
Referenced by PieDock::WindowManager::activate(), and PieDock::Menu::update().
bool WorkspaceLayout::isOnAnotherWorkspace | ( | Window | w, |
WorkspacePosition & | p | ||
) |
Returns true if the given window is on another workspace
w | - window |
p | - workspace position |
Referenced by PieDock::WindowManager::activate(), and PieDock::MenuItemWithWorkspaces::showWorkspace().
bool WorkspaceLayout::isOnAnotherWorkspace | ( | Window | w, |
XWindowAttributes & | wa, | ||
WorkspacePosition & | p | ||
) |
Returns true if the given window is on another workspace
w | - window |
wa | - window attributes |
p | - workspace position |
References PieDock::WindowManager::getCurrentWorkspace(), PieDock::WindowManager::getWorkspace(), and PieDock::WindowManager::getWorkspacePosition().