forked from enlightenment/efl
parent
80b3550c38
commit
3c5dcbbffe
|
@ -247,7 +247,7 @@ collections {
|
||||||
text: "This is a longer test string";
|
text: "This is a longer test string";
|
||||||
text_class: "plainjane";
|
text_class: "plainjane";
|
||||||
font: "Vera";
|
font: "Vera";
|
||||||
size: 6;
|
size: 10;
|
||||||
// fit: 0 1;
|
// fit: 0 1;
|
||||||
// min: 1 1;
|
// min: 1 1;
|
||||||
align: 0.0 0.5;
|
align: 0.0 0.5;
|
||||||
|
@ -583,7 +583,7 @@ collections {
|
||||||
get_text_class("plainjane", font, size);
|
get_text_class("plainjane", font, size);
|
||||||
snprintf(buf, 256, "%s SIZE: %f", font, size);
|
snprintf(buf, 256, "%s SIZE: %f", font, size);
|
||||||
emit("DEBUG...", buf);
|
emit("DEBUG...", buf);
|
||||||
set_text_class("plainjane", "Vera Bold", 8.0);
|
set_text_class("plainjane", "Vera Bold", 10.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
program {
|
program {
|
||||||
|
@ -605,7 +605,7 @@ collections {
|
||||||
snprintf(buf, 256, "**Mouse at** x: %i y: %i\n", w, h);
|
snprintf(buf, 256, "**Mouse at** x: %i y: %i\n", w, h);
|
||||||
emit("DEBUG...", buf);
|
emit("DEBUG...", buf);
|
||||||
set_color_class("bg", 255, 255, 255, 255);
|
set_color_class("bg", 255, 255, 255, 255);
|
||||||
set_text_class("plainjane", "Vera", 6.0);
|
set_text_class("plainjane", "Vera", 8.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
program {
|
program {
|
||||||
|
|
|
@ -582,7 +582,7 @@ test_list(char *file)
|
||||||
evas_object_color_set(o, 0, 0, 0, 255);
|
evas_object_color_set(o, 0, 0, 0, 255);
|
||||||
snprintf(buf, sizeof(buf), "Collections: %s", file);
|
snprintf(buf, sizeof(buf), "Collections: %s", file);
|
||||||
evas_object_text_text_set(o, buf);
|
evas_object_text_text_set(o, buf);
|
||||||
evas_object_text_font_set(o, "Vera", 9);
|
evas_object_text_font_set(o, "Vera", 8);
|
||||||
evas_object_pass_events_set(o, 1);
|
evas_object_pass_events_set(o, 1);
|
||||||
evas_object_geometry_get(o, NULL, NULL, &w, &h);
|
evas_object_geometry_get(o, NULL, NULL, &w, &h);
|
||||||
if (w > maxw) maxw = w;
|
if (w > maxw) maxw = w;
|
||||||
|
@ -619,7 +619,7 @@ test_list(char *file)
|
||||||
evas_object_color_set(o, 0, 0, 0, 255);
|
evas_object_color_set(o, 0, 0, 0, 255);
|
||||||
printf("%s\n", co->part);
|
printf("%s\n", co->part);
|
||||||
evas_object_text_text_set(o, co->part);
|
evas_object_text_text_set(o, co->part);
|
||||||
evas_object_text_font_set(o, "Vera", 9);
|
evas_object_text_font_set(o, "Vera", 8);
|
||||||
evas_object_pass_events_set(o, 1);
|
evas_object_pass_events_set(o, 1);
|
||||||
evas_object_geometry_get(o, NULL, NULL, &w, &h);
|
evas_object_geometry_get(o, NULL, NULL, &w, &h);
|
||||||
if (w > maxw) maxw = w;
|
if (w > maxw) maxw = w;
|
||||||
|
@ -769,7 +769,7 @@ test_setup(char *file, char *name)
|
||||||
evas_object_color_set(o, 0, 0, 0, 255);
|
evas_object_color_set(o, 0, 0, 0, 255);
|
||||||
snprintf(buf, sizeof(buf), "%s - %s", file, name);
|
snprintf(buf, sizeof(buf), "%s - %s", file, name);
|
||||||
evas_object_text_text_set(o, buf);
|
evas_object_text_text_set(o, buf);
|
||||||
evas_object_text_font_set(o, "Vera", 9);
|
evas_object_text_font_set(o, "Vera", 8);
|
||||||
evas_object_geometry_get(o, NULL, NULL, &tw, &th);
|
evas_object_geometry_get(o, NULL, NULL, &tw, &th);
|
||||||
evas_object_move(o, xx + ((ww - tw) / 2), yy + 4 + ((16 - th) / 2));
|
evas_object_move(o, xx + ((ww - tw) / 2), yy + 4 + ((16 - th) / 2));
|
||||||
evas_object_pass_events_set(o, 1);
|
evas_object_pass_events_set(o, 1);
|
||||||
|
|
Loading…
Reference in New Issue