示例#1
0
	InputHandler_p InputHandler::cast( const Object_p& pObject )
	{
		if( pObject && pObject->isInstanceOf(CLASSNAME) )
			return InputHandler_p( static_cast<InputHandler*>(pObject.rawPtr()) );
	
		return 0;
	}
示例#2
0
	BitmapGlyphs_p BitmapGlyphs::cast( const Object_p& pObject )
	{
		if( pObject && pObject->isInstanceOf(CLASSNAME) )
			return BitmapGlyphs_p( static_cast<BitmapGlyphs*>(pObject.rawPtr()) );
	
		return 0;
	}
示例#3
0
	ColorSkin_p ColorSkin::cast( const Object_p& pObject )
	{
		if( pObject && pObject->isInstanceOf(CLASSNAME) )
			return ColorSkin_p( static_cast<ColorSkin*>(pObject.rawPtr()) );
	
		return 0;
	}
	UniformSizeBroker_p UniformSizeBroker::cast( const Object_p& pObject )
	{
		if( pObject && pObject->isInstanceOf(CLASSNAME) )
			return UniformSizeBroker_p( static_cast<UniformSizeBroker*>(pObject.rawPtr()) );
	
		return 0;
	}
示例#5
0
	TimeFormatter_p TimeFormatter::cast( const Object_p& pObject )
	{
		if( pObject && pObject->isInstanceOf(CLASSNAME) )
			return TimeFormatter_p( static_cast<TimeFormatter*>(pObject.rawPtr()) );
	
		return 0;
	}
示例#6
0
	Font_p Font::cast( const Object_p& pObject )
	{
		if( pObject && pObject->isInstanceOf(CLASSNAME) )
			return Font_p( static_cast<Font*>(pObject.rawPtr()) );
	
		return 0;
	}
示例#7
0
	SimpleVolumeMeter_p SimpleVolumeMeter::cast( const Object_p& pObject )
	{
		if( pObject && pObject->isInstanceOf(CLASSNAME) )
			return SimpleVolumeMeter_p( static_cast<SimpleVolumeMeter*>(pObject.rawPtr()) );
	
		return 0;
	}
	ScalePreferredSizeBroker_p ScalePreferredSizeBroker::cast( const Object_p& pObject )
	{
		if( pObject && pObject->isInstanceOf(CLASSNAME) )
			return ScalePreferredSizeBroker_p( static_cast<ScalePreferredSizeBroker*>(pObject.rawPtr()) );
	
		return 0;
	}
	StandardPresenter_p StandardPresenter::cast( const Object_p& pObject )
	{
		if( pObject && pObject->isInstanceOf(CLASSNAME) )
			return StandardPresenter_p( static_cast<StandardPresenter*>(pObject.rawPtr()) );
	
		return 0;
	}
示例#10
0
	TestWidget_p TestWidget::cast( const Object_p& pObject )
	{
		if( pObject && pObject->isInstanceOf(CLASSNAME) )
			return TestWidget_p( static_cast<TestWidget*>(pObject.rawPtr()) );
	
		return 0;
	}
示例#11
0
	SurfaceFactory_p SurfaceFactory::cast( const Object_p& pObject )
	{
		if( pObject && pObject->isInstanceOf(CLASSNAME) )
			return SurfaceFactory_p( static_cast<SurfaceFactory*>(pObject.rawPtr()) );
	
		return 0;
	}
示例#12
0
	Knob_p Knob::cast( const Object_p& pObject )
	{
		if( pObject && pObject->isInstanceOf(CLASSNAME) )
			return Knob_p( static_cast<Knob*>(pObject.rawPtr()) );
	
		return 0;
	}
示例#13
0
	TextEditor_p TextEditor::cast( const Object_p& pObject )
	{
		if( pObject && pObject->isInstanceOf(CLASSNAME) )
			return TextEditor_p( static_cast<TextEditor*>(pObject.rawPtr()) );
	
		return 0;
	}
示例#14
0
	Menubar_p Menubar::cast( const Object_p& pObject )
	{
		if( pObject && pObject->isInstanceOf(CLASSNAME) )
			return Menubar_p( static_cast<Menubar*>(pObject.rawPtr()) );
	
		return 0;
	}
示例#15
0
	Capsule_p Capsule::cast( const Object_p& pObject )
	{
		if( pObject && pObject->isInstanceOf(CLASSNAME) )
			return Capsule_p( static_cast<Capsule*>(pObject.rawPtr()) );
	
		return 0;
	}
示例#16
0
	MsgFunc_p MsgFunc::cast( const Object_p& pObject )
	{
		if( pObject && pObject->isInstanceOf(CLASSNAME) )
			return MsgFunc_p( static_cast<MsgFunc*>(pObject.rawPtr()) );
	
		return 0;
	}
示例#17
0
	Container_p Container::cast( const Object_p& pObject )
	{
		if( pObject && pObject->isInstanceOf(CLASSNAME) )
			return Container_p( static_cast<Container*>(pObject.rawPtr()) );
	
		return 0;
	}
示例#18
0
	ModalLayer_p ModalLayer::cast( const Object_p& pObject )
	{
		if( pObject && pObject->isInstanceOf(CLASSNAME) )
			return ModalLayer_p( static_cast<ModalLayer*>(pObject.rawPtr()) );
	
		return 0;
	}
示例#19
0
	Image_p Image::cast( const Object_p& pObject )
	{
		if( pObject && pObject->isInstanceOf(CLASSNAME) )
			return Image_p( static_cast<Image*>(pObject.rawPtr()) );
	
		return 0;
	}
示例#20
0
	Panel_p Panel::cast( const Object_p& pObject )
	{
		if( pObject && pObject->isInstanceOf(CLASSNAME) )
			return Panel_p( static_cast<Panel*>(pObject.rawPtr()) );
	
		return 0;
	}
示例#21
0
	ValueDisplay_p ValueDisplay::cast( const Object_p& pObject )
	{
		if( pObject && pObject->isInstanceOf(CLASSNAME) )
			return ValueDisplay_p( static_cast<ValueDisplay*>(pObject.rawPtr()) );
	
		return 0;
	}
示例#22
0
Button_p Button::cast( const Object_p& pObject )
{
    if( pObject && pObject->isInstanceOf(CLASSNAME) )
        return Button_p( static_cast<Button*>(pObject.rawPtr()) );

    return 0;
}
示例#23
0
RouteId MsgRouter::_addRoute( const Object_p& pSource, Route * pRoute )
{
    if( !pSource )
        return 0;

    Chain<Route>& chain = m_sourceRoutes[pSource.rawPtr()];
    chain.pushBack(pRoute);
    pRoute->m_handle = m_routeCounter++;
    return pRoute->m_handle;
}
示例#24
0
int MsgRouter::deleteRoutesFrom( const Object_p& pSource )
{
    auto it = m_sourceRoutes.find(Object_wp(pSource.rawPtr()) );

    if( it == m_sourceRoutes.end() )
        return 0;

    int nDeleted = it->second.size();
    m_sourceRoutes.erase(it);
    return nDeleted;
}