not private because I've to call it from Elm. Maybe think about the design...

SVN revision: 48947
This commit is contained in:
Andreas Volz 2010-05-17 21:49:07 +00:00
parent 20cf57be88
commit f13cd87b63
2 changed files with 7 additions and 3 deletions

View File

@ -186,7 +186,6 @@ public:
*/
static Object *wrap( Evas_Object* o );
private:
/*!
* @brief Get the linked C++ object from a C object.
*
@ -201,12 +200,14 @@ private:
* @return The linked C++ object
*/
static Object* objectLink( Evas_Object* evas_object = 0 );
/*!
* @@see objectLink but with const variables
*/
static const Object* objectLink( const Evas_Object* evas_object = 0 );
private:
void registerCallbacks();
static void dispatcher( void *data, Evas *evas, Evas_Object *evas_object, void *event_info);

View File

@ -333,12 +333,15 @@ Smart *Object::getSmart ()
Object* Object::objectLink( Evas_Object* evas_object )
{
void *v = evas_object_data_get( evas_object, "obj_c++" );
assert (v);
return static_cast<Object*>( v );
}
const Object* Object::objectLink( const Evas_Object *evas_object )
{
return static_cast<const Object*>( evas_object_data_get( evas_object, "obj_c++" ) );
void *v = evas_object_data_get( evas_object, "obj_c++" );
assert (v);
return static_cast<const Object*>( v );
}
// PRIVATE