#include "simplerect_p.h"
#include <libgnomecanvasmm/private/shape_p.h>
-/* $Id$ */
/* rect.c
*
{
SimpleRect::SimpleRect(Group& parentx, double x1, double y1, double x2, double y2)
-: Shape(GNOME_CANVAS_SHAPE(g_object_new(get_type(),0)))
+: Item(GNOME_CANVAS_ITEM(g_object_new(get_type(),0)))
{
item_construct(parentx);
set("x1",x1,"y1",y1,"x2",x2,"y2",y2,0);
}
SimpleRect::SimpleRect(Group& parentx)
-: Shape(GNOME_CANVAS_SHAPE(g_object_new(get_type(),0)))
+: Item(GNOME_CANVAS_ITEM(g_object_new(get_type(),0)))
{
item_construct(parentx);
}
namespace Glib
{
-Gnome::Canvas::SimpleRect* wrap(GnomeCanvasRect* object, bool take_copy)
+Gnome::Canvas::SimpleRect* wrap(GnomeCanvasSimpleRect* object, bool take_copy)
{
return dynamic_cast<Gnome::Canvas::SimpleRect *> (Glib::wrap_auto ((GObject*)(object), take_copy));
}
if(!gtype_) // create the GType if necessary
{
// Glib::Class has to know the class init function to clone custom types.
- class_init_func_ = &Shape_Class::class_init_function;
+ class_init_func_ = &SimpleRect_Class::class_init_function;
// This is actually just optimized away, apparently with no harm.
// Make sure that the parent type has been created.
/* The implementation: */
SimpleRect::SimpleRect(const Glib::ConstructParams& construct_params)
-: Shape(construct_params)
+: Item(construct_params)
{
}
SimpleRect::SimpleRect(GnomeCanvasSimpleRect* castitem)
-: Shape ((GnomeCanvasShape*)(castitem))
+: Item ((GnomeCanvasItem*)(castitem))
{
- }
+}
SimpleRect::~SimpleRect()
{
return gnome_canvas_simplerect_get_type();
}
+Glib::PropertyProxy<double> SimpleRect::property_x1()
+{
+ return Glib::PropertyProxy<double> (this, "x1");
+}
+Glib::PropertyProxy_ReadOnly<double> SimpleRect::property_x1() const
+{
+ return Glib::PropertyProxy_ReadOnly<double> (this, "x1");
+}
+Glib::PropertyProxy<double> SimpleRect::property_y1()
+{
+ return Glib::PropertyProxy<double> (this, "y1");
+}
+Glib::PropertyProxy_ReadOnly<double> SimpleRect::property_y1() const
+{
+ return Glib::PropertyProxy_ReadOnly<double> (this, "y1");
+}
+Glib::PropertyProxy<double> SimpleRect::property_x2()
+{
+ return Glib::PropertyProxy<double> (this, "x2");
+}
+Glib::PropertyProxy_ReadOnly<double> SimpleRect::property_x2() const
+{
+ return Glib::PropertyProxy_ReadOnly<double> (this, "x2");
+}
+Glib::PropertyProxy<double> SimpleRect::property_y2()
+{
+ return Glib::PropertyProxy<double> (this, "y2");
+}
+Glib::PropertyProxy_ReadOnly<double> SimpleRect::property_y2() const
+{
+ return Glib::PropertyProxy_ReadOnly<double> (this, "y2");
+}
+Glib::PropertyProxy<guint> SimpleRect::property_outline_pixels()
+{
+ return Glib::PropertyProxy<guint> (this, "outline_pixels");
+}
+Glib::PropertyProxy_ReadOnly<guint> SimpleRect::property_outline_pixels() const
+{
+ return Glib::PropertyProxy_ReadOnly<guint> (this, "outline_pixels");
+}
+Glib::PropertyProxy<guint> SimpleRect::property_outline_what()
+{
+ return Glib::PropertyProxy<guint> (this, "outline_what");
+}
+Glib::PropertyProxy_ReadOnly<guint> SimpleRect::property_outline_what() const
+{
+ return Glib::PropertyProxy_ReadOnly<guint> (this, "outline_what");
+}
+Glib::PropertyProxy<bool> SimpleRect::property_fill()
+{
+ return Glib::PropertyProxy<bool> (this, "fill");
+}
+Glib::PropertyProxy_ReadOnly<bool> SimpleRect::property_fill() const
+{
+ return Glib::PropertyProxy_ReadOnly<bool> (this, "fill");
+}
+Glib::PropertyProxy<guint> SimpleRect::property_fill_color_rgba()
+{
+ return Glib::PropertyProxy<guint> (this, "fill_color_rgba");
+}
+Glib::PropertyProxy_ReadOnly<guint> SimpleRect::property_fill_color_rgba() const
+{
+ return Glib::PropertyProxy_ReadOnly<guint> (this, "fill_color_rgba");
+}
+Glib::PropertyProxy<guint> SimpleRect::property_outline_color_rgba()
+{
+ return Glib::PropertyProxy<guint> (this, "outline_color_rgba");
+}
+Glib::PropertyProxy_ReadOnly<guint> SimpleRect::property_outline_color_rgba() const
+{
+ return Glib::PropertyProxy_ReadOnly<guint> (this, "outline_color_rgba");
+}
+Glib::PropertyProxy<bool> SimpleRect::property_draw()
+{
+ return Glib::PropertyProxy<bool> (this, "draw");
+}
+Glib::PropertyProxy_ReadOnly<bool> SimpleRect::property_draw() const
+{
+ return Glib::PropertyProxy_ReadOnly<bool> (this, "draw");
+}
+
+
} // namespace Canvas