BC_Pixmap Class Reference

#include <bcpixmap.h>

Inherited by ResourcePixmap.

Collaboration diagram for BC_Pixmap:

Collaboration graph
[legend]

Public Member Functions

 BC_Pixmap (BC_WindowBase *parent_window, VFrame *frame, int mode=PIXMAP_OPAQUE, int icon_offset=0)
 BC_Pixmap (BC_WindowBase *parent_window, int w, int h)
 ~BC_Pixmap ()
void reset ()
void resize (int w, int h)
void enable_opengl ()
void copy_area (int x, int y, int w, int h, int x2, int y2)
int write_drawable (Drawable &pixmap, int dest_x, int dest_y, int dest_w=-1, int dest_h=-1, int src_x=-1, int src_y=-1)
void draw_pixmap (BC_Pixmap *pixmap, int dest_x=0, int dest_y=0, int dest_w=-1, int dest_h=-1, int src_x=0, int src_y=0)
void draw_vframe (VFrame *frame, int dest_x=0, int dest_y=0, int dest_w=-1, int dest_h=-1, int src_x=0, int src_y=0)
int get_w ()
int get_h ()
int get_w_fixed ()
int get_h_fixed ()
Pixmap get_pixmap ()
Pixmap get_alpha ()
int use_alpha ()
int use_opaque ()

Private Member Functions

int initialize (BC_WindowBase *parent_window, int w, int h, int mode)

Private Attributes

BC_WindowBaseparent_window
BC_WindowBasetop_level
Pixmap opaque_pixmap
Pixmap alpha_pixmap
void * opaque_xft_draw
void * alpha_xft_draw
int w
int h
int mode
GC alpha_gc
GC copy_gc

Friends

class BC_WindowBase

Detailed Description

Definition at line 23 of file bcpixmap.h.


Constructor & Destructor Documentation

BC_Pixmap::BC_Pixmap ( BC_WindowBase parent_window,
VFrame frame,
int  mode = PIXMAP_OPAQUE,
int  icon_offset = 0 
)

BC_Pixmap::BC_Pixmap ( BC_WindowBase parent_window,
int  w,
int  h 
)

Definition at line 96 of file bcpixmap.C.

References initialize(), and reset().

Here is the call graph for this function:

BC_Pixmap::~BC_Pixmap (  ) 


Member Function Documentation

void BC_Pixmap::reset (  ) 

Reimplemented in ResourcePixmap.

Definition at line 137 of file bcpixmap.C.

References alpha_pixmap, alpha_xft_draw, opaque_pixmap, opaque_xft_draw, parent_window, and top_level.

Referenced by BC_Pixmap().

void BC_Pixmap::resize ( int  w,
int  h 
)

void BC_Pixmap::enable_opengl (  ) 

void BC_Pixmap::copy_area ( int  x,
int  y,
int  w,
int  h,
int  x2,
int  y2 
)

Definition at line 272 of file bcpixmap.C.

References BC_WindowBase::display, BC_WindowBase::gc, opaque_pixmap, and top_level.

Referenced by ResourcePixmap::draw_data().

int BC_Pixmap::write_drawable ( Drawable &  pixmap,
int  dest_x,
int  dest_y,
int  dest_w = -1,
int  dest_h = -1,
int  src_x = -1,
int  src_y = -1 
)

Definition at line 286 of file bcpixmap.C.

References alpha_gc, BC_WindowBase::display, BC_WindowBase::gc, h, top_level, use_alpha(), use_opaque(), and w.

Referenced by BC_WindowBase::draw_3segment(), BC_WindowBase::draw_pixmap(), and draw_pixmap().

Here is the call graph for this function:

void BC_Pixmap::draw_pixmap ( BC_Pixmap pixmap,
int  dest_x = 0,
int  dest_y = 0,
int  dest_w = -1,
int  dest_h = -1,
int  src_x = 0,
int  src_y = 0 
)

void BC_Pixmap::draw_vframe ( VFrame frame,
int  dest_x = 0,
int  dest_y = 0,
int  dest_w = -1,
int  dest_h = -1,
int  src_x = 0,
int  src_y = 0 
)

Definition at line 340 of file bcpixmap.C.

References BC_WindowBase::draw_vframe(), and parent_window.

Referenced by AssetPicon::create_objects(), ResourceThread::do_video(), and ResourcePixmap::draw_video_resource().

Here is the call graph for this function:

int BC_Pixmap::get_w (  ) 

int BC_Pixmap::get_h (  ) 

int BC_Pixmap::get_w_fixed (  ) 

Definition at line 397 of file bcpixmap.C.

References w.

Referenced by BC_WindowBase::draw_3segment().

int BC_Pixmap::get_h_fixed (  ) 

Definition at line 402 of file bcpixmap.C.

References h.

Pixmap BC_Pixmap::get_pixmap (  ) 

Definition at line 407 of file bcpixmap.C.

References opaque_pixmap.

Referenced by BC_WindowBase::draw_tiles(), and BC_WindowBase::set_icon().

Pixmap BC_Pixmap::get_alpha (  ) 

Definition at line 412 of file bcpixmap.C.

References alpha_pixmap.

Referenced by BC_WindowBase::init_window_shape(), and BC_WindowBase::set_icon().

int BC_Pixmap::use_alpha (  ) 

Definition at line 422 of file bcpixmap.C.

References mode.

Referenced by BC_Pixmap(), BC_WindowBase::init_window_shape(), initialize(), write_drawable(), and ~BC_Pixmap().

int BC_Pixmap::use_opaque (  ) 

Definition at line 417 of file bcpixmap.C.

Referenced by BC_Pixmap(), initialize(), write_drawable(), and ~BC_Pixmap().

int BC_Pixmap::initialize ( BC_WindowBase parent_window,
int  w,
int  h,
int  mode 
) [private]


Friends And Related Function Documentation

friend class BC_WindowBase [friend]

Definition at line 35 of file bcpixmap.h.


Field Documentation

Definition at line 78 of file bcpixmap.h.

Referenced by draw_vframe(), reset(), and ~BC_Pixmap().

Pixmap BC_Pixmap::opaque_pixmap [private]

Pixmap BC_Pixmap::alpha_pixmap [private]

Definition at line 80 of file bcpixmap.h.

Referenced by BC_Pixmap(), get_alpha(), initialize(), reset(), and ~BC_Pixmap().

void* BC_Pixmap::opaque_xft_draw [private]

Definition at line 81 of file bcpixmap.h.

Referenced by BC_WindowBase::draw_xft_text(), initialize(), reset(), resize(), and ~BC_Pixmap().

void * BC_Pixmap::alpha_xft_draw [private]

Definition at line 81 of file bcpixmap.h.

Referenced by initialize(), reset(), and ~BC_Pixmap().

int BC_Pixmap::w [private]

Definition at line 86 of file bcpixmap.h.

Referenced by BC_Pixmap(), ResourcePixmap::draw_title(), get_w(), get_w_fixed(), and write_drawable().

int BC_Pixmap::h [private]

Definition at line 86 of file bcpixmap.h.

Referenced by BC_Pixmap(), get_h(), get_h_fixed(), and write_drawable().

int BC_Pixmap::mode [private]

Definition at line 87 of file bcpixmap.h.

Referenced by use_alpha().

GC BC_Pixmap::alpha_gc [private]

Definition at line 89 of file bcpixmap.h.

Referenced by BC_Pixmap(), initialize(), write_drawable(), and ~BC_Pixmap().

GC BC_Pixmap::copy_gc [private]

Definition at line 89 of file bcpixmap.h.

Referenced by BC_Pixmap(), and initialize().


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

Generated on Mon Apr 28 14:14:48 2008 for Cinelerra by  doxygen 1.5.5