BC_DisplayInfo Class Reference

#include <bcdisplayinfo.h>


Public Member Functions

 BC_DisplayInfo (char *display_name="", int show_error=1)
 ~BC_DisplayInfo ()
int get_root_w ()
int get_root_h ()
int get_abs_cursor_x ()
int get_abs_cursor_y ()
int get_top_border ()
int get_left_border ()
int get_right_border ()
int get_bottom_border ()
void test_window (int &x_out, int &y_out, int &x_out2, int &y_out2, int x_in, int y_in)

Static Public Member Functions

static void parse_geometry (char *geom, int *x, int *y, int *width, int *height)

Private Member Functions

void init_borders ()
void init_window (char *display_name, int show_error)

Private Attributes

Display * display
Window rootwin
Visual * vis
int screen
int default_depth
char * display_name

Static Private Attributes

static int top_border = -1
static int left_border = -1
static int bottom_border = -1
static int right_border = -1
static int auto_reposition_x = -1
static int auto_reposition_y = -1

Friends

class BC_WindowBase


Detailed Description

Definition at line 8 of file bcdisplayinfo.h.


Constructor & Destructor Documentation

BC_DisplayInfo::BC_DisplayInfo ( char *  display_name = "",
int  show_error = 1 
)

Definition at line 20 of file bcdisplayinfo.C.

References init_window().

Here is the call graph for this function:

BC_DisplayInfo::~BC_DisplayInfo (  ) 

Definition at line 25 of file bcdisplayinfo.C.

References display.


Member Function Documentation

int BC_DisplayInfo::get_root_w (  ) 

Definition at line 226 of file bcdisplayinfo.C.

References display.

Referenced by MainSession::default_window_positions(), and MWindow::show_splash().

int BC_DisplayInfo::get_root_h (  ) 

Definition at line 232 of file bcdisplayinfo.C.

References display.

Referenced by MainSession::default_window_positions(), and MWindow::show_splash().

int BC_DisplayInfo::get_abs_cursor_x (  ) 

int BC_DisplayInfo::get_abs_cursor_y (  ) 

void BC_DisplayInfo::parse_geometry ( char *  geom,
int *  x,
int *  y,
int *  width,
int *  height 
) [static]

Definition at line 31 of file bcdisplayinfo.C.

int BC_DisplayInfo::get_top_border (  ) 

Definition at line 175 of file bcdisplayinfo.C.

References init_borders(), and top_border.

Referenced by MainSession::default_window_positions(), and BC_Resources::get_top_border().

Here is the call graph for this function:

int BC_DisplayInfo::get_left_border (  ) 

Definition at line 181 of file bcdisplayinfo.C.

References init_borders(), and left_border.

Referenced by MainSession::default_window_positions(), and BC_Resources::get_left_border().

Here is the call graph for this function:

int BC_DisplayInfo::get_right_border (  ) 

Definition at line 187 of file bcdisplayinfo.C.

References init_borders(), and right_border.

Referenced by MainSession::default_window_positions(), and BC_Resources::get_right_border().

Here is the call graph for this function:

int BC_DisplayInfo::get_bottom_border (  ) 

Definition at line 193 of file bcdisplayinfo.C.

References bottom_border, and init_borders().

Referenced by MainSession::default_window_positions(), and BC_Resources::get_bottom_border().

Here is the call graph for this function:

void BC_DisplayInfo::test_window ( int &  x_out,
int &  y_out,
int &  x_out2,
int &  y_out2,
int  x_in,
int  y_in 
)

Definition at line 36 of file bcdisplayinfo.C.

References default_depth, display, MAX, MIN, rootwin, TEST_SIZE, TEST_SIZE2, TEST_SIZE3, and vis.

Referenced by init_borders().

void BC_DisplayInfo::init_borders (  )  [private]

Definition at line 153 of file bcdisplayinfo.C.

References auto_reposition_x, auto_reposition_y, bottom_border, left_border, right_border, test_window(), and top_border.

Referenced by get_bottom_border(), get_left_border(), get_right_border(), and get_top_border().

Here is the call graph for this function:

void BC_DisplayInfo::init_window ( char *  display_name,
int  show_error 
) [private]

Definition at line 199 of file bcdisplayinfo.C.

References default_depth, display, NULL, rootwin, screen, and vis.

Referenced by BC_DisplayInfo().


Friends And Related Function Documentation

friend class BC_WindowBase [friend]

Definition at line 14 of file bcdisplayinfo.h.


Field Documentation

Display* BC_DisplayInfo::display [private]

Window BC_DisplayInfo::rootwin [private]

Definition at line 33 of file bcdisplayinfo.h.

Referenced by get_abs_cursor_x(), get_abs_cursor_y(), init_window(), and test_window().

Visual* BC_DisplayInfo::vis [private]

Definition at line 34 of file bcdisplayinfo.h.

Referenced by init_window(), and test_window().

int BC_DisplayInfo::screen [private]

Definition at line 35 of file bcdisplayinfo.h.

Referenced by init_window().

int BC_DisplayInfo::top_border = -1 [static, private]

Definition at line 36 of file bcdisplayinfo.h.

Referenced by get_top_border(), init_borders(), and BC_WindowBase::reposition_window().

int BC_DisplayInfo::left_border = -1 [static, private]

Definition at line 37 of file bcdisplayinfo.h.

Referenced by get_left_border(), init_borders(), and BC_WindowBase::reposition_window().

int BC_DisplayInfo::bottom_border = -1 [static, private]

Definition at line 38 of file bcdisplayinfo.h.

Referenced by get_bottom_border(), and init_borders().

int BC_DisplayInfo::right_border = -1 [static, private]

Definition at line 39 of file bcdisplayinfo.h.

Referenced by get_right_border(), and init_borders().

int BC_DisplayInfo::auto_reposition_x = -1 [static, private]

Definition at line 40 of file bcdisplayinfo.h.

Referenced by init_borders(), and BC_WindowBase::reposition_window().

int BC_DisplayInfo::auto_reposition_y = -1 [static, private]

Definition at line 41 of file bcdisplayinfo.h.

Referenced by init_borders(), and BC_WindowBase::reposition_window().

Definition at line 42 of file bcdisplayinfo.h.

Referenced by init_window(), and test_window().

Definition at line 43 of file bcdisplayinfo.h.


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

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