Logo Search packages:      
Sourcecode: fbpager version File versions  Download package

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(), and s_render.

                                                                        {
#ifdef HAVE_XRENDER
    if (m_src_pic == 0 || m_dest_pic == 0 ||
        m_alpha_pic  == 0 || !s_render)
        return;
    // render src+alpha to dest picture
    XRenderComposite(FbTk::App::instance()->display(), 
                     PictOpOver, 
                     m_src_pic,
                     m_alpha_pic, 
                     m_dest_pic, 
                     src_x, src_y,
                     0, 0, 
                     dest_x, dest_y,
                     width, height);

#endif // HAVE_XRENDER
}


Generated by  Doxygen 1.6.0   Back to index