[cluttermm] Clone: Derive from Container and add get_source() and property.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cluttermm] Clone: Derive from Container and add get_source() and property.
- Date: Thu, 10 Apr 2014 10:40:32 +0000 (UTC)
commit ef8c4b5451347fb288f1672277d914fdc4959fa3
Author: Ian Martin <martin_id vodafone co nz>
Date: Thu Apr 10 12:39:17 2014 +0200
Clone: Derive from Container and add get_source() and property.
Also correct get_source() to take a reference.
This is based on a patch here:
https://bugzilla.gnome.org/show_bug.cgi?id=725125#c5
clutter/src/clone.hg | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 deletions(-)
---
diff --git a/clutter/src/clone.hg b/clutter/src/clone.hg
index f31dac5..72778fb 100644
--- a/clutter/src/clone.hg
+++ b/clutter/src/clone.hg
@@ -15,33 +15,37 @@
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include <cluttermm/texture.h>
-#include <cluttermm/types.h>
+#include <cluttermm/actor.h>
+#include <cluttermm/container.h>
_DEFS(cluttermm,clutter)
_PINCLUDE(cluttermm/private/actor_p.h)
-
namespace Clutter
{
class Clone :
- public Actor
+ public Actor,
+ public Container
{
_CLASS_GOBJECT(Clone, ClutterClone, CLUTTER_CLONE, Actor, ClutterActor)
-
+ _IMPLEMENTS_INTERFACE(Container)
+ //TODO: _IMPLEMENTS_INTERFACE(Atk::Implementor)
protected:
_WRAP_CTOR(Clone(const Glib::RefPtr<Actor>& source), clutter_clone_new)
public:
-#m4 _CONVERSION(`ClutterActor*',`Glib::RefPtr<Clone>',`Glib::wrap((ClutterCloneTexture*)$3)')
_WRAP_CREATE(const Glib::RefPtr<Actor>& source)
- _WRAP_METHOD(Glib::RefPtr<Actor> get_source(), clutter_clone_get_source)
- _WRAP_METHOD(Glib::RefPtr<const Actor> get_source() const, clutter_clone_get_source, refreturn)
+ _WRAP_METHOD(Glib::RefPtr<Actor> get_source(), clutter_clone_get_source, refreturn)
+ _WRAP_METHOD(Glib::RefPtr<const Actor> get_source() const, clutter_clone_get_source, refreturn,
constversion)
_WRAP_METHOD(void get_source(const Glib::RefPtr<Actor>& source), clutter_clone_set_source)
+ _WRAP_METHOD(void set_source(const Glib::RefPtr<Actor>& source), clutter_clone_set_source)
+
+ _WRAP_PROPERTY("source", Actor)
+
};
} // namespace Clutter
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]