summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c902781)
raw | patch | inline | side by side (parent: c902781)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 19 Mar 2007 03:04:08 +0000 (03:04 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 19 Mar 2007 03:04:08 +0000 (03:04 +0000) |
src/display/canvas-arena.cpp | patch | blob | history | |
src/display/nr-arena.cpp | patch | blob | history | |
src/display/nr-arena.h | patch | blob | history |
index de43ec80dcf3f7d3702b61917ee0093a2adffd6d..bb60cdc938cd32ba481bb923a73d90562add9415 100644 (file)
arena->sticky = FALSE;
arena->arena = NRArena::create();
+ arena->arena->canvasarena = arena;
arena->root = NRArenaGroup::create(arena->arena);
nr_arena_group_set_transparent (NR_ARENA_GROUP (arena->root), TRUE);
index e6d0105fbd76f1fc7f569e49278ab508f9dd98b4..7c0664d16a6b394164e2ec3cc1016ab977aa563b 100644 (file)
--- a/src/display/nr-arena.cpp
+++ b/src/display/nr-arena.cpp
arena->delta = 0; // to be set by desktop from prefs
arena->rendermode = RENDERMODE_NORMAL; // default is normal render
arena->outlinecolor = 0xff; // black; to be set by desktop from bg color
+ arena->canvasarena = NULL;
}
static void
diff --git a/src/display/nr-arena.h b/src/display/nr-arena.h
index 245ce14db6513aae7c155064f744fcbdf8752a99..89cb58f39bb37eee10616b4cf2d92028408954a3 100644 (file)
--- a/src/display/nr-arena.h
+++ b/src/display/nr-arena.h
RENDERMODE_OUTLINE
};
+struct SPCanvasArena;
+
struct NRArena : public NRActiveObject {
static NRArena *create() {
return reinterpret_cast<NRArena *>(nr_object_new(NR_TYPE_ARENA));
double delta;
int rendermode;
guint32 outlinecolor;
+ SPCanvasArena *canvasarena; // may be NULL is this arena is not the screen but used for export etc.
};
struct NRArenaClass : public NRActiveObjectClass {