2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _GTKMM_DRAWINGAREA_H
4 #define _GTKMM_DRAWINGAREA_H
12 * Copyright (C) 1998-2002 The gtkmm Development Team
14 * This library is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU Library General Public
16 * License as published by the Free Software Foundation; either
17 * version 2 of the License, or (at your option) any later version.
19 * This library is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * Library General Public License for more details.
24 * You should have received a copy of the GNU Library General Public
25 * License along with this library; if not, write to the Free
26 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29 #include <gtkmm/widget.h>
32 #ifndef DOXYGEN_SHOULD_SKIP_THIS
33 typedef struct _GtkDrawingArea GtkDrawingArea;
34 typedef struct _GtkDrawingAreaClass GtkDrawingAreaClass;
35 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
39 { class DrawingArea_Class; } // namespace Gtk
43 /** A widget for custom user interface elements.
48 class DrawingArea : public Widget
51 #ifndef DOXYGEN_SHOULD_SKIP_THIS
52 typedef DrawingArea CppObjectType;
53 typedef DrawingArea_Class CppClassType;
54 typedef GtkDrawingArea BaseObjectType;
55 typedef GtkDrawingAreaClass BaseClassType;
56 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
58 virtual ~DrawingArea();
60 #ifndef DOXYGEN_SHOULD_SKIP_THIS
63 friend class DrawingArea_Class;
64 static CppClassType drawingarea_class_;
67 DrawingArea(const DrawingArea&);
68 DrawingArea& operator=(const DrawingArea&);
71 explicit DrawingArea(const Glib::ConstructParams& construct_params);
72 explicit DrawingArea(GtkDrawingArea* castitem);
74 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
77 #ifndef DOXYGEN_SHOULD_SKIP_THIS
78 static GType get_type() G_GNUC_CONST;
79 static GType get_base_type() G_GNUC_CONST;
82 ///Provides access to the underlying C GtkObject.
83 GtkDrawingArea* gobj() { return reinterpret_cast<GtkDrawingArea*>(gobject_); }
85 ///Provides access to the underlying C GtkObject.
86 const GtkDrawingArea* gobj() const { return reinterpret_cast<GtkDrawingArea*>(gobject_); }
90 //C++ methods used to invoke GTK+ virtual functions:
93 //GTK+ Virtual Functions (override these to change behaviour):
95 //Default Signal Handlers::
107 } /* namespace Gtk */
112 /** @relates Gtk::DrawingArea
113 * @param object The C instance
114 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
115 * @result A C++ instance that wraps this C instance.
117 Gtk::DrawingArea* wrap(GtkDrawingArea* object, bool take_copy = false);
119 #endif /* _GTKMM_DRAWINGAREA_H */