[cluttermm] Actor: Add get/set_background_color().



commit 030a270a9e03635df3361a4014dc0557b7af6575
Author: Ian Martin <martin_id vodafone co nz>
Date:   Tue Mar 25 11:33:39 2014 +0100

    Actor: Add get/set_background_color().
    
    These changes are part of a patch in bug #725125 .

 clutter/src/actor.ccg |    9 +++++++++
 clutter/src/actor.hg  |    8 ++++++++
 2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/clutter/src/actor.ccg b/clutter/src/actor.ccg
index 4bef621..47d3b22 100644
--- a/clutter/src/actor.ccg
+++ b/clutter/src/actor.ccg
@@ -103,6 +103,15 @@ void Actor::set_margins(float top, float left, float bottom, float right)
   set_margin_right(right);
 }
 
+Color Actor::get_background_color() const
+{
+  Color result;
+  clutter_actor_get_background_color(const_cast<ClutterActor*>(gobj()), result.gobj());
+  return result;
+}
+
+  _IGNORE(clutter_actor_get_background_color)
+
 // Glib::RefPtr<Animation>
 // Actor::animate(gulong mode, guint duration, const std::map<std::string, Glib::ValueBase>& properties)
 // {
diff --git a/clutter/src/actor.hg b/clutter/src/actor.hg
index 9bb6fde..5617f5a 100644
--- a/clutter/src/actor.hg
+++ b/clutter/src/actor.hg
@@ -166,6 +166,14 @@ _DEPRECATE_IFDEF_END
   _WRAP_METHOD(Gravity get_z_rotation_gravity() const, clutter_actor_get_z_rotation_gravity, deprecated "Use 
the “pivot-point” instead of a Gravity.")
   _WRAP_METHOD(void set_opacity(guint8 opacity), clutter_actor_set_opacity)
   _WRAP_METHOD(guint8 get_opacity() const, clutter_actor_get_opacity)
+
+  _WRAP_METHOD(void set_background_color(const Color& color), clutter_actor_set_background_color)
+
+  /** Retrieves the color set using set_background_color().
+   */
+  Color get_background_color() const;
+  _IGNORE(clutter_actor_get_background_color)
+
   _WRAP_METHOD(void set_name(const gchar *name), clutter_actor_set_name)
   _WRAP_METHOD(Glib::ustring get_name() const, clutter_actor_get_name)
   _WRAP_METHOD(guint32 get_gid() const, clutter_actor_get_gid)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]