nr-arena-group.cpp revision 2f95b6ec60b75dcab7588ac0cd73dea9d62cf74e
#define __NR_ARENA_GROUP_C__
/*
* RGBA display list system for inkscape
*
* Author:
* Lauris Kaplinski <lauris@kaplinski.com>
*
* Copyright (C) 2001-2002 Lauris Kaplinski
* Copyright (C) 2001 Ximian, Inc.
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "display/nr-arena-group.h"
#include "display/nr-filter.h"
#include "display/nr-filter-gaussian.h"
#include "display/nr-filter-types.h"
#include "style.h"
#include "sp-filter.h"
#include "sp-gaussian-blur.h"
static void nr_arena_group_set_child_position (NRArenaItem *item, NRArenaItem *child, NRArenaItem *ref);
static unsigned int nr_arena_group_update (NRArenaItem *item, NRRectL *area, NRGC *gc, unsigned int state, unsigned int reset);
static unsigned int nr_arena_group_render (NRArenaItem *item, NRRectL *area, NRPixBlock *pb, unsigned int flags);
static NRArenaItem *nr_arena_group_pick (NRArenaItem *item, NR::Point p, double delta, unsigned int sticky);
static NRArenaItemClass *parent_class;
nr_arena_group_get_type (void)
{
if (!type) {
"NRArenaGroup",
sizeof (NRArenaGroupClass),
sizeof (NRArenaGroup),
(void (*) (NRObjectClass *)) nr_arena_group_class_init,
(void (*) (NRObject *)) nr_arena_group_init);
}
return type;
}
static void
{
}
static void
{
}
static NRArenaItem *
{
}
static NRArenaItem *
{
}
static void
{
if (!ref) {
} else {
}
}
static void
{
} else {
}
}
static void
{
} else {
}
if (!ref) {
} else {
}
}
static unsigned int
nr_arena_group_update (NRArenaItem *item, NRRectL *area, NRGC *gc, unsigned int state, unsigned int reset)
{
unsigned int newstate;
unsigned int beststate = NR_ARENA_ITEM_STATE_ALL;
}
if (beststate & NR_ARENA_ITEM_STATE_BBOX) {
}
}
return beststate;
}
{
//if there is a filter set for this group
//go through all SP filter primitives
{
//if primitive is gaussianblur
// if(SP_IS_GAUSSIANBLUR(primitive))
{
NR::FilterGaussian * gaussian = (NR::FilterGaussian *) group->filter->add_primitive(NR::NR_FILTER_GAUSSIANBLUR);
if( num>=0.0 )
{
if( optnum>=0.0 )
else
}
}
}
}
else
{
//no filter set for this group
}
group->background_new = true;
}
}
static unsigned int
{
/* Just compose children into parent buffer */
if (ret & NR_ARENA_ITEM_STATE_INVALID) break;
}
return ret;
}
static unsigned int
{
/* Just compose children into parent buffer */
if (ret & NR_ARENA_ITEM_STATE_INVALID) break;
}
return ret;
}
static NRArenaItem *
{
if (picked)
}
return NULL;
}
void
{
}
{
}
{
if (!t) t = &NR_MATRIX_IDENTITY;
group->child_transform = *t;
}
}