summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0c75b40)
raw | patch | inline | side by side (parent: 0c75b40)
author | johncoswell <johncoswell@users.sourceforge.net> | |
Thu, 1 Mar 2007 23:49:39 +0000 (23:49 +0000) | ||
committer | johncoswell <johncoswell@users.sourceforge.net> | |
Thu, 1 Mar 2007 23:49:39 +0000 (23:49 +0000) |
src/flood-context.cpp | patch | blob | history |
diff --git a/src/flood-context.cpp b/src/flood-context.cpp
index 02e398c453c45703b2e02f01e11e3c9fd9da8cb2..fc6628f461d7b61bcba55b900c71c512eca4c84d 100644 (file)
--- a/src/flood-context.cpp
+++ b/src/flood-context.cpp
#include "display/nr-arena.h"
#include "display/nr-arena-image.h"
#include "display/canvas-arena.h"
-#include "helper/png-write.h"
#include "libnr/nr-pixops.h"
#include "libnr/nr-matrix-rotate-ops.h"
#include "libnr/nr-matrix-translate-ops.h"
static SPEventContextClass *parent_class;
-struct SPEBP {
- int width, height, sheight;
- guchar r, g, b, a;
- NRArenaItem *root; // the root arena item to show; it is assumed that all unneeded items are hidden
- guchar *px;
- unsigned (*status)(float, void *);
- void *data;
-};
-
GtkType sp_flood_context_get_type()
{
static GType type = 0;
rc->_message_context = new Inkscape::MessageContext((ec->desktop)->messageStack());
}
-/**
-Hide all items which are not listed in list, recursively, skipping groups and defs
-*/
-static void
-hide_other_items_recursively(SPObject *o, GSList *list, unsigned dkey)
-{
- if (SP_IS_ITEM(o)
- && !SP_IS_DEFS(o)
- && !SP_IS_ROOT(o)
- && !SP_IS_GROUP(o)
- && !g_slist_find(list, o))
- {
- sp_item_invoke_hide(SP_ITEM(o), dkey);
- }
-
- // recurse
- if (!g_slist_find(list, o)) {
- for (SPObject *child = sp_object_first_child(o) ; child != NULL; child = SP_OBJECT_NEXT(child) ) {
- hide_other_items_recursively(child, list, dkey);
- }
- }
-}
-
inline unsigned char * get_pixel(guchar *px, int x, int y, int width) {
return px + (x + y * width) * 4;
}