26 #if ! defined (octave_graphics_toolkit_h)
27 #define octave_graphics_toolkit_h 1
29 #include "octave-config.h"
43 class graphics_object;
80 virtual void print_figure (
const graphics_object&,
const std::string&,
82 const std::string& =
"")
const
108 return Matrix (1, 2, 0.0);
120 virtual void update (
const graphics_object&,
int)
163 error (
"%s: invalid graphics toolkit", fname.c_str ());
179 error (
"invalid graphics_toolkit!");
188 operator bool (
void)
const
190 return m_rep->is_valid ();
195 return m_rep->get_name ();
200 m_rep->redraw_figure (go);
205 m_rep->show_figure (go);
209 const std::string& file,
210 const std::string& debug_file =
"")
const
212 m_rep->print_figure (go, term, file, debug_file);
217 return m_rep->get_pixels (go);
222 return m_rep->get_canvas_size (fh);
227 return m_rep->get_screen_resolution ();
232 return m_rep->get_screen_size ();
237 return m_rep->get_text_extent (go);
241 void update (
const graphics_object& go,
int id)
243 m_rep->update (go,
id);
248 m_rep->update (h,
id);
254 return m_rep->initialize (go);
259 return m_rep->initialize (h);
267 m_rep->finalize (go);
283 std::shared_ptr<base_graphics_toolkit>
m_rep;
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
void error(const char *fmt,...)
intNDArray< octave_uint8 > uint8NDArray