yakov pushed a commit to branch master.

http://git.enlightenment.org/tools/erigo.git/commit/?id=65d314f0415945edac199a136c41f014f9e45a15

commit 65d314f0415945edac199a136c41f014f9e45a15
Author: Yakov Goldberg <[email protected]>
Date:   Mon Jan 19 13:31:42 2015 +0200

    Add demo_project example
---
 examples/demo_project/demo.egui       |  81 ++++++++++++++++++++++++++++++++++
 examples/demo_project/images/test.edj | Bin 0 -> 207813 bytes
 examples/demo_project/images/tux.png  | Bin 0 -> 900941 bytes
 examples/demo_project/main.c          |  16 +++++++
 4 files changed, 97 insertions(+)

diff --git a/examples/demo_project/demo.egui b/examples/demo_project/demo.egui
new file mode 100644
index 0000000..8595599
--- /dev/null
+++ b/examples/demo_project/demo.egui
@@ -0,0 +1,81 @@
+{
+  "JSON_Version":"2",
+  "Settings":
+  {
+    "project":"demo",
+    "images_prefix":"IMAGES_PREFIX",
+    "start_points":["elm_win1"]
+  },
+  "Resources":
+  {
+    "Images":
+    {
+      "tux":"images/tux.png"
+    },
+    "Edjes":
+    {
+      "edje":["images/test.edj", ""]
+    }
+  },
+  "Widgets":
+  {
+    "elm_win1":
+    {
+      "Desc":
+      {
+        "parent":null,
+        "class":"Elm_Win"
+      },
+      "Properties":
+      {
+        "Elm_Win.constructor":[null, "ELM_WIN_BASIC"],
+        "Elm_Win.title":["elm_win1"],
+        "Evas.Object.size_hint_weight":[1, 1],
+        "Evas.Object.visibility":[true],
+        "Evas.Object.size":[383, 442],
+        "Elm_Win.autodel":[true]
+      },
+      "Contains":["elm_layout1"]
+    },
+    "elm_win1_main_menu":
+    {
+      "Desc":
+      {
+        "parent":"elm_win1",
+        "class":"Elm_Menu"
+      }
+    },
+    "elm_image1":
+    {
+      "Desc":
+      {
+        "parent":"elm_win1",
+        "class":"Elm_Image",
+        "public":true
+      },
+      "Properties":
+      {
+        "Evas.Object.size_hint_weight":[1, 1],
+        "Evas.Object.visibility":[true],
+        "Evas.Object.size":[147, 137],
+        "Efl.File.file":["tux", null],
+        "Evas.Object.position":[114, 139]
+      }
+    },
+    "elm_layout1":
+    {
+      "Desc":
+      {
+        "parent":"elm_win1",
+        "class":"Elm_Layout"
+      },
+      "Properties":
+      {
+        "Evas.Object.size_hint_weight":[1, 1],
+        "Evas.Object.visibility":[true],
+        "Evas.Object.position":[205, 379],
+        "Efl.File.file":["edje", "layout"]
+      }
+    }
+  }
+ }
\ No newline at end of file
diff --git a/examples/demo_project/images/test.edj 
b/examples/demo_project/images/test.edj
new file mode 100644
index 0000000..005ff30
Binary files /dev/null and b/examples/demo_project/images/test.edj differ
diff --git a/examples/demo_project/images/tux.png 
b/examples/demo_project/images/tux.png
new file mode 100644
index 0000000..3c1958c
Binary files /dev/null and b/examples/demo_project/images/tux.png differ
diff --git a/examples/demo_project/main.c b/examples/demo_project/main.c
new file mode 100644
index 0000000..07eab85
--- /dev/null
+++ b/examples/demo_project/main.c
@@ -0,0 +1,16 @@
+//gcc -o start main.c demo.c `pkg-config --cflags --libs elementary` 
-DEFL_BETA_API_SUPPORT -DIMAGES_PREFIX=\"./images\"
+
+#include <Elementary.h>
+#include "demo.h"
+
+EAPI_MAIN int
+elm_main(int arg, char **argv)
+{
+   Demo_Widgets *wdgs = demo_gui_get();
+   elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
+   elm_run();
+   elm_shutdown();
+   return 0;
+}
+
+ELM_MAIN()

-- 


Reply via email to