当前位置: 首页>>代码示例>>C++>>正文


C++ ObjectStack::Pop方法代码示例

本文整理汇总了C++中ObjectStack::Pop方法的典型用法代码示例。如果您正苦于以下问题:C++ ObjectStack::Pop方法的具体用法?C++ ObjectStack::Pop怎么用?C++ ObjectStack::Pop使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ObjectStack的用法示例。


在下文中一共展示了ObjectStack::Pop方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: Apply

    TRef<IObject> Apply(ObjectStack& stack)
    {
        TRef<PointValue> ppointFace; CastTo(ppointFace, (IObject*)stack.Pop());
        TRef<PointValue> ppoint;     CastTo(ppoint,     (IObject*)stack.Pop());
        TRef<FontValue>  pfont;      CastTo(pfont,      (IObject*)stack.Pop());
        TRef<ColorValue> pcolor;     CastTo(pcolor,     (IObject*)stack.Pop());

        TRef<ComboPane> pcombo =
            CreateComboPane(
                m_pmodeler,
                m_ppopupContainer,
                pfont->GetValue(),
                WinPoint::Cast(ppoint->GetValue()),
                CreateStringComboFacePane(
                    WinPoint::Cast(ppointFace->GetValue()),
                    pfont->GetValue(),
                    pcolor->GetValue(),
                    true
                )
            );

        pcombo->GetMouseEnterWhileEnabledEventSource()->AddSink(new SoundIDEventSink(mouseoverSound));
        pcombo->GetMenuSelectEventSource()->AddSink(new SoundIDEventSink(mouseclickSound));

        return pcombo;
    }
开发者ID:borgified,项目名称:Allegiance,代码行数:26,代码来源:trekmdl.cpp

示例2: Apply

    TRef<IObject> Apply(ObjectStack& stack)
    {
        TRef<ColorValue> pcolor = ColorValue::Cast((IObject*)stack.Pop());
        TRef<Image>      pimage =      Image::Cast((Value*)(IObject*)stack.Pop());

        return (Value*)CreateBlendColorImage(pimage, pcolor);
    }
开发者ID:FreeAllegiance,项目名称:Allegiance-R7-With-R4-Engine,代码行数:7,代码来源:efapp.cpp

示例3: SoundGainValueTemplate

    TRef<IObject> Apply(ObjectStack& stack)
    {
        TRef<Number>         pnumGain;    CastTo(pnumGain, (IObject*)stack.Pop());
        TRef<ISoundTemplate> ptemplateBase; CastTo(ptemplateBase, (IObject*)stack.Pop());

        ZAssert(pnumGain && ptemplateBase);

        return new SoundGainValueTemplate(ptemplateBase, pnumGain);
    }
开发者ID:FreeAllegiance,项目名称:Allegiance-R7-With-R4-Engine,代码行数:9,代码来源:treksound.cpp

示例4: Apply

    TRef<IObject> Apply(ObjectStack& stack)
    {
        TRef<Number>         pnumMinDist; CastTo(pnumMinDist, (IObject*)stack.Pop());
        TRef<ISoundTemplate> ptemplateBase; CastTo(ptemplateBase, (IObject*)stack.Pop());
        TRef<ISoundTemplate> pTemplate;

        ZSucceeded(Create3DSoundTemplate(pTemplate, ptemplateBase, pnumMinDist->GetValue()));

        return pTemplate;
    }
开发者ID:FreeAllegiance,项目名称:Allegiance-R7-With-R4-Engine,代码行数:10,代码来源:treksound.cpp

示例5: MapPreviewPane

    TRef<IObject> Apply(ObjectStack& stack)
    {
        //TRef<RectValue> prect  = RectValue::Cast((IObject*)stack.Pop());
		TRef<Image>   pimage               = Image::Cast((Value*)(IObject*)stack.Pop());
		TRef<Boolean> pbooleanShowDetails  = Boolean::Cast((IObject*)stack.Pop());
		TRef<Boolean> pbooleanShowSide     = Boolean::Cast((IObject*)stack.Pop());

        return (Pane*)
            new MapPreviewPane(m_pmodeler,pimage,pbooleanShowDetails->GetValue(),pbooleanShowSide->GetValue());
    }
开发者ID:borgified,项目名称:Allegiance,代码行数:10,代码来源:trekmdl.cpp

示例6: Apply

    TRef<IObject> Apply(ObjectStack& stack)
    {
        TRef<FontValue>  pfontTitles; CastTo(pfontTitles, (IObject*)stack.Pop());
        TRef<FontValue>  pfontTime;   CastTo(pfontTime,   (IObject*)stack.Pop());
        TRef<ButtonPane> pbutton;     CastTo(pbutton,     (IObject*)stack.Pop());

        return 
            CreateGameStateContainer(
                m_pmodeler,
                pfontTitles->GetValue(),
                pfontTime->GetValue(),
                pbutton
            );
    }
开发者ID:BackTrak,项目名称:Allegiance-R4-Engine,代码行数:14,代码来源:efapp.cpp

示例7: CastTo

TRef<IObject> SelectModelPaneFactory::Apply(ObjectStack& stack)
{
    TRef<Pane>      ppaneChild;  CastTo(ppaneChild, (IObject*)stack.Pop());
    TRef<ModelData> pmodelData;  CastTo(pmodelData, (IObject*)stack.Pop());

    return (Pane*)new SelectModelPane(ppaneChild, pmodelData);
}
开发者ID:borgified,项目名称:Allegiance,代码行数:7,代码来源:selpane.cpp

示例8: GaugeValuePane

    TRef<IObject> Apply(ObjectStack& stack)
    {
        TRef<Image>  pimage     = Image::Cast((Value*)(IObject*)stack.Pop());
        TRef<Number> pnumber;     CastTo(pnumber, (IObject*)stack.Pop());
        Color        colorFlash = GetColor((IObject*)stack.Pop());
        Color        colorEmpty = GetColor((IObject*)stack.Pop());

        TRef<GaugeValuePane> ppane =
            new GaugeValuePane(
                pimage->GetSurface(), 
                pnumber,
                GetWindow()->GetTime(),
                colorFlash,
                colorEmpty
            );

        return (Pane*)ppane;
    }
开发者ID:borgified,项目名称:Allegiance,代码行数:18,代码来源:trekmdl.cpp

示例9: CastTo

TRef<IObject> ChatListPaneFactory::Apply(ObjectStack& stack)
{
    TRef<PointValue>  ppointSize; CastTo(ppointSize, stack.Pop());
    return (Pane*)new ChatListPaneImpl(
                WinPoint(
                    (int)ppointSize->GetValue().X(),
                    (int)ppointSize->GetValue().Y()
                    )
                );                    
}
开发者ID:borgified,项目名称:Allegiance,代码行数:10,代码来源:chatpane.cpp


注:本文中的ObjectStack::Pop方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。