aboutsummaryrefslogtreecommitdiff
path: root/src/ui/control.hpp
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2018-11-19 18:24:32 +0800
committerGitHub <noreply@github.com>2018-11-19 18:24:32 +0800
commit3edc249f48b4d7e692c782c1ca4809e07fa0726f (patch)
tree1fe286351460e13af044346fc444e2189d49a0f4 /src/ui/control.hpp
parentf78359cc042f089b2f99b23dd3df7ae02ecdabec (diff)
parenta8f9fac512cf3e4884cee3b7f655429ece89a025 (diff)
downloadcru-3edc249f48b4d7e692c782c1ca4809e07fa0726f.tar.gz
cru-3edc249f48b4d7e692c782c1ca4809e07fa0726f.tar.bz2
cru-3edc249f48b4d7e692c782c1ca4809e07fa0726f.zip
Merge pull request #21 from crupest/20-rename-methods
Rename two methods in Control.
Diffstat (limited to 'src/ui/control.hpp')
-rw-r--r--src/ui/control.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/control.hpp b/src/ui/control.hpp
index a1ad7ea7..2ca5fa9e 100644
--- a/src/ui/control.hpp
+++ b/src/ui/control.hpp
@@ -127,7 +127,7 @@ namespace cru::ui
//Draw this control and its child controls.
void Draw(ID2D1DeviceContext* device_context);
- virtual void Repaint();
+ virtual void InvalidateDraw();
Microsoft::WRL::ComPtr<ID2D1Brush> GetForegroundBrush() const
{
@@ -137,7 +137,7 @@ namespace cru::ui
void SetForegroundBrush(Microsoft::WRL::ComPtr<ID2D1Brush> foreground_brush)
{
foreground_brush_ = std::move(foreground_brush);
- Repaint();
+ InvalidateDraw();
}
Microsoft::WRL::ComPtr<ID2D1Brush> GetBackgroundBrush() const
@@ -148,7 +148,7 @@ namespace cru::ui
void SetBackgroundBrush(Microsoft::WRL::ComPtr<ID2D1Brush> background_brush)
{
background_brush_ = std::move(background_brush);
- Repaint();
+ InvalidateDraw();
}
@@ -196,7 +196,7 @@ namespace cru::ui
return border_property_;
}
- void InvalidateBorder();
+ void UpdateBorder();
bool IsBordered() const
{