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 <pangomm/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:
15
#include "attributes.h"
22
#include "fontdescription.h"
24
#include "fontfamily.h"
26
#include "fontmetrics.h"
29
#include "glyphstring.h"
33
#include "layoutiter.h"
34
#include "layoutline.h"
35
#include "layoutrun.h"
36
#include "rectangle.h"
43
//Declarations of the *_get_type() functions:
45
GType pango_context_get_type(void);
46
GType pango_font_get_type(void);
47
GType pango_font_face_get_type(void);
48
GType pango_font_family_get_type(void);
49
GType pango_font_map_get_type(void);
50
GType pango_fontset_get_type(void);
51
GType pango_layout_get_type(void);
52
GType pango_renderer_get_type(void);
54
//Declarations of the *_error_quark() functions:
59
//Declarations of the *_Class::wrap_new() methods, instead of including all the private headers:
61
namespace Pango { class Context_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; }
62
namespace Pango { class Font_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; }
63
namespace Pango { class FontFace_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; }
64
namespace Pango { class FontFamily_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; }
65
namespace Pango { class FontMap_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; }
66
namespace Pango { class Fontset_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; }
67
namespace Pango { class Layout_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; }
68
namespace Pango { class Renderer_Class { public: static Glib::ObjectBase* wrap_new(GObject*); }; }
74
// Register Error domains:
76
// Map gtypes to gtkmm wrapper-creation functions:
77
Glib::wrap_register(pango_context_get_type(), &Pango::Context_Class::wrap_new);
78
Glib::wrap_register(pango_font_get_type(), &Pango::Font_Class::wrap_new);
79
Glib::wrap_register(pango_font_face_get_type(), &Pango::FontFace_Class::wrap_new);
80
Glib::wrap_register(pango_font_family_get_type(), &Pango::FontFamily_Class::wrap_new);
81
Glib::wrap_register(pango_font_map_get_type(), &Pango::FontMap_Class::wrap_new);
82
Glib::wrap_register(pango_fontset_get_type(), &Pango::Fontset_Class::wrap_new);
83
Glib::wrap_register(pango_layout_get_type(), &Pango::Layout_Class::wrap_new);
84
Glib::wrap_register(pango_renderer_get_type(), &Pango::Renderer_Class::wrap_new);
86
// Register the gtkmm gtypes:
87
Pango::Context::get_type();
88
Pango::Font::get_type();
89
Pango::FontFace::get_type();
90
Pango::FontFamily::get_type();
91
Pango::FontMap::get_type();
92
Pango::Fontset::get_type();
93
Pango::Layout::get_type();
94
Pango::Renderer::get_type();