{
state: "default" 0.0;
align: 0.0 0.0;
- max: 200 48;
+ max: 220 48;
rel1
{
relative: 1.0 0.0;
{
state: "default" 0.0;
align: 0.0 0.0;
- max: 200 48;
+ max: 220 48;
rel1
{
relative: 1.0 0.0;
elm_spinner_step_set(ad->edje_object_scale, 10);
evas_object_show(ad->edje_object_scale);
elm_spinner_value_set(ad->edje_object_scale, 100);
-elm_object_part_content_set(ad->main_layout, "scale.swallow2", ad->edje_scale);</pre>
+elm_object_part_content_set(ad->main_layout, "scale.swallow2", ad->edje_object_scale);</pre>
</li>
<li><p>Display the window:</p>
<ol>
<li>
-<p>Add a callback for the second spinner that changes Edje global scale value and, as a result, affects all loaded Edje objects:</p>
+<p>Add a callback for the first spinner that changes Edje global scale value and, as a result, affects all loaded Edje objects:</p>
<pre class="prettyprint">static void
create_base_gui(appdata_s *ad)
{
// Add scale spinners
- ad->edje_object_scale = elm_spinner_add(ad->win);
- evas_object_size_hint_weight_set(ad->edje_object_scale, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_size_hint_align_set(ad->edje_object_scale, EVAS_HINT_FILL, EVAS_HINT_FILL);
- elm_spinner_min_max_set(ad->edje_object_scale, 1, 300);
- elm_spinner_step_set(ad->edje_object_scale, 10);
- evas_object_show(ad->edje_object_scale);
- elm_spinner_value_set(ad->edje_object_scale, 100);
- elm_object_part_content_set(ad->main_layout, "scale.swallow2", ad->edje_object_scale);
+ ad->edje_scale = elm_spinner_add(ad->win);
+ evas_object_size_hint_weight_set(ad->edje_scale, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_align_set(ad->edje_scale, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ elm_spinner_min_max_set(ad->edje_scale, 1, 300);
+ elm_spinner_step_set(ad->edje_scale, 10);
+ evas_object_show(ad->edje_scale);
+ elm_spinner_value_set(ad->edje_scale, 100);
+ elm_object_part_content_set(ad->main_layout, "scale.swallow", ad->edje_scale);
- evas_object_smart_callback_add(ad->edje_object_scale, "changed", _on_global_scale_change, ad);
+ evas_object_smart_callback_add(ad->edje_scale, "changed", _on_global_scale_change, ad);
}</pre>
</li>
<h2 id="set" name="set">Setting Scales for Edje Objects</h2>
-<p>Add a callback to get the value of the first spinner and apply it to the Edje object on the right:</p>
+<p>Add a callback to get the value of the second spinner and apply it to the Edje object on the right:</p>
<pre class="prettyprint">static void
_on_scale_change(void *data, Evas_Object *obj, void *event_info)
create_base_gui(appdata_s *ad)
{
// Add scale spinners
- ad->edje_scale = elm_spinner_add(ad->win);
- evas_object_size_hint_weight_set(ad->edje_scale, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_size_hint_align_set(ad->edje_scale, EVAS_HINT_FILL, EVAS_HINT_FILL);
- elm_spinner_min_max_set(ad->edje_scale, 1, 300);
- elm_spinner_step_set(ad->edje_scale, 10);
- evas_object_show(ad->edje_scale);
- elm_spinner_value_set(ad->edje_scale, 100);
- elm_object_part_content_set(ad->main_layout, "scale.swallow", ad->edje_scale);
- evas_object_smart_callback_add(ad->edje_scale, "changed", _on_scale_change, ad);
+ ad->edje_object_scale = elm_spinner_add(ad->win);
+ evas_object_size_hint_weight_set(ad->edje_object_scale, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_align_set(ad->edje_object_scale, EVAS_HINT_FILL, EVAS_HINT_FILL);
+ elm_spinner_min_max_set(ad->edje_object_scale, 1, 300);
+ elm_spinner_step_set(ad->edje_object_scale, 10);
+ evas_object_show(ad->edje_object_scale);
+ elm_spinner_value_set(ad->edje_object_scale, 100);
+ elm_object_part_content_set(ad->main_layout, "scale.swallow2", ad->edje_object_scale);
+ evas_object_smart_callback_add(ad->edje_object_scale, "changed", _on_scale_change, ad);
}</pre>
{
state: "default" 0.0;
align: 0.0 0.0;
- max: 200 48;
+ max: 220 48;
rel1
{
relative: 1.0 0.0;
{
state: "default" 0.0;
align: 0.0 0.0;
- max: 200 48;
+ max: 220 48;
rel1
{
relative: 1.0 0.0;