~ubuntu-branches/ubuntu/vivid/ardour/vivid-proposed

« back to all changes in this revision

Viewing changes to libs/gtkmm2/pango/pangomm/wrap_init.cc

  • Committer: Package Import Robot
  • Author(s): Felipe Sateler, Jaromír Mikeš, Felipe Sateler
  • Date: 2014-05-22 14:39:25 UTC
  • mfrom: (29 sid)
  • mto: This revision was merged to the branch mainline in revision 30.
  • Revision ID: package-import@ubuntu.com-20140522143925-vwqfo9287pmkrroe
Tags: 1:2.8.16+git20131003-3
* Team upload

[ Jaromír Mikeš ]
* Add -dbg package

[ Felipe Sateler ]
* Upload to experimental

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#include <glib.h>
 
3
 
 
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.
 
6
#undef  G_GNUC_CONST
 
7
#define G_GNUC_CONST /* empty */
 
8
 
 
9
#include <pangomm/wrap_init.h>
 
10
#include <glibmm/error.h>
 
11
#include <glibmm/object.h>
 
12
 
 
13
// #include the widget headers so that we can call the get_type() static methods:
 
14
 
 
15
#include "attributes.h"
 
16
#include "attriter.h"
 
17
#include "attrlist.h"
 
18
#include "color.h"
 
19
#include "context.h"
 
20
#include "coverage.h"
 
21
#include "font.h"
 
22
#include "fontdescription.h"
 
23
#include "fontface.h"
 
24
#include "fontfamily.h"
 
25
#include "fontmap.h"
 
26
#include "fontmetrics.h"
 
27
#include "fontset.h"
 
28
#include "glyph.h"
 
29
#include "glyphstring.h"
 
30
#include "item.h"
 
31
#include "language.h"
 
32
#include "layout.h"
 
33
#include "layoutiter.h"
 
34
#include "layoutline.h"
 
35
#include "layoutrun.h"
 
36
#include "rectangle.h"
 
37
#include "renderer.h"
 
38
#include "tabarray.h"
 
39
 
 
40
extern "C"
 
41
{
 
42
 
 
43
//Declarations of the *_get_type() functions:
 
44
 
 
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);
 
53
 
 
54
//Declarations of the *_error_quark() functions:
 
55
 
 
56
} // extern "C"
 
57
 
 
58
 
 
59
//Declarations of the *_Class::wrap_new() methods, instead of including all the private headers:
 
60
 
 
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*); };  }
 
69
 
 
70
namespace Pango { 
 
71
 
 
72
void wrap_init()
 
73
{
 
74
  // Register Error domains:
 
75
 
 
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);
 
85
 
 
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();
 
95
 
 
96
} // wrap_init()
 
97
 
 
98
} //Pango
 
99
 
 
100