00001
00002
00003
#ifndef _LIBGNOMECANVASMM_PIXBUF_H
00004
#define _LIBGNOMECANVASMM_PIXBUF_H
00005
00006
#include <glibmm.h>
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
#include <gdkmm/pixbuf.h>
00032
#include <gtkmm/enums.h>
00033
#include <libgnomecanvasmm/item.h>
00034
#include <libgnomecanvas/gnome-canvas-pixbuf.h>
00035
00036
00037
#ifndef DOXYGEN_SHOULD_SKIP_THIS
00038
typedef struct _GnomeCanvasPixbuf GnomeCanvasPixbuf;
00039
typedef struct _GnomeCanvasPixbufClass GnomeCanvasPixbufClass;
00040
#endif
00041
00042
00043
namespace Gnome
00044 {
00045
00046
namespace Canvas
00047 {
class Pixbuf_Class; }
00048
00049 }
00050
namespace Gnome
00051 {
00052
00053
namespace Canvas
00054 {
00055
00056
00057 class Pixbuf :
public Item
00058 {
00059
public:
00060
#ifndef DOXYGEN_SHOULD_SKIP_THIS
00061
typedef Pixbuf CppObjectType;
00062
typedef Pixbuf_Class CppClassType;
00063
typedef GnomeCanvasPixbuf BaseObjectType;
00064
typedef GnomeCanvasPixbufClass BaseClassType;
00065
#endif
00066
00067
virtual ~Pixbuf();
00068
00069
#ifndef DOXYGEN_SHOULD_SKIP_THIS
00070
00071
private:
00072
friend class Pixbuf_Class;
00073
static CppClassType pixbuf_class_;
00074
00075
00076
Pixbuf(
const Pixbuf&);
00077
Pixbuf& operator=(
const Pixbuf&);
00078
00079
protected:
00080
explicit Pixbuf(
const Glib::ConstructParams& construct_params);
00081
explicit Pixbuf(GnomeCanvasPixbuf* castitem);
00082
00083
#endif
00084
00085
public:
00086
#ifndef DOXYGEN_SHOULD_SKIP_THIS
00087
static GType get_type() G_GNUC_CONST;
00088
static GType get_base_type() G_GNUC_CONST;
00089
#endif
00090
00092 GnomeCanvasPixbuf*
gobj() {
return reinterpret_cast<GnomeCanvasPixbuf*>(gobject_); }
00093
00095 const GnomeCanvasPixbuf*
gobj()
const {
return reinterpret_cast<GnomeCanvasPixbuf*>(gobject_); }
00096
00097
00098
public:
00099
00100
00101
protected:
00102
00103
00104
00105
00106
00107
private:
00108
00109
public:
00110
Pixbuf(
Group& parent,
double x,
double y,
const Glib::RefPtr<Gdk::Pixbuf>& image);
00111
explicit Pixbuf(
Group& parent);
00112
00118 Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> >
property_pixbuf();
00119
00125 Glib::PropertyProxy<double>
property_width();
00126
00132 Glib::PropertyProxy<bool>
property_width_set();
00133
00139 Glib::PropertyProxy<bool>
property_width_in_pixels();
00140
00146 Glib::PropertyProxy<double>
property_height();
00147
00153 Glib::PropertyProxy<bool>
property_height_set();
00154
00160 Glib::PropertyProxy<bool>
property_height_in_pixels();
00161
00167 Glib::PropertyProxy<double>
property_x();
00168
00174 Glib::PropertyProxy<bool>
property_x_in_pixels();
00175
00181 Glib::PropertyProxy<double>
property_y();
00182
00188 Glib::PropertyProxy<bool>
property_y_in_pixels();
00189
00195 Glib::PropertyProxy<Gtk::AnchorType>
property_anchor();
00196
00197
00198 };
00199
00200 }
00201 }
00202
00203
namespace Glib
00204 {
00206
Gnome::Canvas::Pixbuf* wrap(GnomeCanvasPixbuf* object,
bool take_copy =
false);
00207 }
00208
#endif
00209