23 #if ! defined (octave_display_h) 24 #define octave_display_h 1 26 #include "octave-config.h" 41 : m_ht (1), m_wd (1), m_dp (0),
42 m_rx (72), m_ry (72), m_dpy_avail (
false), m_err_msg ()
48 : m_ht (1), m_wd (1), m_dp (0),
49 m_rx (72), m_ry (72), m_dpy_avail (
false), m_err_msg ()
55 : m_ht (1), m_wd (1), m_dp (0),
56 m_rx (72), m_ry (72), m_dpy_avail (
false), m_err_msg ()
62 : m_ht (1), m_wd (1), m_dp (0),
63 m_rx (72), m_ry (72), m_dpy_avail (
false), m_err_msg ()
65 init (dpy_name, query);
72 return instance_ok () ? instance->do_height () : 0;
77 return instance_ok () ? instance->do_width () : 0;
82 return instance_ok () ? instance->do_depth () : 0;
87 return instance_ok () ? instance->do_x_dpi () : 0;
92 return instance_ok () ? instance->do_y_dpi () : 0;
98 return instance_ok () ? instance->do_display_available (msg) :
false;
103 return instance_ok () ? instance->do_display_available (msg) :
false;
146 void init (
const std::string& dpy_name =
"",
bool query =
true);
148 static bool instance_ok (
bool query =
true);
display_info(const std::string &dpy_name)
bool do_display_available(std::string &msg) const
static display_info * instance
static bool display_available(void)
int do_height(void) const
static double y_dpi(void)
double do_x_dpi(void) const
static void no_window_system(void)
static double x_dpi(void)
static void cleanup_instance(void)
double do_y_dpi(void) const
display_info(const std::string &dpy_name, bool query)
static bool display_available(std::string &msg)
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string