KWinInternal::Placement Class Reference

List of all members.

Detailed Description

Definition at line 25 of file placement.h.


Public Types

enum  Policy {
  NoPlacement, Default, Unknown, Random,
  Smart, Cascade, Centered, ZeroCornered,
  UnderMouse, OnMainWindow, Maximizing
}

Public Member Functions

 Placement (Workspace *w)
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 placeSmart (Client *c, const QRect &area, Policy next=Unknown)
void placeMaximizing (Client *c, QRect &area, Policy next=Unknown)
void placeCentered (Client *c, const QRect &area, Policy next=Unknown)
void placeZeroCornered (Client *c, const QRect &area, Policy next=Unknown)
void placeDialog (Client *c, QRect &area, Policy next=Unknown)
void placeUtility (Client *c, 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)

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 37 of file placement.h.


Member Function Documentation

void KWinInternal::Placement::place ( Client c,
QRect &  area 
)

Places the client c according to the workspace's layout policy

Definition at line 40 of file placement.cpp.

void KWinInternal::Placement::placeAtRandom ( Client c,
const QRect &  area,
Policy  next = Unknown 
)

Place the client c according to a simply "random" placement algorithm.

Definition at line 88 of file placement.cpp.

void KWinInternal::Placement::placeCascaded ( Client c,
QRect &  area,
Policy  nextPlacement = Unknown 
)

Place windows in a cascading order, remembering positions for each desktop

Definition at line 323 of file placement.cpp.

void KWinInternal::Placement::placeSmart ( Client c,
const QRect &  area,
Policy  next = Unknown 
)

Place the client c according to a really smart placement algorithm :-)

Definition at line 131 of file placement.cpp.

void KWinInternal::Placement::placeCentered ( Client c,
const QRect &  area,
Policy  next = Unknown 
)

Place windows centered, on top of all others

Definition at line 411 of file placement.cpp.

void KWinInternal::Placement::placeZeroCornered ( Client c,
const QRect &  area,
Policy  next = Unknown 
)

Place windows in the (0,0) corner, on top of all others

Definition at line 427 of file placement.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys