mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-06 07:06:11 +00:00
Adds Windows support. Co-authored-by: Adam Gleitman <adam.gleitman@gmail.com> Co-authored-by: REDMOND\agnel <agnel@microsoft.com>
21 lines
750 B
C++
21 lines
750 B
C++
#pragma once
|
|
#include "CircleView.g.h"
|
|
#include "RenderableView.h"
|
|
|
|
namespace winrt::RNSVG::implementation {
|
|
struct CircleView : CircleViewT<CircleView, RNSVG::implementation::RenderableView> {
|
|
public:
|
|
CircleView() = default;
|
|
void UpdateProperties(Microsoft::ReactNative::IJSValueReader const &reader, bool forceUpdate, bool invalidate);
|
|
void CreateGeometry(Microsoft::Graphics::Canvas::UI::Xaml::CanvasControl const &canvas);
|
|
|
|
private:
|
|
RNSVG::SVGLength m_r{};
|
|
RNSVG::SVGLength m_cx{};
|
|
RNSVG::SVGLength m_cy{};
|
|
};
|
|
} // namespace winrt::RNSVG::implementation
|
|
namespace winrt::RNSVG::factory_implementation {
|
|
struct CircleView : CircleViewT<CircleView, implementation::CircleView> {};
|
|
} // namespace winrt::RNSVG::factory_implementation
|