aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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