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 / bcdisplayinfo.h < prev    next >
C/C++ Source or Header  |  2000-11-29  |  500b  |  30 lines

  1. #ifndef BCDISPLAYINFO_H
  2. #define BCDISPLAYINFO_H
  3.  
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6. #include <X11/Xlib.h>
  7.  
  8. class BC_DisplayInfo
  9. {
  10. public:
  11.     BC_DisplayInfo(char *display_name = "");
  12.     ~BC_DisplayInfo();
  13.     
  14.     void init_window(char *display_name);
  15.     int get_root_w();
  16.     int get_root_h();
  17.     int get_abs_cursor_x();
  18.     int get_abs_cursor_y();
  19.     static void parse_geometry(char *geom, int *x, int *y, int *width, int *height);
  20.  
  21.  
  22. private:
  23.     Display* display;
  24.     Window rootwin;
  25.     Visual *vis;
  26.     int screen;
  27. };
  28.  
  29. #endif
  30.