2002-06-29 10:31:33 +04:00
|
|
|
/*****************************************************************
|
|
|
|
kwin - the KDE window manager
|
|
|
|
|
|
|
|
Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org>
|
|
|
|
|
|
|
|
|
|
|
|
Placement algorithms
|
|
|
|
Copyright (C) 1997 to 2002 Cristian Tibirna <tibirna@kde.org>
|
|
|
|
******************************************************************/
|
2002-07-27 00:30:36 +04:00
|
|
|
#ifndef KWIN_PLACEMENT_H
|
|
|
|
#define KWIN_PLACEMENT_H
|
2002-06-29 10:31:33 +04:00
|
|
|
|
|
|
|
#include <qpoint.h>
|
|
|
|
#include <qvaluelist.h>
|
|
|
|
|
|
|
|
namespace KWinInternal {
|
|
|
|
|
|
|
|
class Workspace;
|
|
|
|
class Client;
|
|
|
|
|
|
|
|
class PlacementPrivate;
|
|
|
|
|
|
|
|
class Placement
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
Placement(Workspace* w);
|
|
|
|
~Placement();
|
|
|
|
|
|
|
|
void place(Client* c);
|
|
|
|
|
|
|
|
void placeAtRandom (Client* c);
|
|
|
|
void placeCascaded (Client* c, bool re_init = false);
|
|
|
|
void placeSmart (Client* c);
|
2002-07-16 00:28:55 +04:00
|
|
|
void placeCentered (Client* c);
|
|
|
|
void placeZeroCornered(Client* c);
|
2002-06-29 10:31:33 +04:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
Placement();
|
|
|
|
|
|
|
|
PlacementPrivate* d;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2003-07-26 14:41:28 +04:00
|
|
|
}
|
2002-06-29 18:39:35 +04:00
|
|
|
|
|
|
|
#endif
|