summaryrefslogtreecommitdiff
path: root/src/lib/efl/cxx/efl_part_impl.hh
blob: f40292c6e02ac51d4820bb6c3e2d9adb15fb47c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef EFL_PART_MANUAL_IMPL_HH
#define EFL_PART_MANUAL_IMPL_HH

#define EOLIAN_CXX_EFL_PART_DECLARATION \
   ::efl::Object part(::efl::eina::string_view const& name) const;

#define EOLIAN_CXX_EFL_PART_IMPLEMENTATION \
inline ::efl::Object Part::part(::efl::eina::string_view const& name) const \
{ \
   ::Eo *handle = ::efl_part(_eo_ptr(), name.c_str()); \
   ::efl_auto_unref_set(handle, false); \
   return ::efl::Object{handle}; \
}

#endif