news download themes documentation links










FbTk::Transparent Class Reference

renders to drawable together with an alpha mask More...

#include <Transparent.hh>

List of all members.

Public Member Functions

 Transparent (Drawable source, Drawable dest, unsigned char alpha, int screen_num)
void setAlpha (unsigned char alpha)
 sets alpha value

void setSource (Drawable src, int screen_num)
 sets source drawable

void setDest (Drawable dest, int screen_num)
 sets destination drawable

void render (int src_x, int src_y, int dest_x, int dest_y, unsigned int width, unsigned int height) const
unsigned char alpha () const
Drawable dest () const
Drawable source () const


Detailed Description

renders to drawable together with an alpha mask

Definition at line 32 of file Transparent.hh.


Member Function Documentation

void FbTk::Transparent::render int  src_x,
int  src_y,
int  dest_x,
int  dest_y,
unsigned int  width,
unsigned int  height
const
 

renders to dest from src with specified coordinates and size

Definition at line 231 of file Transparent.cc.

References FbTk::App::instance().

00233                                                                         {
00234 #ifdef HAVE_XRENDER
00235     if (m_src_pic == 0 || m_dest_pic == 0 ||
00236         m_alpha_pic  == 0 || !s_render)
00237         return;
00238     // render src+alpha to dest picture
00239     XRenderComposite(FbTk::App::instance()->display(), 
00240                      PictOpOver, 
00241                      m_src_pic,
00242                      m_alpha_pic, 
00243                      m_dest_pic, 
00244                      src_x, src_y,
00245                      0, 0, 
00246                      dest_x, dest_y,
00247                      width, height);
00248 
00249 #endif // HAVE_XRENDER
00250 }


The documentation for this class was generated from the following files:

Fluxbox CVS-Jan-2003




      



Got comments about the page? Send them to webmaster.
If you have general Fluxbox related questions ask them on our irc channel or mailing lists.

Show Source








Designed by aLEczapKA