aboutsummaryrefslogtreecommitdiff
path: root/src/Shape.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-01-11 15:02:11 (GMT)
committerfluxgen <fluxgen>2004-01-11 15:02:11 (GMT)
commitfabfc410029cfd606729dfd118e50dc336abf010 (patch)
tree83e35e1a66843f8e277b80b5b85dcd4ea0a05865 /src/Shape.hh
parentd75cb35327a2b82e0a1e8e4bf9a72b4996a0a3c8 (diff)
downloadfluxbox-fabfc410029cfd606729dfd118e50dc336abf010.zip
fluxbox-fabfc410029cfd606729dfd118e50dc336abf010.tar.bz2
use FbPixmap
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