1
#ifndef __SP_CLIPPATH_H__
2
#define __SP_CLIPPATH_H__
5
* SVG <clipPath> implementation
8
* Lauris Kaplinski <lauris@kaplinski.com>
10
* Copyright (C) 2001-2002 authors
11
* Copyright (C) 2001 Ximian, Inc.
13
* Released under GNU GPL, read the file 'COPYING' for more information
16
#define SP_TYPE_CLIPPATH (sp_clippath_get_type ())
17
#define SP_CLIPPATH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_CLIPPATH, SPClipPath))
18
#define SP_CLIPPATH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SP_TYPE_CLIPPATH, SPClipPathClass))
19
#define SP_IS_CLIPPATH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_CLIPPATH))
20
#define SP_IS_CLIPPATH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_CLIPPATH))
22
typedef struct _SPClipPathView SPClipPathView;
24
#include "display/nr-arena-forward.h"
25
#include "sp-object-group.h"
26
#include "uri-references.h"
33
unsigned int clipPathUnits_set : 1;
34
unsigned int clipPathUnits : 1;
36
SPClipPathView *display;
39
struct _SPClipPathClass {
40
SPObjectGroupClass parent_class;
43
GType sp_clippath_get_type (void);
45
class SPClipPathReference : public Inkscape::URIReference {
47
SPClipPathReference(SPObject *obj) : URIReference(obj) {}
48
SPClipPath *getObject() const {
49
return (SPClipPath *)URIReference::getObject();
52
bool _acceptObject(SPObject *obj) const {
53
return SP_IS_CLIPPATH(obj);
57
NRArenaItem *sp_clippath_show (SPClipPath *cp, NRArena *arena, unsigned int key);
58
void sp_clippath_hide (SPClipPath *cp, unsigned int key);
60
void sp_clippath_set_bbox (SPClipPath *cp, unsigned int key, NRRect *bbox);