KWinInternal::Placement Class Reference

List of all members.

Classes

struct  DesktopCascadingInfo

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, TQRect &area)
void placeAtRandom (Client *c, const TQRect &area, Policy next=Unknown)
void placeCascaded (Client *c, TQRect &area, Policy next=Unknown)
void placeSmart (Client *c, const TQRect &area, Policy next=Unknown)
void placeMaximizing (Client *c, TQRect &area, Policy next=Unknown)
void placeCentered (Client *c, const TQRect &area, Policy next=Unknown)
void placeZeroCornered (Client *c, const TQRect &area, Policy next=Unknown)
void placeDialog (Client *c, TQRect &area, Policy next=Unknown)
void placeUtility (Client *c, TQRect &area, Policy next=Unknown)
void reinitCascading (int desktop)

Static Public Member Functions

static Policy policyFromString (const TQString &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


Member Function Documentation

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

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

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

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

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

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

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

Place windows centered, on top of all others

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

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

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

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


The documentation for this class was generated from the following files:

Generated on Sat Oct 2 23:01:43 2010 by  doxygen 1.6.1