Code

* Remove unused variables
[inkscape.git] / src / display / sp-canvas.h
index a9bf2e4c35fe7bb0aceca27622aea3905cbff099..34ed87ac9198722ba9fc53795e4fd253b9c7d36a 100644 (file)
@@ -52,6 +52,7 @@ struct SPCanvasBuf{
     guchar *buf;
     int buf_rowstride;
     NRRectL rect;
+    NRRectL visible_rect;
     /// Background color, given as 0xrrggbb
     guint32 bg_color;
     // If empty, ignore contents of buffer and use a solid area of bg_color
@@ -161,6 +162,14 @@ struct SPCanvas {
     /* For use by internal pick_current_item() function */
     unsigned int in_repick : 1;
 
+    // In most tools Inkscape only generates enter and leave events
+    // on the current item, but no other enter events if a mouse button
+    // is depressed -- see function pick_current_item().  Some tools
+    // may wish the canvas to generate to all enter events, (e.g., the
+    // connector tool).  If so, they may temporarily set this flag to
+    // 'true'.
+    bool gen_all_enter_events;
+    
     int rendermode;
     
     NR::Rect getViewbox() const;