• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KWin

KWin::Placement

KWin::Placement Class Reference

#include <placement.h>

List of all members.


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

enum KWin::Placement::Policy

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

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

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

Definition at line 52 of file placement.cpp.

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

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

Definition at line 100 of file placement.cpp.

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

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

Definition at line 335 of file placement.cpp.

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

Place windows centered, on top of all others

Definition at line 425 of file placement.cpp.

void KWin::Placement::placeDialog ( Client *  c,
QRect &  area,
Policy  next = Unknown 
)

Definition at line 461 of file placement.cpp.

void KWin::Placement::placeMaximizing ( Client *  c,
QRect &  area,
Policy  next = Unknown 
)

Definition at line 532 of file placement.cpp.

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

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

Definition at line 143 of file placement.cpp.

void KWin::Placement::placeUtility ( Client *  c,
QRect &  area,
Policy  next = Unknown 
)

Definition at line 450 of file placement.cpp.

void KWin::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 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:
  • placement.h
  • placement.cpp

KWin

Skip menu "KWin"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal