aboutsummaryrefslogtreecommitdiff
path: root/CruUI/ui/control.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-09-04 20:24:07 +0800
committercrupest <crupest@outlook.com>2018-09-04 20:24:07 +0800
commiteebec8297a8538c40518ceee043edfc41e3b1343 (patch)
tree6050abc691cf99ae623231aeb4749f69610748f3 /CruUI/ui/control.cpp
parentdc1d739f833d594c2bafb6e70e59077756b5d607 (diff)
downloadcru-eebec8297a8538c40518ceee043edfc41e3b1343.tar.gz
cru-eebec8297a8538c40518ceee043edfc41e3b1343.tar.bz2
cru-eebec8297a8538c40518ceee043edfc41e3b1343.zip
...
Diffstat (limited to 'CruUI/ui/control.cpp')
-rw-r--r--CruUI/ui/control.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/CruUI/ui/control.cpp b/CruUI/ui/control.cpp
index e2e6f98b..ac338e95 100644
--- a/CruUI/ui/control.cpp
+++ b/CruUI/ui/control.cpp
@@ -199,6 +199,12 @@ namespace cru {
device_context->SetTransform(old_transform);
}
+ void Control::Repaint()
+ {
+ if (window_ != nullptr)
+ window_->Repaint();
+ }
+
bool Control::RequestFocus()
{
auto window = GetWindow();