From a3b80d07bc180dfbf2679930b0137321ff0b477f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 7 Dec 2011 01:34:32 +0000 Subject: More work towards making the canvas usable via the C API only. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@3823 a436a847-0d15-0410-975c-d299462d15a1 --- ganv/Canvas.hpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'ganv/Canvas.hpp') diff --git a/ganv/Canvas.hpp b/ganv/Canvas.hpp index 54118aa..91427bf 100644 --- a/ganv/Canvas.hpp +++ b/ganv/Canvas.hpp @@ -121,11 +121,8 @@ public: /** Shift all canvas contents so the top-left object is at (x, y). */ void move_contents_to(double x, double y); - /** Return the width of the canvas. */ - double width() const; - - /** Return the height of the canvas. */ - double height() const; + RW_PROPERTY(double, width) + RW_PROPERTY(double, height) /** Resize the canvas to the given dimensions. */ void resize(double width, double height); @@ -190,8 +187,8 @@ public: GanvCanvas* gobj(); const GanvCanvas* gobj() const; - /** Canvas event handler. */ - virtual bool on_event(GdkEvent* event); + sigc::signal signal_connect; + sigc::signal signal_disconnect; /** Signal emitted when the mouse pointer enters an Item. */ sigc::signal signal_item_entered; -- cgit v1.2.1