Files
react-native-svg/windows/RNSVG/RectView.h
Marlene Cota 28d51bdf06 Add Windows support (#1632)
Adds Windows support.

Co-authored-by: Adam Gleitman <adam.gleitman@gmail.com>
Co-authored-by: REDMOND\agnel <agnel@microsoft.com>
2022-07-15 11:50:58 +02:00

27 lines
821 B
C++

#pragma once
#include "RectView.g.h"
#include "RenderableView.h"
namespace winrt::RNSVG::implementation {
struct RectView : RectViewT<RectView, RNSVG::implementation::RenderableView> {
public:
RectView() = 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_width{};
RNSVG::SVGLength m_height{};
RNSVG::SVGLength m_x{};
RNSVG::SVGLength m_y{};
RNSVG::SVGLength m_rx{};
RNSVG::SVGLength m_ry{};
};
} // namespace winrt::RNSVG::implementation
namespace winrt::RNSVG::factory_implementation {
struct RectView : RectViewT<RectView, implementation::RectView> {};
} // namespace winrt::RNSVG::factory_implementation