You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.7 KiB
46 lines
1.7 KiB
#pragma once
|
|
|
|
#include "SvgViewManager.g.h"
|
|
|
|
namespace winrt::RNSVG::implementation {
|
|
struct SvgViewManager : SvgViewManagerT<SvgViewManager> {
|
|
SvgViewManager() = default;
|
|
|
|
// IViewManager
|
|
hstring Name();
|
|
Windows::UI::Xaml::FrameworkElement CreateView();
|
|
|
|
// IViewManagerWithReactContext
|
|
Microsoft::ReactNative::IReactContext ReactContext();
|
|
void ReactContext(Microsoft::ReactNative::IReactContext const &value);
|
|
|
|
// IViewManagerWithNativeProperties
|
|
Windows::Foundation::Collections::IMapView<hstring, Microsoft::ReactNative::ViewManagerPropertyType> NativeProps();
|
|
void UpdateProperties(
|
|
Windows::UI::Xaml::FrameworkElement const &view,
|
|
Microsoft::ReactNative::IJSValueReader const &propertyMapReader);
|
|
|
|
// IViewManagerWithChildren
|
|
void
|
|
AddView(Windows::UI::Xaml::FrameworkElement const &parent, Windows::UI::Xaml::UIElement const &child, int64_t index);
|
|
void RemoveAllChildren(Windows::UI::Xaml::FrameworkElement const &parent);
|
|
void RemoveChildAt(Windows::UI::Xaml::FrameworkElement const &parent, int64_t index);
|
|
void ReplaceChild(
|
|
Windows::UI::Xaml::FrameworkElement const &parent,
|
|
Windows::UI::Xaml::UIElement const &oldChild,
|
|
Windows::UI::Xaml::UIElement const &newChild);
|
|
|
|
// IViewManagerWithPointerEvents
|
|
void OnPointerEvent(
|
|
Windows::Foundation::IInspectable const &view,
|
|
Microsoft::ReactNative::ReactPointerEventArgs const &args);
|
|
|
|
private:
|
|
Microsoft::ReactNative::IReactContext m_reactContext{nullptr};
|
|
};
|
|
} // namespace winrt::RNSVG::implementation
|
|
|
|
namespace winrt::RNSVG::factory_implementation {
|
|
struct SvgViewManager : SvgViewManagerT<SvgViewManager, implementation::SvgViewManager> {};
|
|
} // namespace winrt::RNSVG::factory_implementation
|