26 #if ! defined (octave_graphics_toolkit_h)
27 #define octave_graphics_toolkit_h 1
29 #include "octave-config.h"
74 gripe_if_tkit_invalid (
"redraw_figure");
79 gripe_if_tkit_invalid (
"show_figure");
84 const std::string& =
"")
const
86 gripe_if_tkit_invalid (
"print_figure");
91 gripe_if_tkit_invalid (
"get_pixels");
97 gripe_if_tkit_invalid (
"get_canvas_size");
103 gripe_if_tkit_invalid (
"get_screen_resolution");
109 gripe_if_tkit_invalid (
"get_screen_size");
110 return Matrix (1, 2, 0.0);
115 gripe_if_tkit_invalid (
"get_text_extent");
124 gripe_if_tkit_invalid (
"base_graphics_toolkit::update");
134 gripe_if_tkit_invalid (
"base_graphics_toolkit::initialize");
145 gripe_if_tkit_invalid (
"base_graphics_toolkit::finalize");
153 gripe_if_tkit_invalid (
"base_graphics_toolkit::close");
162 void gripe_if_tkit_invalid (
const std::string& fname)
const
165 error (
"%s: invalid graphics toolkit", fname.c_str ());
181 error (
"invalid graphics_toolkit!");
190 operator bool ()
const
192 return m_rep->is_valid ();
197 return m_rep->get_name ();
202 m_rep->redraw_figure (go);
207 m_rep->show_figure (go);
211 const std::string& file,
212 const std::string& debug_file =
"")
const
214 m_rep->print_figure (go, term, file, debug_file);
219 return m_rep->get_pixels (go);
224 return m_rep->get_canvas_size (fh);
229 return m_rep->get_screen_resolution ();
234 return m_rep->get_screen_size ();
239 return m_rep->get_text_extent (go);
245 m_rep->update (go,
id);
250 m_rep->update (h,
id);
256 return m_rep->initialize (go);
261 return m_rep->initialize (h);
269 m_rep->finalize (go);
285 std::shared_ptr<base_graphics_toolkit> m_rep;
288 OCTAVE_END_NAMESPACE(
octave)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
void() error(const char *fmt,...)
intNDArray< octave_uint8 > uint8NDArray