~valavanisalex/ubuntu/oneiric/inkscape/inkscape_0.48.1-2ubuntu5

« back to all changes in this revision

Viewing changes to src/sp-clippath.h

  • Committer: Bazaar Package Importer
  • Author(s): Wolfram Quester
  • Date: 2004-06-02 10:35:45 UTC
  • Revision ID: james.westby@ubuntu.com-20040602103545-q3x0q6xd2k1yj0fr
Tags: upstream-0.38.1
ImportĀ upstreamĀ versionĀ 0.38.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __SP_CLIPPATH_H__
 
2
#define __SP_CLIPPATH_H__
 
3
 
 
4
/*
 
5
 * SVG <clipPath> implementation
 
6
 *
 
7
 * Authors:
 
8
 *   Lauris Kaplinski <lauris@kaplinski.com>
 
9
 *
 
10
 * Copyright (C) 2001-2002 authors
 
11
 * Copyright (C) 2001 Ximian, Inc.
 
12
 *
 
13
 * Released under GNU GPL, read the file 'COPYING' for more information
 
14
 */
 
15
 
 
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))
 
21
 
 
22
typedef struct _SPClipPathView SPClipPathView;
 
23
 
 
24
#include "display/nr-arena-forward.h"
 
25
#include "sp-object-group.h"
 
26
#include "uri-references.h"
 
27
 
 
28
struct _SPClipPath {
 
29
        class Reference;
 
30
 
 
31
        SPObjectGroup group;
 
32
 
 
33
        unsigned int clipPathUnits_set : 1;
 
34
        unsigned int clipPathUnits : 1;
 
35
 
 
36
        SPClipPathView *display;
 
37
};
 
38
 
 
39
struct _SPClipPathClass {
 
40
        SPObjectGroupClass parent_class;
 
41
};
 
42
 
 
43
GType sp_clippath_get_type (void);
 
44
 
 
45
class SPClipPathReference : public Inkscape::URIReference {
 
46
public:
 
47
        SPClipPathReference(SPObject *obj) : URIReference(obj) {}
 
48
        SPClipPath *getObject() const {
 
49
                return (SPClipPath *)URIReference::getObject();
 
50
        }
 
51
protected:
 
52
        bool _acceptObject(SPObject *obj) const {
 
53
                return SP_IS_CLIPPATH(obj);
 
54
        }
 
55
};
 
56
 
 
57
NRArenaItem *sp_clippath_show (SPClipPath *cp, NRArena *arena, unsigned int key);
 
58
void sp_clippath_hide (SPClipPath *cp, unsigned int key);
 
59
 
 
60
void sp_clippath_set_bbox (SPClipPath *cp, unsigned int key, NRRect *bbox);
 
61
 
 
62
#endif