aboutsummaryrefslogtreecommitdiff
path: root/src/Shape.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/Shape.hh')
-rw-r--r--src/Shape.hh10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Shape.hh b/src/Shape.hh
index 0bc037f..53faaaa 100644
--- a/src/Shape.hh
+++ b/src/Shape.hh
@@ -19,15 +19,17 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: Shape.hh,v 1.3 2003/12/16 23:32:02 fluxgen Exp $ 22// $Id: Shape.hh,v 1.4 2004/01/11 15:02:11 fluxgen Exp $
23 23
24#ifndef SHAPE_HH 24#ifndef SHAPE_HH
25#define SHAPE_HH 25#define SHAPE_HH
26 26
27#include <X11/Xlib.h> 27#include <X11/Xlib.h>
28#include <memory>
28 29
29namespace FbTk { 30namespace FbTk {
30class FbWindow; 31class FbWindow;
32class FbPixmap;
31} 33}
32 34
33/// creates round corners on windows 35/// creates round corners on windows
@@ -49,16 +51,16 @@ public:
49 void update(); 51 void update();
50 /// assign a new window 52 /// assign a new window
51 void setWindow(FbTk::FbWindow &win); 53 void setWindow(FbTk::FbWindow &win);
54 unsigned int width() const;
55 unsigned int height() const;
52 // sets shape notify mask 56 // sets shape notify mask
53 static void setShapeNotify(const FbTk::FbWindow &win); 57 static void setShapeNotify(const FbTk::FbWindow &win);
54 /// @return true if window has shape 58 /// @return true if window has shape
55 static bool isShaped(const FbTk::FbWindow &win); 59 static bool isShaped(const FbTk::FbWindow &win);
56private: 60private:
57 FbTk::FbWindow *m_win; ///< window to be shaped 61 FbTk::FbWindow *m_win; ///< window to be shaped
58 Pixmap m_shape; ///< our shape pixmap 62 std::auto_ptr<FbTk::FbPixmap> m_shape; ///< our shape pixmap
59 int m_shapeplaces; ///< places to shape 63 int m_shapeplaces; ///< places to shape
60 unsigned int m_width; ///< width of window (the "old" size), if width != window width then shape resizes
61 unsigned int m_height; ///< height of window (the "old" size), if height != window height then shape resizes
62}; 64};
63 65
64#endif // SHAPE_HH 66#endif // SHAPE_HH