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

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/rect-context.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_RECT_CONTEXT_H__
 
2
#define __SP_RECT_CONTEXT_H__
 
3
 
 
4
/*
 
5
 * Rectangle drawing context
 
6
 *
 
7
 * Author:
 
8
 *   Lauris Kaplinski <lauris@kaplinski.com>
 
9
 *
 
10
 * Copyright (C) 2000 Lauris Kaplinski
 
11
 * Copyright (C) 2000-2001 Ximian, Inc.
 
12
 * Copyright (C) 2002 Lauris Kaplinski
 
13
 *
 
14
 * Released under GNU GPL
 
15
 */
 
16
 
 
17
#include <sigc++/sigc++.h>
 
18
#include "event-context.h"
 
19
#include "libnr/nr-point.h"
 
20
 
 
21
#define SP_TYPE_RECT_CONTEXT            (sp_rect_context_get_type ())
 
22
#define SP_RECT_CONTEXT(obj)            (GTK_CHECK_CAST ((obj), SP_TYPE_RECT_CONTEXT, SPRectContext))
 
23
#define SP_RECT_CONTEXT_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), SP_TYPE_RECT_CONTEXT, SPRectContextClass))
 
24
#define SP_IS_RECT_CONTEXT(obj)         (GTK_CHECK_TYPE ((obj), SP_TYPE_RECT_CONTEXT))
 
25
#define SP_IS_RECT_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), SP_TYPE_RECT_CONTEXT))
 
26
 
 
27
class SPRectContext;
 
28
class SPRectContextClass;
 
29
 
 
30
struct SPRectContext : public SPEventContext {
 
31
        SPItem *item;
 
32
        Geom::Point center;
 
33
 
 
34
        gdouble rx;     /* roundness radius (x direction) */
 
35
        gdouble ry;     /* roundness radius (y direction) */
 
36
 
 
37
        sigc::connection sel_changed_connection;
 
38
 
 
39
        Inkscape::MessageContext *_message_context;
 
40
};
 
41
 
 
42
struct SPRectContextClass {
 
43
        SPEventContextClass parent_class;
 
44
};
 
45
 
 
46
/* Standard Gtk function */
 
47
 
 
48
GtkType sp_rect_context_get_type (void);
 
49
 
 
50
#endif