wrappers added for new C API functions

SVN revision: 49314
This commit is contained in:
Andreas Volz 2010-05-29 22:37:18 +00:00
parent ccc01075c3
commit 61e8f0e61e
2 changed files with 39 additions and 0 deletions

View File

@ -159,6 +159,13 @@ public:
/* Focus */
virtual void setFocus( bool focus );
virtual bool hasFocus() const;
void setEventsPass (bool pass);
bool getEventsPass () const;
void setEventsRepeat (bool repeat);
bool getEventsRepeat () const;
void setEventsPropagate (bool prop);
bool getEventsPropagate () const;
/*!
* @brief Gets the smart parent.

View File

@ -317,6 +317,38 @@ bool Object::hasFocus() const
return evas_object_focus_get( o );
}
void Object::setEventsPass (bool pass)
{
evas_object_pass_events_set (o, pass);
}
bool Object::getEventsPass () const
{
return evas_object_pass_events_get (o);
}
void Object::setEventsRepeat (bool repeat)
{
evas_object_repeat_events_set (o, repeat);
}
bool Object::getEventsRepeat () const
{
return evas_object_repeat_events_get (o);
}
void Object::setEventsPropagate (bool prop)
{
evas_object_propagate_events_set (o, prop);
}
bool Object::getEventsPropagate () const
{
return evas_object_propagate_events_get (o);
}
Object *Object::getParent (const Object &obj)
{
Evas_Object *eo = evas_object_smart_parent_get (o);