+/*
+ * call-seq:
+ * text.style => integer
+ *
+ * Returns the style of <i>text</i>.
+ */
+static VALUE c_style_get (VALUE self)
+{
+ GET_OBJ (self, RbEvasObject, e);
+
+ return INT2FIX (evas_object_text_style_get (e->real));
+}
+
+/*
+ * call-seq:
+ * text.style = integer
+ *
+ * Sets the style of <i>text</i>.
+ */
+static VALUE c_style_set (VALUE self, VALUE val)
+{
+ GET_OBJ (self, RbEvasObject, e);
+
+ Check_Type (val, T_FIXNUM);
+
+ evas_object_text_style_set (e->real, FIX2INT (val));
+
+ return Qnil;
+}
+
+static VALUE c_style_pad_get (VALUE self)
+{
+ int l = 0, r = 0, t = 0, b = 0;
+
+ GET_OBJ (self, RbEvasObject, e);
+
+ evas_object_text_style_pad_get (e->real, &l, &r, &t, &b);
+
+ return rb_ary_new3 (4,
+ INT2FIX (l), INT2FIX (r),
+ INT2FIX (r), INT2FIX (b));
+}
+
+/*
+ * call-seq:
+ * e.get_shadow_color => array
+ *
+ * Returns the shadow color of <i>e</i>.
+ *
+ * e.set_shadow_color(128, 128, 128, 0) #=> nil
+ * e.get_shadow_color #=> [128, 128, 128, 0]
+ */
+static VALUE c_get_shadow_color (VALUE self)
+{
+ GET_COLOR_METHOD (shadow);
+}
+
+/*
+ * call-seq:
+ * e.set_shadow_color(r, g, b, a) => nil
+ *
+ * Sets the shadow color of <i>e</i>.
+ *
+ * e.set_shadow_color(128, 128, 128, 0) #=> nil
+ */
+static VALUE c_set_shadow_color (VALUE self,
+ VALUE r, VALUE g, VALUE b, VALUE a)
+{
+ SET_COLOR_METHOD (shadow);
+}
+
+/*
+ * call-seq:
+ * e.get_glow_color => array
+ *
+ * Returns the glow color of <i>e</i>.
+ *
+ * e.set_glow_color(128, 128, 128, 0) #=> nil
+ * e.get_glow_color #=> [128, 128, 128, 0]
+ */
+static VALUE c_get_glow_color (VALUE self)
+{
+ GET_COLOR_METHOD (glow);
+}
+
+/*
+ * call-seq:
+ * e.set_glow_color(r, g, b, a) => nil
+ *
+ * Sets the glow color of <i>e</i>.
+ *
+ * e.set_glow_color(128, 128, 128, 0) #=> nil
+ */
+static VALUE c_set_glow_color (VALUE self,
+ VALUE r, VALUE g, VALUE b, VALUE a)
+{
+ SET_COLOR_METHOD (glow);
+}
+
+/*
+ * call-seq:
+ * e.get_glow2_color => array
+ *
+ * Returns the glow2 color of <i>e</i>.
+ *
+ * e.set_glow2_color(128, 128, 128, 0) #=> nil
+ * e.get_glow2_color #=> [128, 128, 128, 0]
+ */
+static VALUE c_get_glow2_color (VALUE self)
+{
+ GET_COLOR_METHOD (glow2);
+}
+
+/*
+ * call-seq:
+ * e.set_glow2_color(r, g, b, a) => nil
+ *
+ * Sets the glow2 color of <i>e</i>.
+ *
+ * e.set_glow2_color(128, 128, 128, 0) #=> nil
+ */
+static VALUE c_set_glow2_color (VALUE self,
+ VALUE r, VALUE g, VALUE b, VALUE a)
+{
+ SET_COLOR_METHOD (glow2);
+}
+
+/*
+ * call-seq:
+ * e.get_outline_color => array
+ *
+ * Returns the outline color of <i>e</i>.
+ *
+ * e.set_outline_color(128, 128, 128, 0) #=> nil
+ * e.get_outline_color #=> [128, 128, 128, 0]
+ */
+static VALUE c_get_outline_color (VALUE self)
+{
+ GET_COLOR_METHOD (outline);
+}
+
+/*
+ * call-seq:
+ * e.set_outline_color(r, g, b, a) => nil
+ *
+ * Sets the outline color of <i>e</i>.
+ *
+ * e.set_outline_color(128, 128, 128, 0) #=> nil
+ */
+static VALUE c_set_outline_color (VALUE self,
+ VALUE r, VALUE g, VALUE b, VALUE a)
+{
+ SET_COLOR_METHOD (outline);
+}
+
+static VALUE c_ascent_get (VALUE self)
+{
+ GET_OBJ (self, RbEvasObject, e);
+
+ return INT2FIX ((int) evas_object_text_ascent_get (e->real));
+}
+
+static VALUE c_descent_get (VALUE self)
+{
+ GET_OBJ (self, RbEvasObject, e);
+
+ return INT2FIX ((int) evas_object_text_descent_get (e->real));
+}
+
+static VALUE c_max_ascent_get (VALUE self)
+{
+ GET_OBJ (self, RbEvasObject, e);
+
+ return INT2FIX ((int) evas_object_text_max_ascent_get (e->real));
+}
+
+static VALUE c_max_descent_get (VALUE self)
+{
+ GET_OBJ (self, RbEvasObject, e);
+
+ return INT2FIX ((int) evas_object_text_max_descent_get (e->real));
+}
+
+static VALUE c_advance_get (VALUE self)
+{
+ int h = 0, v = 0;
+
+ GET_OBJ (self, RbEvasObject, e);
+
+ h = (int) evas_object_text_horiz_advance_get (e->real);
+ v = (int) evas_object_text_vert_advance_get (e->real);
+
+ return rb_ary_new3 (2, INT2FIX (h), INT2FIX (v));
+}
+
+static VALUE c_inset_get (VALUE self)
+{
+ GET_OBJ (self, RbEvasObject, e);
+
+ return INT2FIX ((int) evas_object_text_inset_get (e->real));
+}
+