This allows us to use any type implementing _eo_ptr() with the parent
idiom "efl::eo::parent = obj" and also with efl::eo::inherit parent_set.
return { parent._eo_ptr() };
}
+ template <typename T>
+ parent_type operator=(T const& parent) const
+ {
+ return { parent._eo_ptr() };
+ }
parent_type operator=(std::nullptr_t) const
{
return { nullptr };
///
Eo_Class const* _eo_class() const { return _eo_cls; }
+ template <typename T>
+ void parent_set(T& p_)
+ {
+ detail::parent_set(_eo_raw, p_._eo_ptr());
+ }
protected:
/// @brief Copy constructor.
///