KWinInternal::Placement Class Reference
List of all members.Public Types | |
enum | Policy { NoPlacement, Default, Random, Smart, Cascade, Centered, ZeroCornered, UnderMouse, OnMainWindow } |
Public Member Functions | |
Placement (Workspace *w) | |
void | place (Client *c, QRect &area) |
void | placeAtRandom (Client *c, const QRect &area) |
void | placeCascaded (Client *c, const QRect &area, bool re_init=false) |
void | placeSmart (Client *c, const QRect &area) |
void | placeCentered (Client *c, const QRect &area) |
void | placeZeroCornered (Client *c, const QRect &area) |
void | placeDialog (Client *c, QRect &area) |
void | placeUtility (Client *c, QRect &area) |
Static Public Member Functions | |
static Policy | policyFromString (const QString &policy, bool no_special) |
static const char * | policyToString (Policy policy) |
Detailed Description
Definition at line 25 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 Definition at line 47 of file placement.h. |
Member Function Documentation
|
Places the client c according to the workspace's layout policy Definition at line 49 of file placement.cpp. References KWinInternal::WindowRules::checkPlacement(), KWinInternal::Client::isDialog(), KWinInternal::Client::isSplash(), KWinInternal::Client::isUtility(), KWinInternal::options, placeDialog(), KWinInternal::Options::placement, placeUtility(), and KWinInternal::Client::rules(). Referenced by KWinInternal::Workspace::place(), and placeUtility(). |
|
Place the client c according to a simply "random" placement algorithm. Definition at line 90 of file placement.cpp. References QRect::bottom(), KWinInternal::Client::height(), QRect::height(), KWinInternal::Client::move(), QRect::right(), KWinInternal::Client::width(), QRect::width(), QRect::x(), and QRect::y(). |
|
Place windows in a cascading order, remembering positions for each desktop Definition at line 304 of file placement.cpp. References KWinInternal::Workspace::currentDesktop(), KWinInternal::Client::desktop(), QRect::height(), KWinInternal::Client::height(), KWinInternal::Client::isOnAllDesktops(), QRect::left(), KWinInternal::Client::move(), placeSmart(), QRect::top(), QRect::width(), and KWinInternal::Client::width(). Referenced by KWinInternal::Workspace::cascadeDesktop(). |
|
Place the client c according to a really smart placement algorithm :-) Definition at line 133 of file placement.cpp. References QValueList::begin(), QRect::bottom(), QValueList::ConstIterator(), KWinInternal::Workspace::currentDesktop(), KWinInternal::Client::desktop(), QValueList::end(), QRect::height(), KWinInternal::Client::height(), KWinInternal::Client::isOnAllDesktops(), KWinInternal::Client::isShown(), QRect::left(), KWinInternal::Client::move(), QRect::right(), KWinInternal::Workspace::stackingOrder(), QRect::top(), and KWinInternal::Client::width(). Referenced by placeCascaded(), KWinInternal::Workspace::placeSmart(), and KWinInternal::Workspace::unclutterDesktop(). |
|
Place windows centered, on top of all others Definition at line 389 of file placement.cpp. References KWinInternal::Client::height(), QRect::height(), QRect::left(), KWinInternal::Client::move(), QRect::top(), KWinInternal::Client::width(), and QRect::width(). |
|
Place windows in the (0,0) corner, on top of all others Definition at line 405 of file placement.cpp. References QRect::left(), KWinInternal::Client::move(), and QRect::top(). |
The documentation for this class was generated from the following files: