summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2014-07-16 17:34:05 -0300
committerSavio Sena <savio@expertisesolutions.com.br>2014-07-21 20:53:12 -0300
commita1f0348e68a683408e8d36067bc717006bb21eb7 (patch)
treed1dc77f07db8bbc00879724ad5a4272242e8c9cc
parentcd4d2867242c31c1fec2dfb56187c28710b2bb81 (diff)
Added part_text_get/part_text_set and text_get/text_set to elm_button
Added part_text_get/part_text_set and text_get/text_set to elm_button to eolianized API.
-rw-r--r--src/lib/elm_button.c20
-rw-r--r--src/lib/elm_button.eo66
2 files changed, 86 insertions, 0 deletions
diff --git a/src/lib/elm_button.c b/src/lib/elm_button.c
index d9376c08f..6db3487d1 100644
--- a/src/lib/elm_button.c
+++ b/src/lib/elm_button.c
@@ -433,6 +433,26 @@ _elm_button_elm_interface_atspi_widget_action_elm_actions_get(Eo *obj EINA_UNUSE
433 return &key_actions[0]; 433 return &key_actions[0];
434} 434}
435 435
436EOLIAN const char* _elm_button_part_text_get(Eo* obj, Elm_Button_Data* pd EINA_UNUSED, const char* part)
437{
438 return elm_object_part_text_get(obj, part);
439}
440
441EOLIAN void _elm_button_part_text_set(Eo* obj, Elm_Button_Data* pd EINA_UNUSED, const char* part, const char* text)
442{
443 return elm_object_part_text_set(obj, part, text);
444}
445
446EOLIAN const char* _elm_button_text_get(Eo* obj, Elm_Button_Data* pd EINA_UNUSED)
447{
448 return _elm_button_part_text_get(obj, pd, NULL);
449}
450
451EOLIAN void _elm_button_text_set(Eo* obj, Elm_Button_Data* pd EINA_UNUSED, const char* text)
452{
453 return _elm_button_part_text_set(obj, pd, NULL, text);
454}
455
436static void 456static void
437_elm_button_class_constructor(Eo_Class *klass) 457_elm_button_class_constructor(Eo_Class *klass)
438{ 458{
diff --git a/src/lib/elm_button.eo b/src/lib/elm_button.eo
index 4e0d567fa..1b40c2d1e 100644
--- a/src/lib/elm_button.eo
+++ b/src/lib/elm_button.eo
@@ -96,6 +96,72 @@ class Elm_Button (Elm_Layout, Evas.Clickable_Interface,
96 } 96 }
97 } 97 }
98 } 98 }
99 methods {
100 part_text_set {
101 /**
102 * Set a text of an object
103 *
104 * @param obj The Elementary object
105 * @param part The text part name to set (NULL for the default part)
106 * @param text The new text of the part
107 *
108 * @note Elementary objects may have many text parts (e.g. Action Slider)
109 *
110 * @ingroup General
111 */
112 params {
113 @in const(char)* part;
114 @in const(char)* text;
115 }
116 }
117 part_text_get {
118 /**
119 * Get a text of an object
120 *
121 * @param obj The Elementary object
122 * @param part The text part name to get (NULL for the default part)
123 * @return text of the part or NULL for any error
124 *
125 * @note Elementary objects may have many text parts (e.g. Action Slider)
126 *
127 * @ingroup General
128 */
129 params {
130 @in const(char)* part;
131 }
132 return const(char)*;
133 }
134 text_set {
135 /**
136 * Set a text of an object
137 *
138 * @param obj The Elementary object
139 * @param part The text part name to set (NULL for the default part)
140 * @param text The new text of the part
141 *
142 * @note Elementary objects may have many text parts (e.g. Action Slider)
143 *
144 * @ingroup General
145 */
146 params {
147 @in const(char)* text;
148 }
149 }
150 text_get {
151 /**
152 * Get a text of an object
153 *
154 * @param obj The Elementary object
155 * @param part The text part name to get (NULL for the default part)
156 * @return text of the part or NULL for any error
157 *
158 * @note Elementary objects may have many text parts (e.g. Action Slider)
159 *
160 * @ingroup General
161 */
162 return const(char)*;
163 }
164 }
99 implements { 165 implements {
100 class.constructor; 166 class.constructor;
101 Eo.Base.constructor; 167 Eo.Base.constructor;