diff options
author | fluxgen <fluxgen> | 2004-06-07 20:24:38 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2004-06-07 20:24:38 (GMT) |
commit | 5530ce6450d0d96f504d000a0cfe4fb29c6c323c (patch) | |
tree | ea9c083d3488767b5ffa51b64eaf306b297813bd /src/FbTk/FbWindow.cc | |
parent | ae6315acc324c16b617fe6b2f802182eed587bd0 (diff) | |
download | fluxbox-5530ce6450d0d96f504d000a0cfe4fb29c6c323c.zip fluxbox-5530ce6450d0d96f504d000a0cfe4fb29c6c323c.tar.bz2 |
alpha access function
Diffstat (limited to 'src/FbTk/FbWindow.cc')
-rw-r--r-- | src/FbTk/FbWindow.cc | 9 |
1 files changed, 8 insertions, 1 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 | ||
252 | unsigned 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 | ||
253 | FbWindow &FbWindow::operator = (const FbWindow &win) { | 260 | FbWindow &FbWindow::operator = (const FbWindow &win) { |
254 | m_parent = win.parent(); | 261 | m_parent = win.parent(); |