mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-23 19:49:43 +01:00
[FancyZones] Mark const methods
This commit is contained in:
@@ -93,7 +93,7 @@ void Drawing::BeginDraw(const D2D1_COLOR_F& backColor)
|
||||
m_renderTarget->Clear(backColor);
|
||||
}
|
||||
|
||||
winrt::com_ptr<IDWriteTextFormat> Drawing::CreateTextFormat(LPCWSTR fontFamilyName, FLOAT fontSize, DWRITE_FONT_WEIGHT fontWeight)
|
||||
winrt::com_ptr<IDWriteTextFormat> Drawing::CreateTextFormat(LPCWSTR fontFamilyName, FLOAT fontSize, DWRITE_FONT_WEIGHT fontWeight) const
|
||||
{
|
||||
winrt::com_ptr<IDWriteTextFormat> textFormat = nullptr;
|
||||
|
||||
@@ -107,7 +107,7 @@ winrt::com_ptr<IDWriteTextFormat> Drawing::CreateTextFormat(LPCWSTR fontFamilyNa
|
||||
return textFormat;
|
||||
}
|
||||
|
||||
winrt::com_ptr<ID2D1SolidColorBrush> Drawing::CreateBrush(D2D1_COLOR_F color)
|
||||
winrt::com_ptr<ID2D1SolidColorBrush> Drawing::CreateBrush(D2D1_COLOR_F color) const
|
||||
{
|
||||
winrt::com_ptr<ID2D1SolidColorBrush> brush = nullptr;
|
||||
|
||||
@@ -116,7 +116,7 @@ winrt::com_ptr<ID2D1SolidColorBrush> Drawing::CreateBrush(D2D1_COLOR_F color)
|
||||
return brush;
|
||||
}
|
||||
|
||||
winrt::com_ptr<ID2D1Bitmap> Drawing::CreateIcon(HICON icon)
|
||||
winrt::com_ptr<ID2D1Bitmap> Drawing::CreateIcon(HICON icon) const
|
||||
{
|
||||
winrt::com_ptr<ID2D1Bitmap> bitmap = nullptr;
|
||||
|
||||
|
||||
@@ -17,9 +17,9 @@ public:
|
||||
operator bool() const;
|
||||
void BeginDraw(const D2D1_COLOR_F& backColor);
|
||||
|
||||
winrt::com_ptr<IDWriteTextFormat> CreateTextFormat(LPCWSTR fontFamilyName, FLOAT fontSize, DWRITE_FONT_WEIGHT fontWeight = DWRITE_FONT_WEIGHT_NORMAL);
|
||||
winrt::com_ptr<ID2D1SolidColorBrush> CreateBrush(D2D1_COLOR_F color);
|
||||
winrt::com_ptr<ID2D1Bitmap> CreateIcon(HICON icon);
|
||||
winrt::com_ptr<IDWriteTextFormat> CreateTextFormat(LPCWSTR fontFamilyName, FLOAT fontSize, DWRITE_FONT_WEIGHT fontWeight = DWRITE_FONT_WEIGHT_NORMAL) const;
|
||||
winrt::com_ptr<ID2D1SolidColorBrush> CreateBrush(D2D1_COLOR_F color) const;
|
||||
winrt::com_ptr<ID2D1Bitmap> CreateIcon(HICON icon) const;
|
||||
|
||||
void FillRectangle(const D2D1_RECT_F& rect, D2D1_COLOR_F color);
|
||||
void FillRoundedRectangle(const D2D1_RECT_F& rect, D2D1_COLOR_F color);
|
||||
|
||||
Reference in New Issue
Block a user