本文整理汇总了C++中ObjectStack类的典型用法代码示例。如果您正苦于以下问题:C++ ObjectStack类的具体用法?C++ ObjectStack怎么用?C++ ObjectStack使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ObjectStack类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Apply
TRef<IObject> Apply(ObjectStack& stack)
{
TRef<Image> pimage; CastTo(pimage, (Value*)(IObject*)stack.Pop());
TRef<Number> pnumberFaces; CastTo(pnumberFaces, (IObject*)stack.Pop());
bool bActAsTabs = false;
TVector<int> m_vecColumns;
ParseIntVector((IObject*)stack.Pop(), m_vecColumns);
if (stack.GetCount() > 0)
{
TRef<Boolean> pbooleanActAsTabs; CastTo(pbooleanActAsTabs, (IObject*)stack.Pop());
bActAsTabs = pbooleanActAsTabs->GetValue();
}
TRef<ButtonBarPane> pbuttonbar =
CreateButtonBarPane(
pimage->GetSurface(),
(DWORD)pnumberFaces->GetValue(),
m_vecColumns,
bActAsTabs
);
pbuttonbar->GetMouseEnterWhileEnabledEventSource()->AddSink(new SoundIDEventSink(mouseoverSound));
pbuttonbar->GetEventSource()->AddSink(new SoundIDEventSink(mouseclickSound));
return pbuttonbar;
}
示例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: Apply
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<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
);
}
示例5: 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);
}
示例6: 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()
)
);
}