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.

27 lines
516 B

#include "pch.h"
#include "BrushView.h"
#include "BrushView.g.cpp"
namespace winrt::RNSVG::implementation {
void BrushView::SaveDefinition() {
if (auto const &root{SvgRoot()}) {
CreateBrush();
root.Brushes().Insert(Id(), *this);
}
}
void BrushView::SetBounds(Windows::Foundation::Rect const &rect) {
m_bounds = rect;
UpdateBounds();
}
void BrushView::Unload() {
if (m_brush) {
m_brush.Close();
m_brush = nullptr;
}
__super::Unload();
}
} // namespace winrt::RNSVG::implementation