IScene::IScene(const StringRef& name/*=StringRef::Empty*/, const IEventArg& e /*= IEventArg::Empty*/) :INode(name), mSceneGraph(nullptr) { mScene = this; mRenderTarget = nullptr; mSize = ResolutionAdapter::Instance().WinSize(); SetStretch(Stretch::Fill); SetSizeToContent(SizeToContent::WidthAndHeight); Start(); }
IPanel::IPanel(StringRef name/*=StringRef::Empty*/):INode(name) { SetSizeToContent(SizeToContent::WidthAndHeight); }