summaryrefslogtreecommitdiff
path: root/src/lib/efl/cxx/efl_part_impl.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/efl/cxx/efl_part_impl.hh')
-rw-r--r--src/lib/efl/cxx/efl_part_impl.hh33
1 files changed, 11 insertions, 22 deletions
diff --git a/src/lib/efl/cxx/efl_part_impl.hh b/src/lib/efl/cxx/efl_part_impl.hh
index c1c99e785a..f40292c6e0 100644
--- a/src/lib/efl/cxx/efl_part_impl.hh
+++ b/src/lib/efl/cxx/efl_part_impl.hh
@@ -1,26 +1,15 @@
1//#ifndef EFL_PART_IMPL_HH 1#ifndef EFL_PART_MANUAL_IMPL_HH
2//#define EFL_PART_IMPL_HH 2#define EFL_PART_MANUAL_IMPL_HH
3 3
4namespace efl { 4#define EOLIAN_CXX_EFL_PART_DECLARATION \
5inline ::efl::eolian::return_traits< ::efl::Object>::type Part::part( ::efl::eolian::in_traits< ::efl::eina::string_view>::type name) const 5 ::efl::Object part(::efl::eina::string_view const& name) const;
6{
7 Eo *handle = ::efl_part(this->_eo_ptr(), name.c_str());
8 ::efl_auto_unref_set(handle, false);
9 return ::efl::Object{handle};
10}
11}
12 6
13namespace eo_cxx { 7#define EOLIAN_CXX_EFL_PART_IMPLEMENTATION \
14namespace efl { 8inline ::efl::Object Part::part(::efl::eina::string_view const& name) const \
15inline ::efl::eolian::return_traits< ::efl::Object>::type Part::part( ::efl::eolian::in_traits< ::efl::eina::string_view>::type name) const 9{ \
16{ 10 ::Eo *handle = ::efl_part(_eo_ptr(), name.c_str()); \
17 Eo *handle = ::efl_part(this->_eo_ptr(), name.c_str()); 11 ::efl_auto_unref_set(handle, false); \
18 ::efl_auto_unref_set(handle, false); 12 return ::efl::Object{handle}; \
19 return ::efl::Object{handle};
20} 13}
21inline efl::Part::operator ::efl::Part() const { return *static_cast< ::efl::Part const*>(static_cast<void const*>(this)); }
22inline efl::Part::operator ::efl::Part&() { return *static_cast< ::efl::Part*>(static_cast<void*>(this)); }
23inline efl::Part::operator ::efl::Part const&() const { return *static_cast< ::efl::Part const*>(static_cast<void const*>(this)); }
24} }
25 14
26//#endif 15#endif