aboutsummaryrefslogtreecommitdiff
path: root/src/PlacementStrategy.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2006-02-19 11:12:02 (GMT)
committerfluxgen <fluxgen>2006-02-19 11:12:02 (GMT)
commit2d0075c14a130f6cdc07d1485aa3983372063e9b (patch)
tree27e93fe8d1bdc25644e131369d0f71b251e59fff /src/PlacementStrategy.hh
parentacaf89bbb6efb2b0d0de43c2667fb2a4af8fb3a3 (diff)
downloadfluxbox-2d0075c14a130f6cdc07d1485aa3983372063e9b.zip
fluxbox-2d0075c14a130f6cdc07d1485aa3983372063e9b.tar.bz2
moved placement strategies to different PlacementStrategy classes
Diffstat (limited to 'src/PlacementStrategy.hh')
-rw-r--r--src/PlacementStrategy.hh21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/PlacementStrategy.hh b/src/PlacementStrategy.hh
new file mode 100644
index 0000000..6c782f4
--- /dev/null
+++ b/src/PlacementStrategy.hh
@@ -0,0 +1,21 @@
1#ifndef PLACEMENTSTRATEGY_HH
2#define PLACEMENTSTRATEGY_HH
3
4#include <vector>
5class FluxboxWindow;
6
7struct PlacementStrategy {
8 /**
9 * Calculates a placement for @win and returns suggested placement in @place_x and @place_y
10 * @param windowlist the windows that are on the same workspace
11 * @param win the window that needs to be placed
12 * @param place_x x placement of specific strategy
13 * @param place_y y placement of specific strategy
14 * @return true if the strategy found a placement for the window
15 */
16 virtual bool placeWindow(const std::vector<FluxboxWindow *> &windowlist,
17 const FluxboxWindow &win,
18 int &place_x, int &place_y) = 0;
19};
20
21#endif // PLACEMENTSTRATEGY_HH