Ardour  9.0-pre0-350-gf17a656217
pixbufloader.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GDKMM_PIXBUFLOADER_H
4 #define _GDKMM_PIXBUFLOADER_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: pixbufloader.hg,v 1.13 2006/05/18 17:53:14 murrayc Exp $ */
11 
12 /* Copyright (C) 1998-2002 The gtkmm Development Team
13  *
14  * This library is free software; you can redistribute it and/or
15  * modify it under the terms of the GNU Lesser General Public
16  * License as published by the Free Software Foundation; either
17  * version 2.1 of the License, or (at your option) any later version.
18  *
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  * Lesser General Public License for more details.
23  *
24  * You should have received a copy of the GNU Lesser 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.
27  */
28 
29 #include <glibmm/object.h>
30 #include <gdkmm/pixbuf.h>
31 #include <gdkmm/pixbufanimation.h>
32 #include <gdkmm/pixbufformat.h>
33 
34 
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
36 typedef struct _GdkPixbufLoader GdkPixbufLoader;
37 typedef struct _GdkPixbufLoaderClass GdkPixbufLoaderClass;
38 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
39 
40 
41 #ifndef DOXYGEN_SHOULD_SKIP_THIS
42 namespace Gdk
43 { class PixbufLoader_Class; } // namespace Gdk
44 #endif //DOXYGEN_SHOULD_SKIP_THIS
45 
46 namespace Gdk
47 {
48 
49 
50 class PixbufLoader : public Glib::Object
51 {
52 
53 #ifndef DOXYGEN_SHOULD_SKIP_THIS
54 
55 public:
56  typedef PixbufLoader CppObjectType;
57  typedef PixbufLoader_Class CppClassType;
58  typedef GdkPixbufLoader BaseObjectType;
59  typedef GdkPixbufLoaderClass BaseClassType;
60 
61 private: friend class PixbufLoader_Class;
62  static CppClassType pixbufloader_class_;
63 
64 private:
65  // noncopyable
66  PixbufLoader(const PixbufLoader&);
67  PixbufLoader& operator=(const PixbufLoader&);
68 
69 protected:
70  explicit PixbufLoader(const Glib::ConstructParams& construct_params);
71  explicit PixbufLoader(GdkPixbufLoader* castitem);
72 
73 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
74 
75 public:
76  virtual ~PixbufLoader();
77 
80  static GType get_type() G_GNUC_CONST;
81 
82 #ifndef DOXYGEN_SHOULD_SKIP_THIS
83 
84 
85  static GType get_base_type() G_GNUC_CONST;
86 #endif
87 
89  GdkPixbufLoader* gobj() { return reinterpret_cast<GdkPixbufLoader*>(gobject_); }
90 
92  const GdkPixbufLoader* gobj() const { return reinterpret_cast<GdkPixbufLoader*>(gobject_); }
93 
95  GdkPixbufLoader* gobj_copy();
96 
97 private:
98 
99 protected:
100 
104 
129  explicit PixbufLoader(const Glib::ustring& image_type, bool mime_type = false);
130 
131 public:
132 
137  static Glib::RefPtr<PixbufLoader> create();
138 
139 
165  static Glib::RefPtr<PixbufLoader> create(const Glib::ustring& image_type, bool mime_type = false);
166 
167 
168  void set_size(int width, int height);
169 
170 
180  void write(const guint8* buf, gsize count);
181 
182 
192  void close();
193 
194 
195  Glib::RefPtr<Gdk::Pixbuf> get_pixbuf();
196 
197  Glib::RefPtr<Gdk::PixbufAnimation> get_animation();
198 
199 
201 
202 
213  Glib::SignalProxy0< void > signal_area_prepared();
214 
215 
232  Glib::SignalProxy4< void,int,int,int,int > signal_area_updated();
233 
234 
245  Glib::SignalProxy0< void > signal_closed();
246 
247 
248  //We use no_default_handler for this, because we can not add a new vfunc to 2.5 without breaking ABI.
249  //TODO: Remove no_default_handler when we do an ABI-break-with-parallel-install.
250 
265  Glib::SignalProxy2< void,int,int > signal_size_prepared();
266 
267 
268 public:
269 
270 public:
271  //C++ methods used to invoke GTK+ virtual functions:
272 
273 protected:
274  //GTK+ Virtual Functions (override these to change behaviour):
275 
276  //Default Signal Handlers::
278  virtual void on_area_prepared();
280  virtual void on_area_updated(int x, int y, int width, int height);
282  virtual void on_closed();
283 
284 
285 };
286 
287 } // namespace Gdk
288 
289 
290 namespace Glib
291 {
300  Glib::RefPtr<Gdk::PixbufLoader> wrap(GdkPixbufLoader* object, bool take_copy = false);
301 }
302 
303 
304 #endif /* _GDKMM_PIXBUFLOADER_H */
305 
virtual void on_area_updated(int x, int y, int width, int height)
This is a default handler for the signal signal_area_updated().
Glib::SignalProxy2< void, int, int > signal_size_prepared()
virtual void on_area_prepared()
This is a default handler for the signal signal_area_prepared().
void set_size(int width, int height)
Glib::SignalProxy0< void > signal_closed()
Glib::RefPtr< Gdk::Pixbuf > get_pixbuf()
Glib::SignalProxy0< void > signal_area_prepared()
PixbufFormat get_format() const
static Glib::RefPtr< PixbufLoader > create(const Glib::ustring &image_type, bool mime_type=false)
GdkPixbufLoader * gobj()
Provides access to the underlying C GObject.
Definition: pixbufloader.h:89
const GdkPixbufLoader * gobj() const
Provides access to the underlying C GObject.
Definition: pixbufloader.h:92
static GType get_type() G_GNUC_CONST
PixbufLoader(const Glib::ustring &image_type, bool mime_type=false)
void write(const guint8 *buf, gsize count)
Glib::RefPtr< Gdk::PixbufAnimation > get_animation()
GdkPixbufLoader * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
Glib::RefPtr< Gdk::PixbufLoader > wrap(GdkPixbufLoader *object, bool take_copy=false)
Glib::SignalProxy4< void, int, int, int, int > signal_area_updated()
virtual ~PixbufLoader()
virtual void on_closed()
This is a default handler for the signal signal_closed().
static Glib::RefPtr< PixbufLoader > create()
gint height
Definition: xcursors.h:1
gint width
Definition: xcursors.h:1