13 #ifndef KWIN_PLACEMENT_H
14 #define KWIN_PLACEMENT_H
17 #include <tqvaluelist.h>
19 namespace KWinInternal
29 Placement(Workspace* w);
52 void place(Client* c, TQRect& area );
54 void placeAtRandom (Client* c,
const TQRect& area, Policy next = Unknown );
55 void placeCascaded (Client* c, TQRect& area, Policy next = Unknown );
56 void placeSmart (Client* c,
const TQRect& area, Policy next = Unknown );
57 void placeMaximizing (Client* c, TQRect& area, Policy next = Unknown );
58 void placeCentered (Client* c,
const TQRect& area, Policy next = Unknown );
59 void placeZeroCornered(Client* c,
const TQRect& area, Policy next = Unknown );
60 void placeDialog (Client* c, TQRect& area, Policy next = Unknown );
61 void placeUtility (Client* c, TQRect& area, Policy next = Unknown );
63 void reinitCascading(
int desktop );
65 static Policy policyFromString(
const TQString& policy,
bool no_special );
66 static const char* policyToString( Policy policy );
70 void place(Client* c, TQRect& area, Policy policy, Policy nextPlacement = Unknown );
71 void placeUnderMouse(Client* c, TQRect& area, Policy next = Unknown );
72 void placeOnMainWindow(Client* c, TQRect& area, Policy next = Unknown );
73 TQRect checkArea(
const Client*c,
const TQRect& area );
78 struct DesktopCascadingInfo
85 TQValueList<DesktopCascadingInfo> cci;
87 Workspace* m_WorkspacePtr;