Ardour  8.7-14-g57a6773833
tk/ytkmm/ytkmm/gtkmm/image.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_IMAGE_H
4 #define _GTKMM_IMAGE_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: image.hg,v 1.9 2006/04/12 11:11:25 murrayc Exp $ */
11 
12 /* image.h
13  *
14  * Copyright (C) 1998-2002 The gtkmm Development Team
15  *
16  * This library is free software; you can redistribute it and/or
17  * modify it under the terms of the GNU Lesser General Public
18  * License as published by the Free Software Foundation; either
19  * version 2.1 of the License, or (at your option) any later version.
20  *
21  * This library is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24  * Lesser General Public License for more details.
25  *
26  * You should have received a copy of the GNU Lesser General Public
27  * License along with this library; if not, write to the Free
28  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29  */
30 
31 #include <gtkmm/misc.h>
32 #include <gtkmm/iconset.h>
33 #include <gdkmm/pixbufanimation.h>
34 #include <giomm/icon.h>
35 
36 
37 #ifndef DOXYGEN_SHOULD_SKIP_THIS
38 typedef struct _GtkImage GtkImage;
39 typedef struct _GtkImageClass GtkImageClass;
40 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
41 
42 
43 namespace Gtk
44 { class Image_Class; } // namespace Gtk
45 namespace Gtk
46 {
47 
48 
56 {
66 };
67 
68 } // namespace Gtk
69 
70 
71 #ifndef DOXYGEN_SHOULD_SKIP_THIS
72 namespace Glib
73 {
74 
75 template <>
76 class Value<Gtk::ImageType> : public Glib::Value_Enum<Gtk::ImageType>
77 {
78 public:
79  static GType value_type() G_GNUC_CONST;
80 };
81 
82 } // namespace Glib
83 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
84 
85 
86 namespace Gtk
87 {
88 
89 
107 class Image : public Misc
108 {
109  public:
110 #ifndef DOXYGEN_SHOULD_SKIP_THIS
111  typedef Image CppObjectType;
112  typedef Image_Class CppClassType;
113  typedef GtkImage BaseObjectType;
114  typedef GtkImageClass BaseClassType;
115 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
116 
117  virtual ~Image();
118 
119 #ifndef DOXYGEN_SHOULD_SKIP_THIS
120 
121 private:
122  friend class Image_Class;
123  static CppClassType image_class_;
124 
125  // noncopyable
126  Image(const Image&);
127  Image& operator=(const Image&);
128 
129 protected:
130  explicit Image(const Glib::ConstructParams& construct_params);
131  explicit Image(GtkImage* castitem);
132 
133 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
134 
135 public:
136 #ifndef DOXYGEN_SHOULD_SKIP_THIS
137  static GType get_type() G_GNUC_CONST;
138 
139 
140  static GType get_base_type() G_GNUC_CONST;
141 #endif
142 
144  GtkImage* gobj() { return reinterpret_cast<GtkImage*>(gobject_); }
145 
147  const GtkImage* gobj() const { return reinterpret_cast<GtkImage*>(gobject_); }
148 
149 
150 public:
151  //C++ methods used to invoke GTK+ virtual functions:
152 
153 protected:
154  //GTK+ Virtual Functions (override these to change behaviour):
155 
156  //Default Signal Handlers::
157 
158 
159 private:
160 
161 
162 public:
163 
164  Image();
165 
166  //TODO: The C documentation says that the constructor parameters can be NULL. Choose sensible method overloads.
167 
174  explicit Image(const Glib::RefPtr<Gdk::Pixmap>& pixmap, const Glib::RefPtr<Gdk::Bitmap>& mask);
175 
176 
180  explicit Image(const Glib::RefPtr<Gdk::Image>& image, const Glib::RefPtr<Gdk::Bitmap>& mask);
181 
182 
193  explicit Image(const std::string& file);
194 
195 
200  explicit Image(const Glib::RefPtr<Gdk::Pixbuf>& pixbuf);
201 
202 
211  explicit Image(const IconSet& icon_set, IconSize icon_size);
212 
213 
214 #ifndef GTKMM_DISABLE_DEPRECATED
215 
218  explicit Image(IconSet& icon_set, IconSize icon_size);
219 
220 #endif // GTKMM_DISABLE_DEPRECATED
221 
222 
223  //We don't wrap gtk_image_new_from_icon_name() to avoid a clash with the from-filename constructor.
224  //But we do wrap gtk_image_set_from_icon_name()
225 
226 
234  Image(const Gtk::StockID& stock_id, IconSize size);
235 
236  Image(const Glib::RefPtr<Gdk::PixbufAnimation>& animation);
237 
238 
244  void set(const Glib::RefPtr<Gdk::Pixmap>& pixmap, const Glib::RefPtr<Gdk::Bitmap>& mask);
245 
251  void set(const Glib::RefPtr<Gdk::Image>& gdk_image, const Glib::RefPtr<Gdk::Bitmap>& mask);
252 
257  void set(const std::string& filename);
258 
263  void set(const Glib::RefPtr<Gdk::Pixbuf>& pixbuf);
264 
270  void set(const Gtk::StockID& stock_id, IconSize size);
271 
272 
273 #ifndef GTKMM_DISABLE_DEPRECATED
274 
282  void set(IconSet& icon_set, IconSize size);
283 #endif // GTKMM_DISABLE_DEPRECATED
284 
285 
291  void set(const IconSet& icon_set, IconSize size);
292 
293 
299  void set(const Glib::RefPtr<Gdk::PixbufAnimation>& animation);
300 
306  void set(const Glib::RefPtr<const Gio::Icon>& icon, IconSize size);
307 
308 
317  void set_from_icon_name(const Glib::ustring& icon_name, IconSize size);
318 
319 
322  void clear();
323 
324 
332 
333  void get_pixmap(Glib::RefPtr<Gdk::Pixmap>& pixmap, Glib::RefPtr<Gdk::Bitmap>& mask) const;
334  void get_image(Glib::RefPtr<Gdk::Image>& gdk_image, Glib::RefPtr<Gdk::Bitmap>& mask) const;
335 
345  Glib::RefPtr<Gdk::Pixbuf> get_pixbuf();
346 
356  Glib::RefPtr<const Gdk::Pixbuf> get_pixbuf() const;
357  void get_stock(Gtk::StockID& stock_id, IconSize& size) const;
358  void get_icon_set(IconSet& icon_set, IconSize& size) const;
359 
369  Glib::RefPtr<Gdk::PixbufAnimation> get_animation();
370 
380  Glib::RefPtr<const Gdk::PixbufAnimation> get_animation() const;
381 
388  Glib::RefPtr<Gio::Icon> get_gicon(Gtk::IconSize& icon_size);
389 
396  Glib::RefPtr<const Gio::Icon> get_gicon(Gtk::IconSize& icon_size) const;
397 
398 
399  Glib::ustring get_icon_name() const;
400  Glib::ustring get_icon_name(IconSize& size);
401 
402 
407  int get_pixel_size() const;
408 
416 
422  Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> > property_pixbuf() ;
423 
429  Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixbuf> > property_pixbuf() const;
430 
436  Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixmap> > property_pixmap() ;
437 
443  Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixmap> > property_pixmap() const;
444 
450  Glib::PropertyProxy< Glib::RefPtr<Gdk::Image> > property_image() ;
451 
457  Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Image> > property_image() const;
458 
464  Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixmap> > property_mask() ;
465 
471  Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixmap> > property_mask() const;
472 
478  Glib::PropertyProxy< Glib::ustring > property_file() ;
479 
485  Glib::PropertyProxy_ReadOnly< Glib::ustring > property_file() const;
486 
492  Glib::PropertyProxy< Glib::ustring > property_stock() ;
493 
499  Glib::PropertyProxy_ReadOnly< Glib::ustring > property_stock() const;
500 
506  Glib::PropertyProxy< Gtk::IconSet > property_icon_set() ;
507 
513  Glib::PropertyProxy_ReadOnly< Gtk::IconSet > property_icon_set() const;
514 
520  Glib::PropertyProxy< int > property_icon_size() ;
521 
527  Glib::PropertyProxy_ReadOnly< int > property_icon_size() const;
528 
534  Glib::PropertyProxy< int > property_pixel_size() ;
535 
541  Glib::PropertyProxy_ReadOnly< int > property_pixel_size() const;
542 
548  Glib::PropertyProxy< Glib::RefPtr<Gdk::PixbufAnimation> > property_pixbuf_animation() ;
549 
555  Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::PixbufAnimation> > property_pixbuf_animation() const;
556 
562  Glib::PropertyProxy< Glib::ustring > property_icon_name() ;
563 
569  Glib::PropertyProxy_ReadOnly< Glib::ustring > property_icon_name() const;
570 
576  Glib::PropertyProxy_ReadOnly< ImageType > property_storage_type() const;
577 
578 
584  Glib::PropertyProxy< Glib::RefPtr<Gio::Icon> > property_gicon() ;
585 
591  Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gio::Icon> > property_gicon() const;
592 
593 
594 };
595 
596 } /* namespace Gtk */
597 
598 
599 namespace Glib
600 {
609  Gtk::Image* wrap(GtkImage* object, bool take_copy = false);
610 } //namespace Glib
611 
612 
613 #endif /* _GTKMM_IMAGE_H */
614 
Glib::RefPtr< const Gio::Icon > get_gicon(Gtk::IconSize &icon_size) const
Glib::PropertyProxy< Glib::RefPtr< Gdk::Pixbuf > > property_pixbuf()
Glib::PropertyProxy< Glib::RefPtr< Gdk::PixbufAnimation > > property_pixbuf_animation()
Image(const IconSet &icon_set, IconSize icon_size)
Glib::PropertyProxy< Glib::ustring > property_file()
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Gdk::PixbufAnimation > > property_pixbuf_animation() const
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_file() const
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Gdk::Pixbuf > > property_pixbuf() const
void get_pixmap(Glib::RefPtr< Gdk::Pixmap > &pixmap, Glib::RefPtr< Gdk::Bitmap > &mask) const
Glib::PropertyProxy< Glib::ustring > property_stock()
void set_pixel_size(int pixel_size)
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Gio::Icon > > property_gicon() const
Image(const Glib::RefPtr< Gdk::Pixbuf > &pixbuf)
Glib::RefPtr< const Gdk::PixbufAnimation > get_animation() const
Image(const Gtk::StockID &stock_id, IconSize size)
void set(IconSet &icon_set, IconSize size)
GtkImage * gobj()
Provides access to the underlying C GtkObject.
Image(const Glib::RefPtr< Gdk::Pixmap > &pixmap, const Glib::RefPtr< Gdk::Bitmap > &mask)
Glib::PropertyProxy< int > property_icon_size()
void set(const Glib::RefPtr< Gdk::Image > &gdk_image, const Glib::RefPtr< Gdk::Bitmap > &mask)
Glib::ustring get_icon_name(IconSize &size)
Gtk::Image * wrap(GtkImage *object, bool take_copy=false)
void set(const Glib::RefPtr< Gdk::Pixbuf > &pixbuf)
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Gdk::Pixmap > > property_mask() const
void set(const IconSet &icon_set, IconSize size)
void set(const Glib::RefPtr< const Gio::Icon > &icon, IconSize size)
void set(const Glib::RefPtr< Gdk::Pixmap > &pixmap, const Glib::RefPtr< Gdk::Bitmap > &mask)
void set_from_icon_name(const Glib::ustring &icon_name, IconSize size)
void get_image(Glib::RefPtr< Gdk::Image > &gdk_image, Glib::RefPtr< Gdk::Bitmap > &mask) const
void set(const Glib::RefPtr< Gdk::PixbufAnimation > &animation)
Glib::PropertyProxy< int > property_pixel_size()
Glib::PropertyProxy_ReadOnly< Gtk::IconSet > property_icon_set() const
Glib::ustring get_icon_name() const
Glib::PropertyProxy< Glib::ustring > property_icon_name()
Glib::RefPtr< const Gdk::Pixbuf > get_pixbuf() const
int get_pixel_size() const
Glib::PropertyProxy< Glib::RefPtr< Gio::Icon > > property_gicon()
ImageType get_storage_type() const
Image(const Glib::RefPtr< Gdk::PixbufAnimation > &animation)
Glib::RefPtr< Gdk::PixbufAnimation > get_animation()
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Gdk::Image > > property_image() const
Image(IconSet &icon_set, IconSize icon_size)
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_icon_name() const
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Gdk::Pixmap > > property_pixmap() const
Image(const Glib::RefPtr< Gdk::Image > &image, const Glib::RefPtr< Gdk::Bitmap > &mask)
Glib::PropertyProxy_ReadOnly< int > property_pixel_size() const
void clear()
void set(const std::string &filename)
void set(const Gtk::StockID &stock_id, IconSize size)
void get_icon_set(IconSet &icon_set, IconSize &size) const
Glib::RefPtr< Gio::Icon > get_gicon(Gtk::IconSize &icon_size)
Glib::PropertyProxy< Glib::RefPtr< Gdk::Image > > property_image()
Glib::PropertyProxy< Glib::RefPtr< Gdk::Pixmap > > property_mask()
Image(const std::string &file)
const GtkImage * gobj() const
Provides access to the underlying C GtkObject.
Glib::PropertyProxy< Gtk::IconSet > property_icon_set()
Glib::PropertyProxy_ReadOnly< int > property_icon_size() const
virtual ~Image()
Glib::PropertyProxy_ReadOnly< ImageType > property_storage_type() const
Glib::RefPtr< Gdk::Pixbuf > get_pixbuf()
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_stock() const
Glib::PropertyProxy< Glib::RefPtr< Gdk::Pixmap > > property_pixmap()
void get_stock(Gtk::StockID &stock_id, IconSize &size) const
Definition: misc.h:57
GtkImagePixmapData pixmap
Definition: gtkimage.h:0
GtkImageImageData image
Definition: gtkimage.h:1
GtkImageIconSetData icon_set
Definition: gtkimage.h:4
GtkImagePixbufData pixbuf
Definition: gtkimage.h:2
Definition: ardour_ui.h:188
void pixel_size(const std::string &str, const Pango::FontDescription &font, int &width, int &height)
Definition: lobject.h:100