r877: Fix files that were missing from a make dist tarball.
[cinelerra_cv.git] / guicast / bcdisplayinfo.h
blobf47b3280f5a28c5abe22957fb587875513088753
1 #ifndef BCDISPLAYINFO_H
2 #define BCDISPLAYINFO_H
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <X11/Xlib.h>
8 class BC_DisplayInfo
10 public:
11 BC_DisplayInfo(char *display_name = "", int show_error = 1);
12 ~BC_DisplayInfo();
14 friend class BC_WindowBase;
16 int get_root_w();
17 int get_root_h();
18 int get_abs_cursor_x();
19 int get_abs_cursor_y();
20 static void parse_geometry(char *geom, int *x, int *y, int *width, int *height);
21 // Get window border size created by window manager
22 int get_top_border();
23 int get_left_border();
24 int get_right_border();
25 int get_bottom_border();
26 void test_window(int &x_out, int &y_out, int &x_out2, int &y_out2, int x_in, int y_in);
29 private:
30 void init_borders();
31 void init_window(char *display_name, int show_error);
32 Display* display;
33 Window rootwin;
34 Visual *vis;
35 int screen;
36 static int top_border;
37 static int left_border;
38 static int bottom_border;
39 static int right_border;
40 static int auto_reposition_x;
41 static int auto_reposition_y;
42 int default_depth;
43 char *display_name;
46 #endif