KWin
KWin::Placement Class Reference
#include <placement.h>
Public Types | |
enum | Policy { NoPlacement, Default, Unknown, Random, Smart, Cascade, Centered, ZeroCornered, UnderMouse, OnMainWindow, Maximizing } |
Public Member Functions | |
void | place (Client *c, QRect &area) |
void | placeAtRandom (Client *c, const QRect &area, Policy next=Unknown) |
void | placeCascaded (Client *c, QRect &area, Policy next=Unknown) |
void | placeCentered (Client *c, const QRect &area, Policy next=Unknown) |
void | placeDialog (Client *c, QRect &area, Policy next=Unknown) |
void | placeMaximizing (Client *c, QRect &area, Policy next=Unknown) |
Placement (Workspace *w) | |
void | placeSmart (Client *c, const QRect &area, Policy next=Unknown) |
void | placeUtility (Client *c, QRect &area, Policy next=Unknown) |
void | placeZeroCornered (Client *c, const QRect &area, Policy next=Unknown) |
void | reinitCascading (int desktop) |
Static Public Member Functions | |
static Policy | policyFromString (const QString &policy, bool no_special) |
static const char * | policyToString (Policy policy) |
Detailed Description
Definition at line 36 of file placement.h.
Member Enumeration Documentation
Placement policies.
How workspace decides the way windows get positioned on the screen. The better the policy, the heavier the resource use. Normally you don't have to worry. What the WM adds to the startup time is nil compared to the creation of the window itself in the memory
- Enumerator:
-
NoPlacement Default Unknown Random Smart Cascade Centered ZeroCornered UnderMouse OnMainWindow Maximizing
Definition at line 48 of file placement.h.
Constructor & Destructor Documentation
KWin::Placement::Placement | ( | Workspace * | w | ) |
Definition at line 42 of file placement.cpp.
Member Function Documentation
Places the client c according to the workspace's layout policy
Definition at line 52 of file placement.cpp.
Place the client c according to a simply "random" placement algorithm.
Definition at line 100 of file placement.cpp.
Place windows in a cascading order, remembering positions for each desktop
Definition at line 335 of file placement.cpp.
Place windows centered, on top of all others
Definition at line 425 of file placement.cpp.
Definition at line 461 of file placement.cpp.
Definition at line 532 of file placement.cpp.
Place the client c according to a really smart placement algorithm :-)
Definition at line 143 of file placement.cpp.
Definition at line 450 of file placement.cpp.
Place windows in the (0,0) corner, on top of all others
Definition at line 441 of file placement.cpp.
Placement::Policy KWin::Placement::policyFromString | ( | const QString & | policy, | |
bool | no_special | |||
) | [static] |
Definition at line 562 of file placement.cpp.
const char * KWin::Placement::policyToString | ( | Policy | policy | ) | [static] |
Definition at line 586 of file placement.cpp.
void KWin::Placement::reinitCascading | ( | int | desktop | ) |
Definition at line 311 of file placement.cpp.
The documentation for this class was generated from the following files: