本文整理汇总了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;
}
示例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);
}
示例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);
}
示例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;
}
示例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());
}
示例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
);
}
示例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);
}
示例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;
}
示例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()
)
);
}