libgnomecanvasmm
rect.h
Go to the documentation of this file.
1// -*- c++ -*-
2// Generated by gtkmmproc -- DO NOT MODIFY!
3#ifndef _LIBGNOMECANVASMM_RECT_H
4#define _LIBGNOMECANVASMM_RECT_H
5
6
7#include <glibmm.h>
8
9/* $Id: rect.hg,v 1.5 2002/04/01 16:54:22 murrayc Exp $ */
10
11/* rect.h
12 *
13 * Copyright (C) 1998 EMC Capital Management Inc.
14 * Developed by Havoc Pennington <hp@pobox.com>
15 *
16 * Copyright (C) 1999 The Gtk-- Development Team
17 *
18 * This library is free software; you can redistribute it and/or
19 * modify it under the terms of the GNU Lesser General Public
20 * License as published by the Free Software Foundation; either
21 * version 2.1 of the License, or (at your option) any later version.
22 *
23 * This library is distributed in the hope that it will be useful,
24 * but WITHOUT ANY WARRANTY; without even the implied warranty of
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26 * Lesser General Public License for more details.
27 *
28 * You should have received a copy of the GNU Lesser General Public
29 * License along with this library; if not, write to the Free
30 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
31 */
32
36
37
38#ifndef DOXYGEN_SHOULD_SKIP_THIS
39typedef struct _GnomeCanvasRect GnomeCanvasRect;
40typedef struct _GnomeCanvasRectClass GnomeCanvasRectClass;
41#endif /* DOXYGEN_SHOULD_SKIP_THIS */
42
43
44namespace Gnome
45{
46
47namespace Canvas
48{ class Rect_Class; } // namespace Canvas
49
50} // namespace Gnome
51namespace Gnome
52{
53
54namespace Canvas
55{
56
57//class Group;
58
59
60class Rect : public RectEllipse
61{
62 public:
63#ifndef DOXYGEN_SHOULD_SKIP_THIS
64 typedef Rect CppObjectType;
65 typedef Rect_Class CppClassType;
66 typedef GnomeCanvasRect BaseObjectType;
67 typedef GnomeCanvasRectClass BaseClassType;
68#endif /* DOXYGEN_SHOULD_SKIP_THIS */
69
70 virtual ~Rect();
71
72#ifndef DOXYGEN_SHOULD_SKIP_THIS
73
74private:
75 friend class Rect_Class;
76 static CppClassType rect_class_;
77
78 // noncopyable
79 Rect(const Rect&);
80 Rect& operator=(const Rect&);
81
82protected:
83 explicit Rect(const Glib::ConstructParams& construct_params);
84 explicit Rect(GnomeCanvasRect* castitem);
85
86#endif /* DOXYGEN_SHOULD_SKIP_THIS */
87
88public:
89#ifndef DOXYGEN_SHOULD_SKIP_THIS
90 static GType get_type() G_GNUC_CONST;
91 static GType get_base_type() G_GNUC_CONST;
92#endif
93
95 GnomeCanvasRect* gobj() { return reinterpret_cast<GnomeCanvasRect*>(gobject_); }
96
98 const GnomeCanvasRect* gobj() const { return reinterpret_cast<GnomeCanvasRect*>(gobject_); }
99
100
101public:
102 //C++ methods used to invoke GTK+ virtual functions:
103#ifdef GLIBMM_VFUNCS_ENABLED
104#endif //GLIBMM_VFUNCS_ENABLED
105
106protected:
107 //GTK+ Virtual Functions (override these to change behaviour):
108#ifdef GLIBMM_VFUNCS_ENABLED
109#endif //GLIBMM_VFUNCS_ENABLED
110
111 //Default Signal Handlers::
112#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
113#endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
114
115
116private:
117
118
119public:
120 Rect(Group& parent, double x1, double y1, double x2, double y2);
121 explicit Rect(Group& parent);
122
123
124};
125
126} /* namespace Canvas */
127} /* namespace Gnome */
128
129
130namespace Glib
131{
140 Gnome::Canvas::Rect* wrap(GnomeCanvasRect* object, bool take_copy = false);
141} //namespace Glib
142
143
144#endif /* _LIBGNOMECANVASMM_RECT_H */
145
Definition: group.h:60
Abstract class for all rectangular shapes Corresponds to GnomeCanvasRE in libgnomecanvas.
Definition: rect-ellipse.h:63
Definition: rect.h:61
GnomeCanvasRect * gobj()
Provides access to the underlying C GtkObject.
Definition: rect.h:95
Rect(Group &parent)
Gnome::Canvas::Rect * wrap(GnomeCanvasRect *object, bool take_copy=false)
A Glib::wrap() method for this object.
const GnomeCanvasRect * gobj() const
Provides access to the underlying C GtkObject.
Definition: rect.h:98
Rect(Group &parent, double x1, double y1, double x2, double y2)
Definition: bpath.h:150
Definition: affinetrans.h:30