35class ViewManager :
public std::enable_shared_from_this<ViewManager> {
37 void SetView(
const std::shared_ptr<View>& view) {
39 if (mCurrent !=
nullptr) {
40 mCurrent->InternalInit(shared_from_this());
44 const std::shared_ptr<View>& Current()
const {
49 if (mCurrent !=
nullptr) {
56 std::shared_ptr<View> mCurrent =
nullptr;