#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 |
Definition at line 8 of file bcdisplayinfo.h.
| BC_DisplayInfo::BC_DisplayInfo | ( | char * | display_name = "", |
|
| int | show_error = 1 | |||
| ) |
Definition at line 20 of file bcdisplayinfo.C.
References init_window().

| BC_DisplayInfo::~BC_DisplayInfo | ( | ) |
| 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 | ( | ) |
Definition at line 238 of file bcdisplayinfo.C.
References display, and rootwin.
Referenced by BC_ProgressBox::BC_ProgressBox(), TimeStretch::get_parameters(), ReFrame::get_parameters(), NormalizeMain::get_parameters(), CDRipMain::get_parameters(), _720to480Main::get_parameters(), ResampleEffect::get_parameters(), main(), TipWindow::new_gui(), MainError::new_gui(), CDRipMain::open_drive(), SynthThread::run(), SharpenThread::run(), DelayAudioThread::run(), ColorThread::run(), and BlurZoomThread::run().
| int BC_DisplayInfo::get_abs_cursor_y | ( | ) |
Definition at line 256 of file bcdisplayinfo.C.
References display, and rootwin.
Referenced by BC_ProgressBox::BC_ProgressBox(), TimeStretch::get_parameters(), ReFrame::get_parameters(), NormalizeMain::get_parameters(), CDRipMain::get_parameters(), _720to480Main::get_parameters(), ResampleEffect::get_parameters(), main(), TipWindow::new_gui(), MainError::new_gui(), CDRipMain::open_drive(), SynthThread::run(), SharpenThread::run(), DelayAudioThread::run(), ColorThread::run(), and BlurZoomThread::run().
| 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().

| 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().

| 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().

| 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().

| 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().

| 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().
friend class BC_WindowBase [friend] |
Definition at line 14 of file bcdisplayinfo.h.
Display* BC_DisplayInfo::display [private] |
Definition at line 32 of file bcdisplayinfo.h.
Referenced by get_abs_cursor_x(), get_abs_cursor_y(), get_root_h(), get_root_w(), init_window(), test_window(), and ~BC_DisplayInfo().
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] |
int BC_DisplayInfo::screen [private] |
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().
int BC_DisplayInfo::default_depth [private] |
char* BC_DisplayInfo::display_name [private] |
Definition at line 43 of file bcdisplayinfo.h.
1.5.5