diff src/graphics.h.in @ 14357:e7c74f56cd03

fltk toolkit requires figure units to be "pixels". Bug # 35430. * graphics.cc (root_figure::properties::get_boundingbox): New function. * graphics.h.in (root_figure::properties::get_boundingbox): New function. * __init__fltk__.cc (class plot_window::draw,redraw,handle): Use get/set boundingbox (units are fixed to pixels) rather than get/set position. Add plot_window::get_figure_postion, which returns figure position in pixels.
author Ben Abbott <bpabbott@mac.com>
date Sat, 11 Feb 2012 21:09:03 -0500
parents 5a2b012b10c7
children c9ec21bef97a
line wrap: on
line diff
--- a/src/graphics.h.in	Fri Feb 10 18:57:55 2012 -0500
+++ b/src/graphics.h.in	Sat Feb 11 21:09:03 2012 -0500
@@ -3154,6 +3154,9 @@
   public:
     void remove_child (const graphics_handle& h);
 
+    Matrix get_boundingbox (bool internal = false,
+                            const Matrix& parent_pix_size = Matrix ()) const;
+
     // See the genprops.awk script for an explanation of the
     // properties declarations.