home *** CD-ROM | disk | FTP | other *** search
/ Geek 6 / Geek-006.iso / linux / video / xmovie-1.5.3.tar.gz / xmovie-1.5.3.tar / xmovie-1.5.3 / guicast / bcpixmap.h < prev    next >
C/C++ Source or Header  |  2000-11-29  |  1KB  |  67 lines

  1. #ifndef BCPIXMAP_H
  2. #define BCPIXMAP_H
  3.  
  4. #include <X11/Xlib.h>
  5. #include "bcbitmap.inc"
  6. #include "bcpixmap.inc"
  7. #include "bcwindowbase.inc"
  8. #include "vframe.inc"
  9.  
  10. class BC_Pixmap
  11. {
  12. public:
  13.     BC_Pixmap(BC_WindowBase *parent_window, 
  14.         VFrame *frame, 
  15.         int mode = PIXMAP_OPAQUE,
  16.         int icon_offset = 0);
  17.     BC_Pixmap(BC_WindowBase *parent_window, int w, int h);
  18.     ~BC_Pixmap();
  19.  
  20.     friend BC_WindowBase;
  21.  
  22.     void resize(int w, int h);
  23.     void copy_area(int x, int y, int w, int h, int x2, int y2);
  24.     int write_drawable(Drawable &pixmap,
  25.             int dest_x, 
  26.             int dest_y,
  27.             int dest_w = -1,
  28.             int dest_h = -1, 
  29.             int src_x = -1,
  30.             int src_y = -1);
  31.     void draw_vframe(VFrame *frame, 
  32.             int dest_x = 0, 
  33.             int dest_y = 0, 
  34.             int dest_w = -1, 
  35.             int dest_h = -1,
  36.             int src_x = 0,
  37.             int src_y = 0);
  38.     void draw_pixmap(BC_Pixmap *pixmap, 
  39.         int dest_x = 0, 
  40.         int dest_y = 0, 
  41.         int dest_w = -1, 
  42.         int dest_h = -1,
  43.         int src_x = 0,
  44.         int src_y = 0);
  45.     int get_w();
  46.     int get_h();
  47.     int get_w_fixed();
  48.     int get_h_fixed();
  49.     Pixmap get_pixmap();
  50.     Pixmap get_alpha();
  51.     int use_alpha();
  52.     int use_opaque();
  53.  
  54. private:
  55.     int initialize(BC_WindowBase *parent_window, int w, int h, int mode);
  56.  
  57.     BC_WindowBase *parent_window;
  58.     BC_WindowBase *top_level;
  59.     Pixmap opaque_pixmap, alpha_pixmap, mask_pixmap;
  60.     int w, h;
  61.     int mode;
  62.     GC alpha_gc, copy_gc;
  63. };
  64.  
  65.  
  66. #endif
  67.