diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2007-11-20 09:20:42 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2007-11-20 09:20:42 +0000 |
| commit | c724e396729e2f2482b84bab8a8eee2b01cff987 (patch) | |
| tree | fb2dfedee0a8d448df4c617d9d9d1affc7275522 /src/display/sp-canvas.h | |
| parent | add one fractional digit to zooms less than 10% (diff) | |
| download | inkscape-c724e396729e2f2482b84bab8a8eee2b01cff987.tar.gz inkscape-c724e396729e2f2482b84bab8a8eee2b01cff987.zip | |
Display CMS adjustment per-desktop view
(bzr r4114)
Diffstat (limited to 'src/display/sp-canvas.h')
| -rw-r--r-- | src/display/sp-canvas.h | 47 |
1 files changed, 27 insertions, 20 deletions
diff --git a/src/display/sp-canvas.h b/src/display/sp-canvas.h index 3b4c7743f..4b6d7b3b8 100644 --- a/src/display/sp-canvas.h +++ b/src/display/sp-canvas.h @@ -33,6 +33,8 @@ #include <gtk/gtkobject.h> #include <gtk/gtkwidget.h> +#include <glibmm/ustring.h> + #include <libnr/nr-matrix.h> #include <libnr/nr-rect.h> #include <libnr/nr-rect-l.h> @@ -60,13 +62,13 @@ struct SPCanvasBuf{ }; /** - * An SPCanvasItem refers to a SPCanvas and to its parent item; it has + * An SPCanvasItem refers to a SPCanvas and to its parent item; it has * four coordinates, a bounding rectangle, and a transformation matrix. */ struct SPCanvasItem : public GtkObject { SPCanvas *canvas; SPCanvasItem *parent; - + double x1, y1, x2, y2; NR::Rect bounds; NR::Matrix xform; @@ -77,10 +79,10 @@ struct SPCanvasItem : public GtkObject { */ struct SPCanvasItemClass : public GtkObjectClass { void (* update) (SPCanvasItem *item, NR::Matrix const &affine, unsigned int flags); - + void (* render) (SPCanvasItem *item, SPCanvasBuf *buf); double (* point) (SPCanvasItem *item, NR::Point p, SPCanvasItem **actual_item); - + int (* event) (SPCanvasItem *item, GdkEvent *event); }; @@ -114,45 +116,45 @@ gint sp_canvas_item_order(SPCanvasItem * item); */ struct SPCanvas { GtkWidget widget; - + guint idle_id; - + SPCanvasItem *root; - + double dx0, dy0; int x0, y0; - + /* Area that needs redrawing, stored as a microtile array */ int tLeft,tTop,tRight,tBottom; int tileH,tileV; uint8_t *tiles; - + /* Last known modifier state, for deferred repick when a button is down */ int state; - + /* The item containing the mouse pointer, or NULL if none */ SPCanvasItem *current_item; - + /* Item that is about to become current (used to track deletions and such) */ SPCanvasItem *new_current_item; - + /* Item that holds a pointer grab, or NULL if none */ SPCanvasItem *grabbed_item; - + /* Event mask specified when grabbing an item */ guint grabbed_event_mask; - + /* If non-NULL, the currently focused item */ SPCanvasItem *focused_item; - + /* Event on which selection of current item is based */ GdkEvent pick_event; - + int close_enough; - + /* GC for temporary draw pixmap */ GdkGC *pixmap_gc; - + unsigned int need_update : 1; unsigned int need_redraw : 1; unsigned int need_repick : 1; @@ -172,11 +174,16 @@ struct SPCanvas { // connector tool). If so, they may temporarily set this flag to // 'true'. bool gen_all_enter_events; - + int rendermode; +#if ENABLE_LCMS + bool enable_cms_display_adj; + Glib::ustring* cms_key; +#endif // ENABLE_LCMS + bool is_scrolling; - + NR::Rect getViewbox() const; }; |
