[cluttermm] Actor: Add the remaining signals.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cluttermm] Actor: Add the remaining signals.
- Date: Thu, 10 Apr 2014 08:09:55 +0000 (UTC)
commit 4b34edc547a6adbabfc6df49ea9d3b8939ce23cc
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Apr 10 10:08:16 2014 +0200
Actor: Add the remaining signals.
* clutter/src/actor.hg: Add the touch_event, transitions_completed,
and transition_stopped signals.
* clutter/src/clutter_signals.defs: Correct the ClutterActor::touch_event()
parameter type.
clutter/src/actor.hg | 7 +++++++
clutter/src/clutter_signals.defs | 2 +-
2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/clutter/src/actor.hg b/clutter/src/actor.hg
index 09ad905..472dffa 100644
--- a/clutter/src/actor.hg
+++ b/clutter/src/actor.hg
@@ -485,6 +485,13 @@ _DEPRECATE_IFDEF_END
#m4 _CONVERSION(`ClutterActorBox*', `const ActorBox&', `ActorBox(const_cast<ClutterActorBox*>($3))')
_WRAP_SIGNAL(void allocation_changed(const ActorBox& box, AllocationFlags flags), "allocation-changed",
no_default_handler)
+ //TODO: Wrap ClutterTouchEvent?
+ _WRAP_SIGNAL(bool touch_event(ClutterTouchEvent* event), "touch-event")
+
+ //TODO: There might be a default handler when clutter breaks ABI:
+ _WRAP_SIGNAL(void transitions_completed(), "transitions-completed", no_default_handler)
+ _WRAP_SIGNAL(void transition_stopped(const Glib::ustring& name, bool is_finished), "transition-stopped",
no_default_handler)
+
_WRAP_PROPERTY("allocation", ActorBox)
_WRAP_PROPERTY("anchor-x", float)
_WRAP_PROPERTY("anchor-y", float)
diff --git a/clutter/src/clutter_signals.defs b/clutter/src/clutter_signals.defs
index 728b09a..4c805d5 100644
--- a/clutter/src/clutter_signals.defs
+++ b/clutter/src/clutter_signals.defs
@@ -209,7 +209,7 @@
(return-type "gboolean")
(when "last")
(parameters
- '("ClutterEvent*" "p0")
+ '("ClutterTouchEvent*" "p0")
)
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]