[cluttermm] Actor: Added get_content_box().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cluttermm] Actor: Added get_content_box().
- Date: Thu, 27 Mar 2014 09:54:58 +0000 (UTC)
commit 8c706c0953ad1cecb5bdd449866ab69be21e236f
Author: Ian Martin <martin_id vodafone co nz>
Date: Thu Mar 27 18:21:49 2014 +1300
Actor: Added get_content_box().
clutter/src/actor.ccg | 7 +++++++
clutter/src/actor.hg | 2 ++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/clutter/src/actor.ccg b/clutter/src/actor.ccg
index 67bc680..3ca0695 100644
--- a/clutter/src/actor.ccg
+++ b/clutter/src/actor.ccg
@@ -83,6 +83,13 @@ ActorBox Actor::get_allocation_box() const
return box;
}
+ActorBox Actor::get_content_box() const
+{
+ ActorBox box;
+ clutter_actor_get_content_box(const_cast<ClutterActor*>(gobj()), box.gobj());
+ return box;
+}
+
void Actor::apply_relative_transform_to_point(const Vertex& point, Vertex& vertex) const
{
clutter_actor_apply_relative_transform_to_point(const_cast<ClutterActor*>(gobj()), NULL,
const_cast<ClutterVertex*>(point.gobj()), vertex.gobj());
diff --git a/clutter/src/actor.hg b/clutter/src/actor.hg
index 3d01ff7..1267511 100644
--- a/clutter/src/actor.hg
+++ b/clutter/src/actor.hg
@@ -117,6 +117,8 @@ public:
_WRAP_METHOD(void set_content_repeat(ContentRepeat repeat), clutter_actor_set_content_repeat)
_WRAP_METHOD(ContentRepeat get_content_repeat() const, clutter_actor_get_content_repeat)
+ ActorBox get_content_box() const;
+ _IGNORE(clutter_actor_get_content_box)
#m4 dnl // Those are varargs convenience functions for C coders
_IGNORE(clutter_actor_animate, clutter_actor_animate_with_alpha, clutter_actor_animate_with_timeline)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]