float.h (574B)
1 // Copyright (c) 2003 - 2009 Anselm R Garbe <anselm@garbe.us> 2 // See LICENSE for license details. 3 4 #ifndef __FLOAT_H 5 #define __FLOAT_H 6 7 #include "wmi.h" 8 9 class Rectangle; 10 11 /** 12 * Provides base algorithms for moving and resizing rectangles 13 * in a floating manner. 14 */ 15 class Float { 16 17 public: 18 19 /** Used for resizing. */ 20 static void resize(Rectangle *rect, Direction dir, 21 int stepW, int stepH); 22 23 static void move(Rectangle *rect, int stepW, int stepH); 24 25 static void center(Rectangle *rect, Rectangle *parentRect); 26 27 }; 28 #endif // __FLOAT_H