4
// Disable the 'const' function attribute of the get_type() functions.
5
// GCC would optimize them out because we don't use the return value.
7
#define G_GNUC_CONST /* empty */
9
#include <gdkmm/wrap_init.h>
10
#include <glibmm/error.h>
11
#include <glibmm/object.h>
13
// #include the widget headers so that we can call the get_type() static methods:
21
#include "displaymanager.h"
22
#include "dragcontext.h"
28
#include "pixbufanimation.h"
29
#include "pixbufanimationiter.h"
31
#include "pixbufformat.h"
32
#include "pixbufloader.h"
33
#include "rectangle.h"
44
//Declarations of the *_get_type() functions:
46
GType gdk_colormap_get_type(void);
47
GType gdk_device_get_type(void);
48
GType gdk_display_get_type(void);
49
GType gdk_display_manager_get_type(void);
50
GType gdk_drag_context_get_type(void);
51
GType gdk_drawable_get_type(void);
52
GType gdk_gc_get_type(void);
53
GType gdk_image_get_type(void);
54
GType gdk_pixbuf_get_type(void);
55
GType gdk_pixbuf_animation_get_type(void);
56
GType gdk_pixbuf_animation_iter_get_type(void);
57
GType gdk_pixbuf_loader_get_type(void);
58
GType gdk_pixmap_get_type(void);
59
GType gdk_screen_get_type(void);
60
GType gdk_visual_get_type(void);
61
GType gdk_window_object_get_type(void);
63
//Declarations of the *_error_quark() functions:
65
GQuark gdk_pixbuf_error_quark(void);
69
//Declarations of the *_Class::wrap_new() methods, instead of including all the private headers:
71
namespace Gdk { class Colormap_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; }
72
namespace Gdk { class Device_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; }
73
namespace Gdk { class Display_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; }
74
namespace Gdk { class DisplayManager_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; }
75
namespace Gdk { class DragContext_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; }
76
namespace Gdk { class Drawable_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; }
77
namespace Gdk { class GC_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; }
78
namespace Gdk { class Image_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; }
79
namespace Gdk { class Pixbuf_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; }
80
namespace Gdk { class PixbufAnimation_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; }
81
namespace Gdk { class PixbufAnimationIter_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; }
82
namespace Gdk { class PixbufLoader_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; }
83
namespace Gdk { class Pixmap_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; }
84
namespace Gdk { class Screen_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; }
85
namespace Gdk { class Visual_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; }
86
namespace Gdk { class Window_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; }
92
// Register Error domains:
93
Glib::Error::register_domain(gdk_pixbuf_error_quark(), &Gdk::PixbufError::throw_func);
95
// Map gtypes to gtkmm wrapper-creation functions:
96
Glib::wrap_register(gdk_colormap_get_type(), &Gdk::Colormap_Class::wrap_new);
97
Glib::wrap_register(gdk_device_get_type(), &Gdk::Device_Class::wrap_new);
98
Glib::wrap_register(gdk_display_get_type(), &Gdk::Display_Class::wrap_new);
99
Glib::wrap_register(gdk_display_manager_get_type(), &Gdk::DisplayManager_Class::wrap_new);
100
Glib::wrap_register(gdk_drag_context_get_type(), &Gdk::DragContext_Class::wrap_new);
101
Glib::wrap_register(gdk_drawable_get_type(), &Gdk::Drawable_Class::wrap_new);
102
Glib::wrap_register(gdk_gc_get_type(), &Gdk::GC_Class::wrap_new);
103
Glib::wrap_register(gdk_image_get_type(), &Gdk::Image_Class::wrap_new);
104
Glib::wrap_register(gdk_pixbuf_get_type(), &Gdk::Pixbuf_Class::wrap_new);
105
Glib::wrap_register(gdk_pixbuf_animation_get_type(), &Gdk::PixbufAnimation_Class::wrap_new);
106
Glib::wrap_register(gdk_pixbuf_animation_iter_get_type(), &Gdk::PixbufAnimationIter_Class::wrap_new);
107
Glib::wrap_register(gdk_pixbuf_loader_get_type(), &Gdk::PixbufLoader_Class::wrap_new);
108
Glib::wrap_register(gdk_pixmap_get_type(), &Gdk::Pixmap_Class::wrap_new);
109
Glib::wrap_register(gdk_screen_get_type(), &Gdk::Screen_Class::wrap_new);
110
Glib::wrap_register(gdk_visual_get_type(), &Gdk::Visual_Class::wrap_new);
111
Glib::wrap_register(gdk_window_object_get_type(), &Gdk::Window_Class::wrap_new);
113
// Register the gtkmm gtypes:
114
Gdk::Colormap::get_type();
115
Gdk::Device::get_type();
116
Gdk::Display::get_type();
117
Gdk::DisplayManager::get_type();
118
Gdk::DragContext::get_type();
119
Gdk::Drawable::get_type();
121
Gdk::Image::get_type();
122
Gdk::Pixbuf::get_type();
123
Gdk::PixbufAnimation::get_type();
124
Gdk::PixbufAnimationIter::get_type();
125
Gdk::PixbufLoader::get_type();
126
Gdk::Pixmap::get_type();
127
Gdk::Screen::get_type();
128
Gdk::Visual::get_type();
129
Gdk::Window::get_type();