ssap_app/node_modules/react-native-screens/windows/RNScreens/ScreenStack.h

24 lines
773 B
C++

#pragma once
#include "Screen.h"
namespace winrt::RNScreens::implementation {
class ScreenStack
: public winrt::Windows::UI::Xaml::Controls::ContentControlT<ScreenStack> {
public:
ScreenStack(winrt::Microsoft::ReactNative::IReactContext reactContext);
void addScreen(Screen &screen, int64_t index);
void removeAllChildren();
void removeChildAt(int64_t index);
void replaceChild(
winrt::Windows::UI::Xaml::UIElement oldChild,
winrt::Windows::UI::Xaml::UIElement newChild);
winrt::Windows::Foundation::Collections::IVector<Windows::UI::Xaml::UIElement>
m_children;
private:
void onChildModified(int64_t index);
winrt::Microsoft::ReactNative::IReactContext m_reactContext{nullptr};
};
} // namespace winrt::RNScreens::implementation