#include "display.h"
Static Public Member Functions | |
static int | depth (void) |
static int | height (void) |
static void | no_window_system (void) |
static int | width (void) |
static double | x_dpi (void) |
static double | y_dpi (void) |
Protected Member Functions | |
display_info (bool query=true) | |
Private Member Functions | |
int | do_depth (void) const |
int | do_height (void) const |
int | do_width (void) const |
double | do_x_dpi (void) const |
double | do_y_dpi (void) const |
void | init (bool query=true) |
Static Private Member Functions | |
static void | cleanup_instance (void) |
static bool | instance_ok (bool query=true) |
Private Attributes | |
int | dp |
int | ht |
double | rx |
double | ry |
int | wd |
Static Private Attributes | |
static display_info * | instance = 0 |
Definition at line 28 of file display.h.
display_info::display_info | ( | bool | query = true |
) | [inline, protected] |
static void display_info::cleanup_instance | ( | void | ) | [inline, static, private] |
static int display_info::depth | ( | void | ) | [inline, static] |
Definition at line 50 of file display.h.
References do_depth(), instance, and instance_ok().
Referenced by default_screendepth().
int display_info::do_depth | ( | void | ) | const [inline, private] |
int display_info::do_height | ( | void | ) | const [inline, private] |
int display_info::do_width | ( | void | ) | const [inline, private] |
double display_info::do_x_dpi | ( | void | ) | const [inline, private] |
double display_info::do_y_dpi | ( | void | ) | const [inline, private] |
static int display_info::height | ( | void | ) | [inline, static] |
Definition at line 40 of file display.h.
References do_height(), instance, and instance_ok().
Referenced by default_screensize().
void display_info::init | ( | bool | query = true |
) | [private] |
Definition at line 45 of file display.cc.
References dp, ht, rx, ry, warning(), and wd.
Referenced by display_info().
Definition at line 140 of file display.cc.
References singleton_cleanup_list::add(), cleanup_instance(), display_info(), error(), and instance.
Referenced by depth(), height(), no_window_system(), width(), x_dpi(), and y_dpi().
static void display_info::no_window_system | ( | void | ) | [inline, static] |
static int display_info::width | ( | void | ) | [inline, static] |
Definition at line 45 of file display.h.
References do_width(), instance, and instance_ok().
Referenced by default_screensize().
static double display_info::x_dpi | ( | void | ) | [inline, static] |
Definition at line 55 of file display.h.
References do_x_dpi(), instance, and instance_ok().
Referenced by default_screenpixelsperinch().
static double display_info::y_dpi | ( | void | ) | [inline, static] |
Definition at line 60 of file display.h.
References do_y_dpi(), instance, and instance_ok().
Referenced by default_screenpixelsperinch().
int display_info::dp [private] |
Definition at line 81 of file display.h.
Referenced by do_depth(), and init().
int display_info::ht [private] |
Definition at line 79 of file display.h.
Referenced by do_height(), and init().
display_info * display_info::instance = 0 [static, private] |
Definition at line 74 of file display.h.
Referenced by cleanup_instance(), depth(), height(), instance_ok(), width(), x_dpi(), and y_dpi().
double display_info::rx [private] |
Definition at line 84 of file display.h.
Referenced by do_x_dpi(), and init().
double display_info::ry [private] |
Definition at line 85 of file display.h.
Referenced by do_y_dpi(), and init().
int display_info::wd [private] |
Definition at line 80 of file display.h.
Referenced by do_width(), and init().