Text part in EDC file
This code snipped shows how to define TEXT part in .edc file and how to manipulate it from C code.
// TEXT part definition
part {
name: "text_example";
type: TEXT;
mouse_events: 0;
description { state: "default" 0;
align: 0 0;
color: 0 0 0 255;
rel1 {
relative: 0.2 0.2;
}
rel2 {
relative: 0.8 0.3;
}
text {
text: "YOUR TEXT HERE";
font: "Sans";
size: 25;
text_class: "my_class";
fit: 0 0;
min: 0 0;
max: 0 0;
align: 0.5 0;
elipsis: 0.0;
}
}
}
//basic operations
Evas_Object *layout = elm_layout_edje_get(ad->layout);
edje_object_part_text_set(layout, "text_example", "Hi!");
dlog_print(DLOG_ERROR, LOG_TAG, "text ");