#ifndef EFL_SELECTION_IMPL_HH
#define EFL_SELECTION_IMPL_HH

#include "efl_selection.eo.hh"

namespace efl { 
template <typename F>
inline ::efl::eolian::return_traits<void>::type Selection::selection_get( ::efl::eolian::in_traits<Efl_Selection_Type>::type type,  ::efl::eolian::in_traits<Efl_Selection_Format>::type format, F data_func,  ::efl::eolian::in_traits< unsigned int>::type seat) const
{
   auto fw_data_func = new ::efl::eolian::function_wrapper<Efl_Selection_Data_Ready, F>(data_func);
    ::efl_selection_get(_eo_ptr()
      ,  ::efl::eolian::convert_to_c<Efl_Selection_Type,  ::efl::eolian::in_traits<Efl_Selection_Type>::type>(type)
      ,  ::efl::eolian::convert_to_c<Efl_Selection_Format,  ::efl::eolian::in_traits<Efl_Selection_Format>::type>(format)
      , fw_data_func->data_to_c(), fw_data_func->func_to_c(), fw_data_func->free_to_c()
      ,  ::efl::eolian::convert_to_c<unsigned int,  ::efl::eolian::in_traits< unsigned int>::type>(seat));
}
inline ::efl::eolian::return_traits<void>::type Selection::selection_clear( ::efl::eolian::in_traits<Efl_Selection_Type>::type type,  ::efl::eolian::in_traits< unsigned int>::type seat) const
{
    ::efl_selection_clear(_eo_ptr()
      ,  ::efl::eolian::convert_to_c<Efl_Selection_Type,  ::efl::eolian::in_traits<Efl_Selection_Type>::type>(type)
      ,  ::efl::eolian::convert_to_c<unsigned int,  ::efl::eolian::in_traits< unsigned int>::type>(seat));
}
inline ::efl::eolian::return_traits<bool>::type Selection::has_owner( ::efl::eolian::in_traits<Efl_Selection_Type>::type type,  ::efl::eolian::in_traits< unsigned int>::type seat) const
{
   Eina_Bool __return_value =  ::efl_selection_has_owner(_eo_ptr()
      ,  ::efl::eolian::convert_to_c<Efl_Selection_Type,  ::efl::eolian::in_traits<Efl_Selection_Type>::type>(type)
      ,  ::efl::eolian::convert_to_c<unsigned int,  ::efl::eolian::in_traits< unsigned int>::type>(seat));
   return ::efl::eolian::convert_to_return< ::efl::eolian::return_traits<bool>::type>(__return_value);
}
} 
namespace eo_cxx {
namespace efl { 
template <typename F>
inline ::efl::eolian::return_traits<void>::type Selection::selection_get( ::efl::eolian::in_traits<Efl_Selection_Type>::type type,  ::efl::eolian::in_traits<Efl_Selection_Format>::type format, F data_func,  ::efl::eolian::in_traits< unsigned int>::type seat) const
{
   auto fw_data_func = new ::efl::eolian::function_wrapper<Efl_Selection_Data_Ready, F>(data_func);
    ::efl_selection_get(_eo_ptr()
      ,  ::efl::eolian::convert_to_c<Efl_Selection_Type,  ::efl::eolian::in_traits<Efl_Selection_Type>::type>(type)
      ,  ::efl::eolian::convert_to_c<Efl_Selection_Format,  ::efl::eolian::in_traits<Efl_Selection_Format>::type>(format)
      , fw_data_func->data_to_c(), fw_data_func->func_to_c(), fw_data_func->free_to_c()
      ,  ::efl::eolian::convert_to_c<unsigned int,  ::efl::eolian::in_traits< unsigned int>::type>(seat));
}
inline ::efl::eolian::return_traits<void>::type Selection::selection_clear( ::efl::eolian::in_traits<Efl_Selection_Type>::type type,  ::efl::eolian::in_traits< unsigned int>::type seat) const
{
    ::efl_selection_clear(_eo_ptr()
      ,  ::efl::eolian::convert_to_c<Efl_Selection_Type,  ::efl::eolian::in_traits<Efl_Selection_Type>::type>(type)
      ,  ::efl::eolian::convert_to_c<unsigned int,  ::efl::eolian::in_traits< unsigned int>::type>(seat));
}
inline ::efl::eolian::return_traits<bool>::type Selection::has_owner( ::efl::eolian::in_traits<Efl_Selection_Type>::type type,  ::efl::eolian::in_traits< unsigned int>::type seat) const
{
   Eina_Bool __return_value =  ::efl_selection_has_owner(_eo_ptr()
      ,  ::efl::eolian::convert_to_c<Efl_Selection_Type,  ::efl::eolian::in_traits<Efl_Selection_Type>::type>(type)
      ,  ::efl::eolian::convert_to_c<unsigned int,  ::efl::eolian::in_traits< unsigned int>::type>(seat));
   return ::efl::eolian::convert_to_return< ::efl::eolian::return_traits<bool>::type>(__return_value);
}
inline efl::Selection::operator ::efl::Selection() const { return *static_cast< ::efl::Selection const*>(static_cast<void const*>(this)); }
inline efl::Selection::operator ::efl::Selection&() { return *static_cast< ::efl::Selection*>(static_cast<void*>(this)); }
inline efl::Selection::operator ::efl::Selection const&() const { return *static_cast< ::efl::Selection const*>(static_cast<void const*>(this)); }
} }
#endif
