本文整理汇总了C++中BaseHandle::GetObjectPtr方法的典型用法代码示例。如果您正苦于以下问题:C++ BaseHandle::GetObjectPtr方法的具体用法?C++ BaseHandle::GetObjectPtr怎么用?C++ BaseHandle::GetObjectPtr使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseHandle
的用法示例。
在下文中一共展示了BaseHandle::GetObjectPtr方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Get
Dali::PhysicalKeyboard PhysicalKeyboard::Get()
{
Dali::PhysicalKeyboard keyboardHandle;
// Ensure the adaptor has been created
if ( Adaptor::IsAvailable() )
{
Dali::Adaptor& adaptor = Adaptor::Get();
BaseHandle handle = adaptor.GetSingleton( typeid( Dali::PhysicalKeyboard ) );
if( handle )
{
// If so, downcast the handle of singleton to focus manager
keyboardHandle = Dali::PhysicalKeyboard( dynamic_cast< PhysicalKeyboard* >( handle.GetObjectPtr() ) );
}
}
return keyboardHandle;
}
示例2: DownCast
CameraActor CameraActor::DownCast( BaseHandle handle )
{
return CameraActor( dynamic_cast<Dali::Internal::CameraActor*>(handle.GetObjectPtr()) );
}
示例3: DownCast
Handle Handle::DownCast( BaseHandle handle )
{
return Handle( dynamic_cast<Dali::Internal::Object*>(handle.GetObjectPtr()) );
}
示例4: DownCast
Layer Layer::DownCast( BaseHandle handle )
{
return Layer( dynamic_cast<Dali::Internal::Layer*>(handle.GetObjectPtr()) );
}
示例5: DownCast
Material Material::DownCast( BaseHandle handle )
{
return Material( dynamic_cast<Dali::Internal::Material*>(handle.GetObjectPtr()));
}
示例6: DownCast
GestureDetector GestureDetector::DownCast( BaseHandle handle )
{
return GestureDetector( dynamic_cast<Dali::Internal::GestureDetector*>(handle.GetObjectPtr()) );
}
示例7: DownCast
JsonParser DownCast( BaseHandle handle )
{
return JsonParser( dynamic_cast<Internal::JsonParser*>(handle.GetObjectPtr()) );
}
示例8: DownCast
FrameBufferImage FrameBufferImage::DownCast( BaseHandle handle )
{
return FrameBufferImage( dynamic_cast<Dali::Internal::FrameBufferImage*>(handle.GetObjectPtr()) );
}
示例9: DownCast
RenderTaskList RenderTaskList::DownCast( BaseHandle handle )
{
return RenderTaskList( dynamic_cast<Dali::Internal::RenderTaskList*>( handle.GetObjectPtr() ) );
}
示例10: DownCast
Animation Animation::DownCast( BaseHandle handle )
{
return Animation( dynamic_cast<Dali::Internal::Animation*>(handle.GetObjectPtr()) );
}
示例11: DownCast
Geometry Geometry::DownCast( BaseHandle handle )
{
return Geometry( dynamic_cast<Dali::Internal::Geometry*>(handle.GetObjectPtr()));
}
示例12: DownCast
ScrollViewPageCubeEffect ScrollViewPageCubeEffect::DownCast( BaseHandle handle )
{
return ScrollViewPageCubeEffect( dynamic_cast<Internal::ScrollViewPageCubeEffect*>(handle.GetObjectPtr()) );
}