summaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2017-01-18 22:25:02 -0200
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2017-01-18 22:47:04 -0200
commita1f2db255b22052050baf0c04bb72146b22a6e99 (patch)
tree8499c057a7a0054f75fe3ab4719b2cc3659949d5 /src/examples
parent7f148feea8275d4ae3a366e5aead8170498089a6 (diff)
cxx: Modify how to generate C++ headers and allow cyclic dependencies
Allow cyclic dependencies in generated C++ headers by changing order of includes and creating forward declarations.
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/elementary/button_cxx_example_00.cc2
-rw-r--r--src/examples/elementary/calendar_cxx_example_02.cc1
-rw-r--r--src/examples/eolian_cxx/eolian_cxx_inherit_01.cc2
-rw-r--r--src/examples/eolian_cxx/eolian_cxx_simple_01.cc2
-rw-r--r--src/examples/eolian_cxx/eolian_cxx_simple_01_cxx_impl.cc2
5 files changed, 8 insertions, 1 deletions
diff --git a/src/examples/elementary/button_cxx_example_00.cc b/src/examples/elementary/button_cxx_example_00.cc
index 99901d2..9239f74 100644
--- a/src/examples/elementary/button_cxx_example_00.cc
+++ b/src/examples/elementary/button_cxx_example_00.cc
@@ -24,7 +24,7 @@ elm_main (int argc, char *argv[])
24 win.autohide_set(true); 24 win.autohide_set(true);
25 25
26 ::elm::Button btn(win); 26 ::elm::Button btn(win);
27 btn.eo_cxx::efl::Text::text_set("Good-Bye, World!"); 27 btn.eo_cxx::elm::Layout::text_set(nullptr,"Good-Bye, World!");
28 btn.eo_cxx::efl::Gfx::size_set(120, 30); 28 btn.eo_cxx::efl::Gfx::size_set(120, 30);
29 btn.eo_cxx::efl::Gfx::position_set(60, 15); 29 btn.eo_cxx::efl::Gfx::position_set(60, 15);
30 btn.visible_set(true); 30 btn.visible_set(true);
diff --git a/src/examples/elementary/calendar_cxx_example_02.cc b/src/examples/elementary/calendar_cxx_example_02.cc
index 7061e57..02a1ede 100644
--- a/src/examples/elementary/calendar_cxx_example_02.cc
+++ b/src/examples/elementary/calendar_cxx_example_02.cc
@@ -3,6 +3,7 @@
3#include "elementary_config.h" 3#include "elementary_config.h"
4#endif 4#endif
5 5
6#include <Efl.hh>
6#include <Elementary.hh> 7#include <Elementary.hh>
7 8
8static char * 9static char *
diff --git a/src/examples/eolian_cxx/eolian_cxx_inherit_01.cc b/src/examples/eolian_cxx/eolian_cxx_inherit_01.cc
index 2fedf12..5cd6b20 100644
--- a/src/examples/eolian_cxx/eolian_cxx_inherit_01.cc
+++ b/src/examples/eolian_cxx/eolian_cxx_inherit_01.cc
@@ -8,6 +8,8 @@
8 8
9#include "ns_colourable.eo.hh" 9#include "ns_colourable.eo.hh"
10#include "ns_colourablesquare.eo.hh" 10#include "ns_colourablesquare.eo.hh"
11#include "ns_colourable.eo.impl.hh"
12#include "ns_colourablesquare.eo.impl.hh"
11 13
12#include <eo_inherit.hh> 14#include <eo_inherit.hh>
13 15
diff --git a/src/examples/eolian_cxx/eolian_cxx_simple_01.cc b/src/examples/eolian_cxx/eolian_cxx_simple_01.cc
index eb093d9..028a429 100644
--- a/src/examples/eolian_cxx/eolian_cxx_simple_01.cc
+++ b/src/examples/eolian_cxx/eolian_cxx_simple_01.cc
@@ -9,6 +9,8 @@
9 9
10#include "ns_colourable.eo.hh" 10#include "ns_colourable.eo.hh"
11#include "ns_colourablesquare.eo.hh" 11#include "ns_colourablesquare.eo.hh"
12#include "ns_colourable.eo.impl.hh"
13#include "ns_colourablesquare.eo.impl.hh"
12 14
13int 15int
14main() 16main()
diff --git a/src/examples/eolian_cxx/eolian_cxx_simple_01_cxx_impl.cc b/src/examples/eolian_cxx/eolian_cxx_simple_01_cxx_impl.cc
index 1120978..2ca0e97 100644
--- a/src/examples/eolian_cxx/eolian_cxx_simple_01_cxx_impl.cc
+++ b/src/examples/eolian_cxx/eolian_cxx_simple_01_cxx_impl.cc
@@ -9,6 +9,8 @@
9 9
10#include "colourable.eo.hh" 10#include "colourable.eo.hh"
11#include "colourablesquare.eo.hh" 11#include "colourablesquare.eo.hh"
12#include "ns_colourable.eo.impl.hh"
13#include "ns_colourablesquare.eo.impl.hh"
12 14
13int 15int
14main() 16main()