WgRefreshButtonPtr WgRefreshButton::Cast( const WgObjectPtr& pObject )
{
	if( pObject && pObject->IsInstanceOf(CLASSNAME) )
		return WgRefreshButtonPtr( static_cast<WgRefreshButton*>(pObject.RawPtr()) );

	return 0;
}
示例#2
0
WgImagePtr WgImage::Cast( const WgObjectPtr& pObject )
{
	if( pObject && pObject->IsInstanceOf(CLASSNAME) )
		return WgImagePtr( static_cast<WgImage*>(pObject.RawPtr()) );

	return 0;
}
示例#3
0
WgTextDisplayPtr WgTextDisplay::Cast( const WgObjectPtr& pObject )
{
	if( pObject && pObject->IsInstanceOf(CLASSNAME) )
		return WgTextDisplayPtr( static_cast<WgTextDisplay*>(pObject.RawPtr()) );

	return 0;
}
示例#4
0
WgPopupLayerPtr WgPopupLayer::Cast( const WgObjectPtr& pObject )
{
	if( pObject && pObject->IsInstanceOf(CLASSNAME) )
		return WgPopupLayerPtr( static_cast<WgPopupLayer*>(pObject.RawPtr()) );

	return 0;
}
示例#5
0
WgStackPanelPtr WgStackPanel::Cast( const WgObjectPtr& pObject )
{
	if( pObject && pObject->IsInstanceOf(CLASSNAME) )
		return WgStackPanelPtr( static_cast<WgStackPanel*>(pObject.RawPtr()) );

	return 0;
}
示例#6
0
WgPackListPtr WgPackList::Cast( const WgObjectPtr& pObj )
{
	if( pObj && pObj->IsInstanceOf(CLASSNAME) )
		return WgPackListPtr( static_cast<WgPackList*>(pObj.RawPtr()) );

	return 0;
}
WgSimpleVolumeMeterPtr WgSimpleVolumeMeter::Cast( const WgObjectPtr& pObject )
{
	if( pObject && pObject->IsInstanceOf(CLASSNAME) )
		return WgSimpleVolumeMeterPtr( static_cast<WgSimpleVolumeMeter*>(pObject.RawPtr()) );

	return 0;
}
示例#8
0
WgLineEditorPtr WgLineEditor::Cast( const WgObjectPtr& pObject )
{
    if( pObject && pObject->IsInstanceOf(CLASSNAME) )
        return WgLineEditorPtr( static_cast<WgLineEditor*>(pObject.RawPtr()) );

    return 0;
}