diff options
author | crupest <crupest@outlook.com> | 2018-11-19 17:27:39 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-11-19 17:27:39 +0800 |
commit | a8f9fac512cf3e4884cee3b7f655429ece89a025 (patch) | |
tree | 1fe286351460e13af044346fc444e2189d49a0f4 /CruUI-Generate/cru_ui.hpp | |
parent | f78359cc042f089b2f99b23dd3df7ae02ecdabec (diff) | |
download | cru-a8f9fac512cf3e4884cee3b7f655429ece89a025.tar.gz cru-a8f9fac512cf3e4884cee3b7f655429ece89a025.tar.bz2 cru-a8f9fac512cf3e4884cee3b7f655429ece89a025.zip |
Rename two methods in Control.
Diffstat (limited to 'CruUI-Generate/cru_ui.hpp')
-rw-r--r-- | CruUI-Generate/cru_ui.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/CruUI-Generate/cru_ui.hpp b/CruUI-Generate/cru_ui.hpp index 35c7abeb..ddfd8d9e 100644 --- a/CruUI-Generate/cru_ui.hpp +++ b/CruUI-Generate/cru_ui.hpp @@ -1606,7 +1606,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 { @@ -1616,7 +1616,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 @@ -1627,7 +1627,7 @@ namespace cru::ui void SetBackgroundBrush(Microsoft::WRL::ComPtr<ID2D1Brush> background_brush) { background_brush_ = std::move(background_brush); - Repaint(); + InvalidateDraw(); } @@ -1675,7 +1675,7 @@ namespace cru::ui return border_property_; } - void InvalidateBorder(); + void UpdateBorder(); bool IsBordered() const { @@ -2072,7 +2072,7 @@ namespace cru::ui void Close(); //Send a repaint message to the window's message queue which may make the window repaint. - void Repaint() override; + void InvalidateDraw() override final; //Show the window. void Show(); |