Example #1
0
EditText_p EditText::cast( const Interface_p& pInterface )
{
    if( pInterface && pInterface->isInstanceOf(CLASSNAME) )
        return EditText_p( pInterface.getRealObjectPtr(), static_cast<EditText*>(pInterface.rawPtr()) );

    return 0;
}
Example #2
0
	Icon_p Icon::cast( const Interface_p& pInterface )
	{
		if( pInterface && pInterface->isInstanceOf(CLASSNAME) )
			return Icon_p( pInterface.getRealObjectPtr(), static_cast<Icon*>( pInterface.rawPtr()) );
	
		return 0;
	}