1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#include <Ecore_Evas.h>
#include <Ecore.h>
#define WIDTH 400
#define HEIGHT 400
Ecore_Evas * ee;
Evas * evas;
Evas_Object * base_rect;
int main(int argc, char** argv)
{
if (argc < 2)
exit (-1);
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, atoi (argv[1]));
ecore_evas_show(ee);
evas = ecore_evas_get(ee);
evas_font_path_append(evas, "fonts/");
base_rect = evas_object_rectangle_add(evas);
evas_object_resize(base_rect, (double)WIDTH, (double)HEIGHT);
evas_object_color_set(base_rect, 244, 243, 242, 255);
evas_object_show(base_rect);
/* Insert Object Here */
ecore_main_loop_begin();
return 0;
}
|