libgnomecanvasmm
|
00001 // -*- c++ -*- 00002 // Generated by gtkmmproc -- DO NOT MODIFY! 00003 #ifndef _LIBGNOMECANVASMM_PIXBUF_H 00004 #define _LIBGNOMECANVASMM_PIXBUF_H 00005 00006 00007 #include <glibmm.h> 00008 00009 // -*- C++ -*- 00010 /* $Id: pixbuf.hg,v 1.9 2002/06/02 19:47:14 daniel Exp $ */ 00011 00012 /* pixbuf.h 00013 * 00014 * 00015 * Copyright (C) 2002 The libgnomecanvasmm Development Team 00016 * 00017 * This library is free software; you can redistribute it and/or 00018 * modify it under the terms of the GNU Lesser General Public 00019 * License as published by the Free Software Foundation; either 00020 * version 2.1 of the License, or (at your option) any later version. 00021 * 00022 * This library is distributed in the hope that it will be useful, 00023 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00024 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00025 * Lesser General Public License for more details. 00026 * 00027 * You should have received a copy of the GNU Lesser General Public 00028 * License along with this library; if not, write to the Free 00029 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00030 */ 00031 00032 #include <gdkmm/pixbuf.h> 00033 #include <gtkmm/enums.h> 00034 #include <libgnomecanvasmm/item.h> 00035 #include <libgnomecanvas/gnome-canvas-pixbuf.h> 00036 00037 00038 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00039 typedef struct _GnomeCanvasPixbuf GnomeCanvasPixbuf; 00040 typedef struct _GnomeCanvasPixbufClass GnomeCanvasPixbufClass; 00041 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00042 00043 00044 namespace Gnome 00045 { 00046 00047 namespace Canvas 00048 { class Pixbuf_Class; } // namespace Canvas 00049 00050 } // namespace Gnome 00051 namespace Gnome 00052 { 00053 00054 namespace Canvas 00055 { 00056 00057 00058 class Pixbuf : public Item 00059 { 00060 public: 00061 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00062 typedef Pixbuf CppObjectType; 00063 typedef Pixbuf_Class CppClassType; 00064 typedef GnomeCanvasPixbuf BaseObjectType; 00065 typedef GnomeCanvasPixbufClass BaseClassType; 00066 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00067 00068 virtual ~Pixbuf(); 00069 00070 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00071 00072 private: 00073 friend class Pixbuf_Class; 00074 static CppClassType pixbuf_class_; 00075 00076 // noncopyable 00077 Pixbuf(const Pixbuf&); 00078 Pixbuf& operator=(const Pixbuf&); 00079 00080 protected: 00081 explicit Pixbuf(const Glib::ConstructParams& construct_params); 00082 explicit Pixbuf(GnomeCanvasPixbuf* castitem); 00083 00084 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00085 00086 public: 00087 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00088 static GType get_type() G_GNUC_CONST; 00089 static GType get_base_type() G_GNUC_CONST; 00090 #endif 00091 00093 GnomeCanvasPixbuf* gobj() { return reinterpret_cast<GnomeCanvasPixbuf*>(gobject_); } 00094 00096 const GnomeCanvasPixbuf* gobj() const { return reinterpret_cast<GnomeCanvasPixbuf*>(gobject_); } 00097 00098 00099 public: 00100 //C++ methods used to invoke GTK+ virtual functions: 00101 #ifdef GLIBMM_VFUNCS_ENABLED 00102 #endif //GLIBMM_VFUNCS_ENABLED 00103 00104 protected: 00105 //GTK+ Virtual Functions (override these to change behaviour): 00106 #ifdef GLIBMM_VFUNCS_ENABLED 00107 #endif //GLIBMM_VFUNCS_ENABLED 00108 00109 //Default Signal Handlers:: 00110 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00111 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00112 00113 00114 private: 00115 00116 public: 00117 Pixbuf(Group& parent, double x, double y, const Glib::RefPtr<Gdk::Pixbuf>& image); 00118 explicit Pixbuf(Group& parent); 00119 00120 #ifdef GLIBMM_PROPERTIES_ENABLED 00121 00127 Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> > property_pixbuf() ; 00128 #endif //#GLIBMM_PROPERTIES_ENABLED 00129 00130 #ifdef GLIBMM_PROPERTIES_ENABLED 00131 00137 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixbuf> > property_pixbuf() const; 00138 #endif //#GLIBMM_PROPERTIES_ENABLED 00139 00140 #ifdef GLIBMM_PROPERTIES_ENABLED 00141 00147 Glib::PropertyProxy<double> property_width() ; 00148 #endif //#GLIBMM_PROPERTIES_ENABLED 00149 00150 #ifdef GLIBMM_PROPERTIES_ENABLED 00151 00157 Glib::PropertyProxy_ReadOnly<double> property_width() const; 00158 #endif //#GLIBMM_PROPERTIES_ENABLED 00159 00160 #ifdef GLIBMM_PROPERTIES_ENABLED 00161 00167 Glib::PropertyProxy<bool> property_width_set() ; 00168 #endif //#GLIBMM_PROPERTIES_ENABLED 00169 00170 #ifdef GLIBMM_PROPERTIES_ENABLED 00171 00177 Glib::PropertyProxy_ReadOnly<bool> property_width_set() const; 00178 #endif //#GLIBMM_PROPERTIES_ENABLED 00179 00180 #ifdef GLIBMM_PROPERTIES_ENABLED 00181 00187 Glib::PropertyProxy<bool> property_width_in_pixels() ; 00188 #endif //#GLIBMM_PROPERTIES_ENABLED 00189 00190 #ifdef GLIBMM_PROPERTIES_ENABLED 00191 00197 Glib::PropertyProxy_ReadOnly<bool> property_width_in_pixels() const; 00198 #endif //#GLIBMM_PROPERTIES_ENABLED 00199 00200 #ifdef GLIBMM_PROPERTIES_ENABLED 00201 00207 Glib::PropertyProxy<double> property_height() ; 00208 #endif //#GLIBMM_PROPERTIES_ENABLED 00209 00210 #ifdef GLIBMM_PROPERTIES_ENABLED 00211 00217 Glib::PropertyProxy_ReadOnly<double> property_height() const; 00218 #endif //#GLIBMM_PROPERTIES_ENABLED 00219 00220 #ifdef GLIBMM_PROPERTIES_ENABLED 00221 00227 Glib::PropertyProxy<bool> property_height_set() ; 00228 #endif //#GLIBMM_PROPERTIES_ENABLED 00229 00230 #ifdef GLIBMM_PROPERTIES_ENABLED 00231 00237 Glib::PropertyProxy_ReadOnly<bool> property_height_set() const; 00238 #endif //#GLIBMM_PROPERTIES_ENABLED 00239 00240 #ifdef GLIBMM_PROPERTIES_ENABLED 00241 00247 Glib::PropertyProxy<bool> property_height_in_pixels() ; 00248 #endif //#GLIBMM_PROPERTIES_ENABLED 00249 00250 #ifdef GLIBMM_PROPERTIES_ENABLED 00251 00257 Glib::PropertyProxy_ReadOnly<bool> property_height_in_pixels() const; 00258 #endif //#GLIBMM_PROPERTIES_ENABLED 00259 00260 #ifdef GLIBMM_PROPERTIES_ENABLED 00261 00267 Glib::PropertyProxy<double> property_x() ; 00268 #endif //#GLIBMM_PROPERTIES_ENABLED 00269 00270 #ifdef GLIBMM_PROPERTIES_ENABLED 00271 00277 Glib::PropertyProxy_ReadOnly<double> property_x() const; 00278 #endif //#GLIBMM_PROPERTIES_ENABLED 00279 00280 #ifdef GLIBMM_PROPERTIES_ENABLED 00281 00287 Glib::PropertyProxy<bool> property_x_in_pixels() ; 00288 #endif //#GLIBMM_PROPERTIES_ENABLED 00289 00290 #ifdef GLIBMM_PROPERTIES_ENABLED 00291 00297 Glib::PropertyProxy_ReadOnly<bool> property_x_in_pixels() const; 00298 #endif //#GLIBMM_PROPERTIES_ENABLED 00299 00300 #ifdef GLIBMM_PROPERTIES_ENABLED 00301 00307 Glib::PropertyProxy<double> property_y() ; 00308 #endif //#GLIBMM_PROPERTIES_ENABLED 00309 00310 #ifdef GLIBMM_PROPERTIES_ENABLED 00311 00317 Glib::PropertyProxy_ReadOnly<double> property_y() const; 00318 #endif //#GLIBMM_PROPERTIES_ENABLED 00319 00320 #ifdef GLIBMM_PROPERTIES_ENABLED 00321 00327 Glib::PropertyProxy<bool> property_y_in_pixels() ; 00328 #endif //#GLIBMM_PROPERTIES_ENABLED 00329 00330 #ifdef GLIBMM_PROPERTIES_ENABLED 00331 00337 Glib::PropertyProxy_ReadOnly<bool> property_y_in_pixels() const; 00338 #endif //#GLIBMM_PROPERTIES_ENABLED 00339 00340 #ifdef GLIBMM_PROPERTIES_ENABLED 00341 00347 Glib::PropertyProxy<Gtk::AnchorType> property_anchor() ; 00348 #endif //#GLIBMM_PROPERTIES_ENABLED 00349 00350 #ifdef GLIBMM_PROPERTIES_ENABLED 00351 00357 Glib::PropertyProxy_ReadOnly<Gtk::AnchorType> property_anchor() const; 00358 #endif //#GLIBMM_PROPERTIES_ENABLED 00359 00360 00361 }; 00362 00363 } /* namespace Canvas */ 00364 } /* namespace Gnome */ 00365 00366 00367 namespace Glib 00368 { 00377 Gnome::Canvas::Pixbuf* wrap(GnomeCanvasPixbuf* object, bool take_copy = false); 00378 } //namespace Glib 00379 00380 00381 #endif /* _LIBGNOMECANVASMM_PIXBUF_H */ 00382