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
816 B
29 lines
816 B
#pragma once
|
|
#include "BrushView.g.h"
|
|
#include "GroupView.h"
|
|
|
|
namespace winrt::RNSVG::implementation {
|
|
struct BrushView : BrushViewT<BrushView, RNSVG::implementation::GroupView> {
|
|
public:
|
|
BrushView() = default;
|
|
|
|
void SaveDefinition();
|
|
|
|
Microsoft::Graphics::Canvas::Brushes::ICanvasBrush Brush() { return m_brush; }
|
|
virtual void CreateBrush() {}
|
|
virtual void Unload();
|
|
void SetBounds(Windows::Foundation::Rect const &rect);
|
|
|
|
|
|
protected:
|
|
Microsoft::Graphics::Canvas::Brushes::ICanvasBrush m_brush{nullptr};
|
|
Windows::Foundation::Rect m_bounds{};
|
|
|
|
virtual void UpdateBounds() {}
|
|
};
|
|
} // namespace winrt::RNSVG::implementation
|
|
|
|
namespace winrt::RNSVG::factory_implementation {
|
|
struct BrushView : BrushViewT<BrushView, implementation::BrushView> {};
|
|
} // namespace winrt::RNSVG::factory_implementation
|