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

« back to all changes in this revision

Viewing changes to libs/gtkmm2/gdk/gdkmm/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 <gdkmm/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 "bitmap.h"
 
16
#include "color.h"
 
17
#include "colormap.h"
 
18
#include "cursor.h"
 
19
#include "device.h"
 
20
#include "display.h"
 
21
#include "displaymanager.h"
 
22
#include "dragcontext.h"
 
23
#include "drawable.h"
 
24
#include "event.h"
 
25
#include "gc.h"
 
26
#include "image.h"
 
27
#include "pixbuf.h"
 
28
#include "pixbufanimation.h"
 
29
#include "pixbufanimationiter.h"
 
30
#include "pixmap.h"
 
31
#include "pixbufformat.h"
 
32
#include "pixbufloader.h"
 
33
#include "rectangle.h"
 
34
#include "region.h"
 
35
#include "rgbcmap.h"
 
36
#include "screen.h"
 
37
#include "types.h"
 
38
#include "visual.h"
 
39
#include "window.h"
 
40
 
 
41
extern "C"
 
42
{
 
43
 
 
44
//Declarations of the *_get_type() functions:
 
45
 
 
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);
 
62
 
 
63
//Declarations of the *_error_quark() functions:
 
64
 
 
65
GQuark gdk_pixbuf_error_quark(void);
 
66
} // extern "C"
 
67
 
 
68
 
 
69
//Declarations of the *_Class::wrap_new() methods, instead of including all the private headers:
 
70
 
 
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*); };  }
 
87
 
 
88
namespace Gdk { 
 
89
 
 
90
void wrap_init()
 
91
{
 
92
  // Register Error domains:
 
93
  Glib::Error::register_domain(gdk_pixbuf_error_quark(), &Gdk::PixbufError::throw_func);
 
94
 
 
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);
 
112
 
 
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();
 
120
  Gdk::GC::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();
 
130
 
 
131
} // wrap_init()
 
132
 
 
133
} //Gdk
 
134
 
 
135