From 2d0075c14a130f6cdc07d1485aa3983372063e9b Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 19 Feb 2006 11:12:02 +0000 Subject: moved placement strategies to different PlacementStrategy classes --- src/PlacementStrategy.hh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/PlacementStrategy.hh 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 @@ +#ifndef PLACEMENTSTRATEGY_HH +#define PLACEMENTSTRATEGY_HH + +#include +class FluxboxWindow; + +struct PlacementStrategy { + /** + * Calculates a placement for @win and returns suggested placement in @place_x and @place_y + * @param windowlist the windows that are on the same workspace + * @param win the window that needs to be placed + * @param place_x x placement of specific strategy + * @param place_y y placement of specific strategy + * @return true if the strategy found a placement for the window + */ + virtual bool placeWindow(const std::vector &windowlist, + const FluxboxWindow &win, + int &place_x, int &place_y) = 0; +}; + +#endif // PLACEMENTSTRATEGY_HH -- cgit v0.11.2