Hello All!
I was really impressed from Enlightenment from screenshots so I decided
to try it.
I downloaded all important libraries from CVS (yesterday-Tuesday) and
installed everything without a problem.
E17 is now my main window manager and so far I have to say
that I am really pleased.
Next I decided to play with EVAS programming a bit
but I have a problem with the text object.
I have attached a minimal .c file which shows this.
The rectangle object shows up correctly but the text object does not.
I compile with:
gcc `ecore-config --libs --cflags` ecore-test.c -g -o ecore-test
I know that it is my fault that it doesn't run.
All library tests (ecore and evas) run correctly and show up text
normally.
I opened their code and saw how they do it but I don't see anything missing.
I tried to play with layers (in case my text was covered by the background).
This did not work. I even removed the background completely but the text still
does not show. The rectangle is always present though.
What drives me crazy is that I suspect that the problem is trivial
and I missing something that you guys would laugh at!!
Please enlighten me!!
Keep up the good work.
#include <stdio.h>
#include <Ecore_Evas.h>
#include <Ecore.h>
#define WIDTH 400
#define HEIGHT 400
Ecore_Evas *ee;
Evas *evas;
Evas_Object *base_rect;
Evas_Object *o;
int main()
{
ecore_init();
ee = ecore_evas_software_x11_new(NULL, 0, 0, 0, WIDTH, HEIGHT);
ecore_evas_title_set(ee,"Ecore Evas Template");
ecore_evas_borderless_set(ee,0);
evas=ecore_evas_get(ee);
base_rect=evas_object_rectangle_add(evas);
evas_object_resize(base_rect,100,100);
evas_object_color_set(base_rect, 255,0,255, 255);
evas_object_move(base_rect,300,300);
evas_object_show(base_rect);
o = evas_object_text_add(evas);
evas_object_text_text_set(o,"Print this damn text");
evas_object_color_set(o, 255,0,255, 255);
evas_object_move(o,100,100);
evas_object_show(o);
ecore_evas_show(ee);
ecore_main_loop_begin();
return 0;
}