X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fsimplerect.cc;h=bb69fc34ca72932efb8e534556d50e5dfd216053;hb=97b7b13ecc4e67df61f3970306151c65598fc630;hp=e2d92a08f54591ff3578224cee3f3f688f6e6351;hpb=192c6a9c1619de657602f385f92537e3c7ea5722;p=ardour.git diff --git a/gtk2_ardour/simplerect.cc b/gtk2_ardour/simplerect.cc index e2d92a08f5..bb69fc34ca 100644 --- a/gtk2_ardour/simplerect.cc +++ b/gtk2_ardour/simplerect.cc @@ -4,7 +4,6 @@ #include "simplerect_p.h" #include -/* $Id$ */ /* rect.c * @@ -33,14 +32,14 @@ namespace Canvas { 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); } @@ -57,7 +56,7 @@ namespace namespace Glib { -Gnome::Canvas::SimpleRect* wrap(GnomeCanvasRect* object, bool take_copy) +Gnome::Canvas::SimpleRect* wrap(GnomeCanvasSimpleRect* object, bool take_copy) { return dynamic_cast (Glib::wrap_auto ((GObject*)(object), take_copy)); } @@ -78,7 +77,7 @@ const Glib::Class& SimpleRect_Class::init() 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. @@ -109,14 +108,14 @@ Glib::ObjectBase* SimpleRect_Class::wrap_new(GObject* o) /* 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() { @@ -135,6 +134,88 @@ GType SimpleRect::get_base_type() return gnome_canvas_simplerect_get_type(); } +Glib::PropertyProxy SimpleRect::property_x1() +{ + return Glib::PropertyProxy (this, "x1"); +} +Glib::PropertyProxy_ReadOnly SimpleRect::property_x1() const +{ + return Glib::PropertyProxy_ReadOnly (this, "x1"); +} +Glib::PropertyProxy SimpleRect::property_y1() +{ + return Glib::PropertyProxy (this, "y1"); +} +Glib::PropertyProxy_ReadOnly SimpleRect::property_y1() const +{ + return Glib::PropertyProxy_ReadOnly (this, "y1"); +} +Glib::PropertyProxy SimpleRect::property_x2() +{ + return Glib::PropertyProxy (this, "x2"); +} +Glib::PropertyProxy_ReadOnly SimpleRect::property_x2() const +{ + return Glib::PropertyProxy_ReadOnly (this, "x2"); +} +Glib::PropertyProxy SimpleRect::property_y2() +{ + return Glib::PropertyProxy (this, "y2"); +} +Glib::PropertyProxy_ReadOnly SimpleRect::property_y2() const +{ + return Glib::PropertyProxy_ReadOnly (this, "y2"); +} +Glib::PropertyProxy SimpleRect::property_outline_pixels() +{ + return Glib::PropertyProxy (this, "outline_pixels"); +} +Glib::PropertyProxy_ReadOnly SimpleRect::property_outline_pixels() const +{ + return Glib::PropertyProxy_ReadOnly (this, "outline_pixels"); +} +Glib::PropertyProxy SimpleRect::property_outline_what() +{ + return Glib::PropertyProxy (this, "outline_what"); +} +Glib::PropertyProxy_ReadOnly SimpleRect::property_outline_what() const +{ + return Glib::PropertyProxy_ReadOnly (this, "outline_what"); +} +Glib::PropertyProxy SimpleRect::property_fill() +{ + return Glib::PropertyProxy (this, "fill"); +} +Glib::PropertyProxy_ReadOnly SimpleRect::property_fill() const +{ + return Glib::PropertyProxy_ReadOnly (this, "fill"); +} +Glib::PropertyProxy SimpleRect::property_fill_color_rgba() +{ + return Glib::PropertyProxy (this, "fill_color_rgba"); +} +Glib::PropertyProxy_ReadOnly SimpleRect::property_fill_color_rgba() const +{ + return Glib::PropertyProxy_ReadOnly (this, "fill_color_rgba"); +} +Glib::PropertyProxy SimpleRect::property_outline_color_rgba() +{ + return Glib::PropertyProxy (this, "outline_color_rgba"); +} +Glib::PropertyProxy_ReadOnly SimpleRect::property_outline_color_rgba() const +{ + return Glib::PropertyProxy_ReadOnly (this, "outline_color_rgba"); +} +Glib::PropertyProxy SimpleRect::property_draw() +{ + return Glib::PropertyProxy (this, "draw"); +} +Glib::PropertyProxy_ReadOnly SimpleRect::property_draw() const +{ + return Glib::PropertyProxy_ReadOnly (this, "draw"); +} + + } // namespace Canvas