<p>The <strong>Global</strong> button changes the text class globally, causing all Edje object parts to be changed in case they contain the <span style="font-family: Courier New,Courier,monospace">custom_text_class</span> text class.</p>
<pre class="prettyprint">
-group
-{
- name: "class_list_application";
- parts
+group
+{
+ name: "object_text_class_application";
+ parts
{
- part
- {
- name: "text_view";
- type: TEXT;
- description
- {
+ part
+ {
+ name: "bg";
+ type: RECT;
+ description
+ {
+ state: "default " 0.0;
+ }
+ }
+ part
+ {
+ name: "edje.swallow.group1";
+ type: SWALLOW;
+ description
+ {
state: "default" 0.0;
- visible: 1;
- color: 0 0 0 255;
- align: 0.5 0.0;
- text
- {
- text: "text part number 3";
- font: "Sans";
- min: 1 1;
- max: 1 1;
- size: 20;
- }
+ rel1.relative: 0.02 0.1;
+ rel2.relative: 0.3 0.2;
}
}
- part
- {
- name: "edje.swallow.list";
+ part
+ {
+ name: "edje.swallow.group2";
type: SWALLOW;
- description
- {
+ description
+ {
state: "default" 0.0;
- align: 0.5 0.0;
+ rel1.relative: 0.5 0.1;
+ rel2.relative: 0.77 0.2;
+ }
+ }
+ part
+ {
+ name: "edje.swallow.spinner";
+ type: SWALLOW;
+ description
+ {
+ state: "default" 0.0;
+ rel1.relative: 0.2 0.2;
+ rel2.relative: 0.9 0.35;
+ }
+ }
+ part
+ {
+ name: "edje.swallow.buttons";
+ type: SWALLOW;
+ description
+ {
+ state: "default" 0.0;
+ rel1.relative: 0.0 0.9;
+ rel2.relative: 1.0 1.0;
+ }
+ }
+ part
+ {
+ name: "text_spin";
+ type: TEXT;
+ scale: 1;
+ description
+ {
+ state: "default" 0.0;
+ visible: 1;
color: 0 0 0 255;
- rel1
+ rel1.relative: 0.0 0.2;
+ rel2.relative: 0.2 0.35;
+ text
{
- relative: 0.0 1.0;
- to_y: "text_view";
+ text: "Font Size";
+ font: "Sans";
+ align: 0.0 0.5;
+ size: 13;
}
+ }
}
}
}
button = elm_button_add(ad->gui2_layout);
evas_object_size_hint_align_set(button, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(button, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_object_text_set(button, Set1);
+ elm_object_text_set(button, "Set1");
evas_object_show(button);
evas_object_smart_callback_add(button, "clicked", _edje_object_text_class_set_1, ad);
elm_box_pack_end(box, button);
button = elm_button_add(ad->gui2_layout);
evas_object_size_hint_align_set(button, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(button, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_object_text_set(button, Set2);
+ elm_object_text_set(button, "Set2");
evas_object_show(button);
evas_object_smart_callback_add(button, "clicked", _edje_object_text_class_set_2, ad);
elm_box_pack_end(box, button);
button = elm_button_add(ad->gui2_layout);
evas_object_size_hint_align_set(button, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(button, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_object_text_set(button, Get1);
- evas_object_show(button);
+ elm_object_text_set(button, "Get1");
+ evas_object_show(button);
evas_object_smart_callback_add(button, "clicked", _edje_object_text_class_get_1, ad);
elm_box_pack_end(box, button);
button = elm_button_add(ad->gui2_layout);
evas_object_size_hint_align_set(button, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_size_hint_weight_set(button, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_object_text_set(button, Get2);
+ elm_object_text_set(button, "Get2");
evas_object_show(button);
evas_object_smart_callback_add(button, "clicked", _edje_object_text_class_get_2, ad);
elm_box_pack_end(box, button);