aboutsummaryrefslogtreecommitdiff
path: root/src/Shape.hh
diff options
context:
space:
mode:
authorsimonb <simonb>2007-08-08 15:41:10 (GMT)
committersimonb <simonb>2007-08-08 15:41:10 (GMT)
commita04eed16c5287c11e565ecb25f465b96d6f61279 (patch)
treead857bb3a77acb1e846b4a60bb3ca74b334dbd59 /src/Shape.hh
parent8c53e8861ed51f284545634b46150f0adeb567e2 (diff)
downloadfluxbox_pavel-a04eed16c5287c11e565ecb25f465b96d6f61279.zip
fluxbox_pavel-a04eed16c5287c11e565ecb25f465b96d6f61279.tar.bz2
fix elements of shaping, more to come
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