aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/FbTk/FbWindow.cc9
-rw-r--r--src/FbTk/FbWindow.hh3
2 files changed, 10 insertions, 2 deletions
diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc
index e7649d7..8bd0ced 100644
--- a/src/FbTk/FbWindow.cc
+++ b/src/FbTk/FbWindow.cc
@@ -19,7 +19,7 @@
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: FbWindow.cc,v 1.34 2004/05/24 13:09:32 rathnor Exp $ 22// $Id: FbWindow.cc,v 1.35 2004/06/07 20:24:38 fluxgen Exp $
23 23
24#include "FbWindow.hh" 24#include "FbWindow.hh"
25 25
@@ -249,6 +249,13 @@ void FbWindow::setAlpha(unsigned char alpha) {
249#endif // HAVE_XRENDER 249#endif // HAVE_XRENDER
250} 250}
251 251
252unsigned char FbWindow::alpha() const {
253#ifdef HAVE_XRENDER
254 if (m_transparent.get())
255 return m_transparent->alpha();
256#endif // HAVE_XRENDER
257 return 255;
258}
252 259
253FbWindow &FbWindow::operator = (const FbWindow &win) { 260FbWindow &FbWindow::operator = (const FbWindow &win) {
254 m_parent = win.parent(); 261 m_parent = win.parent();
diff --git a/src/FbTk/FbWindow.hh b/src/FbTk/FbWindow.hh
index 3c5dabb..88437c1 100644
--- a/src/FbTk/FbWindow.hh
+++ b/src/FbTk/FbWindow.hh
@@ -19,7 +19,7 @@
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: FbWindow.hh,v 1.30 2004/05/17 15:01:32 rathnor Exp $ 22// $Id: FbWindow.hh,v 1.31 2004/06/07 20:24:37 fluxgen Exp $
23 23
24#ifndef FBTK_FBWINDOW_HH 24#ifndef FBTK_FBWINDOW_HH
25#define FBTK_FBWINDOW_HH 25#define FBTK_FBWINDOW_HH
@@ -151,6 +151,7 @@ public:
151 inline unsigned int height() const { return m_height; } 151 inline unsigned int height() const { return m_height; }
152 inline unsigned int borderWidth() const { return m_border_width; } 152 inline unsigned int borderWidth() const { return m_border_width; }
153 inline int depth() const { return m_depth; } 153 inline int depth() const { return m_depth; }
154 unsigned char alpha() const;
154 int screenNumber() const; 155 int screenNumber() const;
155 long eventMask() const; 156 long eventMask() const;
156 /// compare X window 157 /// compare X window