nr-arena-group.cpp revision 4d5fcd13b3b8222d36788c32450bac85bcb1ce77
#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/canvas-bpath.h"
#include "display/nr-arena-group.h"
#include "display/nr-filter.h"
#include "display/nr-filter-types.h"
#include "style.h"
#include "sp-filter.h"
#include "sp-filter-reference.h"
#include "display/nr-filter-blend.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 (cairo_t *ct, NRArenaItem *item, NRRectL *area, NRPixBlock *pb, unsigned int flags);
static NRArenaItem *nr_arena_group_pick (NRArenaItem *item, Geom::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 group has a filter
}
} else {
//no filter set for this group
}
group->background_new = true;
}
}
static unsigned int
nr_arena_group_render (cairo_t *ct, NRArenaItem *item, NRRectL *area, NRPixBlock *pb, unsigned int flags)
{
/* Just compose children into parent buffer */
if (ret & NR_ARENA_ITEM_STATE_INVALID) break;
}
return ret;
}
static unsigned int
{
cairo_save(ct);
// handle clip-rule
} else {
}
}
if (ret & NR_ARENA_ITEM_STATE_INVALID) break;
}
return ret;
}
static NRArenaItem *
{
if (picked)
}
return NULL;
}
void
{
}
{
}
{
if (!t) t = &GEOM_MATRIX_IDENTITY;
group->child_transform = *t;
}
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :