compiles again

SVN revision: 50031
This commit is contained in:
Andreas Volz 2010-07-04 19:58:08 +00:00
parent 70eae1544b
commit db52706094
2 changed files with 19 additions and 2 deletions

View File

@ -79,7 +79,19 @@ public:
* @param o The C to to be wrapped.
* @return The wrapped C++ type.
*/
static Canvas *wrap (Evas_Object* o);
static Canvas *wrap (Evas_Object *o);
/*!
* @brief C object wrapper factory method.
*
* For internal usage only! This return a new allocated Object that holds
* the wrapped Evas_Object variable. With a delete on this object the wrapped
* C type won't be freed.
*
* @param o The C to to be wrapped.
* @return The wrapped C++ type.
*/
static Canvas *wrap (Evas *evas);
private:
Canvas( Evas* evas );

View File

@ -170,10 +170,15 @@ Object* Canvas::objectAtBottom() const
return Object::objectLink( evas_object_bottom_get( o ) );
}
Canvas *Canvas::wrap (Evas_Object* o)
Canvas *Canvas::wrap (Evas_Object *o)
{
return new Canvas (evas_object_evas_get (o));
}
Canvas *Canvas::wrap (Evas *evas)
{
return new Canvas (evas);
}
} // end namespace Evasxx