~valavanisalex/ubuntu/precise/inkscape/fix-943984

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/sp-symbol.h

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-07-02 17:09:45 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702170945-nn6d6zswovbwju1t
Tags: 0.47~pre1-0ubuntu1
* New upstream release.
  - Don't constrain maximization on small resolution devices (pre0)
    (LP: #348842)
  - Fixes segfault on startup (pre0)
    (LP: #391149)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __SP_SYMBOL_H__
 
2
#define __SP_SYMBOL_H__
 
3
 
 
4
/*
 
5
 * SVG <symbol> implementation
 
6
 *
 
7
 * Authors:
 
8
 *   Lauris Kaplinski <lauris@kaplinski.com>
 
9
 *
 
10
 * Copyright (C) 1999-2003 Lauris Kaplinski
 
11
 *
 
12
 * Released under GNU GPL, read the file 'COPYING' for more information
 
13
 */
 
14
 
 
15
/*
 
16
 * This is quite similar in logic to <svg>
 
17
 * Maybe we should merge them somehow (Lauris)
 
18
 */
 
19
 
 
20
#define SP_TYPE_SYMBOL (sp_symbol_get_type ())
 
21
#define SP_SYMBOL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), SP_TYPE_SYMBOL, SPSymbol))
 
22
#define SP_IS_SYMBOL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), SP_TYPE_SYMBOL))
 
23
 
 
24
class SPSymbol;
 
25
class SPSymbolClass;
 
26
 
 
27
#include <libnr/nr-matrix.h>
 
28
#include <2geom/matrix.h>
 
29
#include <libnr/nr-rect.h>
 
30
#include "svg/svg-length.h"
 
31
#include "enums.h"
 
32
#include "sp-item-group.h"
 
33
 
 
34
struct SPSymbol : public SPGroup {
 
35
        /* viewBox; */
 
36
        unsigned int viewBox_set : 1;
 
37
        NRRect viewBox;
 
38
 
 
39
        /* preserveAspectRatio */
 
40
        unsigned int aspect_set : 1;
 
41
        unsigned int aspect_align : 4;
 
42
        unsigned int aspect_clip : 1;
 
43
 
 
44
        /* Child to parent additional transform */
 
45
        Geom::Matrix c2p;
 
46
};
 
47
 
 
48
struct SPSymbolClass {
 
49
        SPGroupClass parent_class;
 
50
};
 
51
 
 
52
GType sp_symbol_get_type (void);
 
53
 
 
54
#endif