summaryrefslogtreecommitdiff
path: root/src/Shape.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/Shape.hh')
-rw-r--r--src/Shape.hh8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Shape.hh b/src/Shape.hh
index 75d9bd4..c8db79a 100644
--- a/src/Shape.hh
+++ b/src/Shape.hh
@@ -53,14 +53,20 @@ public:
53 void setWindow(FbTk::FbWindow &win); 53 void setWindow(FbTk::FbWindow &win);
54 unsigned int width() const; 54 unsigned int width() const;
55 unsigned int height() const; 55 unsigned int height() const;
56 unsigned int clipWidth() const;
57 unsigned int clipHeight() const;
56 // sets shape notify mask 58 // sets shape notify mask
57 static void setShapeNotify(const FbTk::FbWindow &win); 59 static void setShapeNotify(const FbTk::FbWindow &win);
58 /// @return true if window has shape 60 /// @return true if window has shape
59 static bool isShaped(const FbTk::FbWindow &win); 61 static bool isShaped(const FbTk::FbWindow &win);
60private: 62private:
63 FbTk::FbPixmap *createShape(bool clipshape); // true for clip, false for bounding
64
61 FbTk::FbWindow *m_win; ///< window to be shaped 65 FbTk::FbWindow *m_win; ///< window to be shaped
62 std::auto_ptr<FbTk::FbPixmap> m_shape; ///< our shape pixmap 66 std::auto_ptr<FbTk::FbPixmap> m_clipshape; ///< our shape pixmap
67 std::auto_ptr<FbTk::FbPixmap> m_boundingshape; ///< our shape pixmap
63 int m_shapeplaces; ///< places to shape 68 int m_shapeplaces; ///< places to shape
69
64}; 70};
65 71
66#endif // SHAPE_HH 72#endif // SHAPE_HH