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.
29 lines
898 B
29 lines
898 B
#pragma once
|
|
#include "UseView.g.h"
|
|
#include "RenderableView.h"
|
|
|
|
namespace winrt::RNSVG::implementation {
|
|
struct UseView : UseViewT<UseView, RNSVG::implementation::RenderableView> {
|
|
public:
|
|
UseView() = default;
|
|
|
|
void UpdateProperties(Microsoft::ReactNative::IJSValueReader const &reader, bool forceUpdate, bool invalidate);
|
|
void Render(
|
|
Microsoft::Graphics::Canvas::UI::Xaml::CanvasControl const &canvas,
|
|
Microsoft::Graphics::Canvas::CanvasDrawingSession const &session);
|
|
|
|
private:
|
|
hstring m_href{L""};
|
|
RNSVG::SVGLength m_x{};
|
|
RNSVG::SVGLength m_y{};
|
|
RNSVG::SVGLength m_width{};
|
|
RNSVG::SVGLength m_height{};
|
|
|
|
RNSVG::IRenderable GetRenderableTemplate();
|
|
};
|
|
} // namespace winrt::RNSVG::implementation
|
|
|
|
namespace winrt::RNSVG::factory_implementation {
|
|
struct UseView : UseViewT<UseView, implementation::UseView> {};
|
|
} // namespace winrt::RNSVG::factory_implementation
|