aboutsummaryrefslogtreecommitdiff
path: root/include/cru
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-01-29 21:07:48 +0800
committercrupest <crupest@outlook.com>2022-01-29 21:07:48 +0800
commit30060773b06d93ae08a8c6fa5836c81e595594ed (patch)
treef333e807eef86442eff0b489bb2460bfbf99e794 /include/cru
parent90261a333f251cc241f186f0ee6ed8e12787cc02 (diff)
downloadcru-30060773b06d93ae08a8c6fa5836c81e595594ed.tar.gz
cru-30060773b06d93ae08a8c6fa5836c81e595594ed.tar.bz2
cru-30060773b06d93ae08a8c6fa5836c81e595594ed.zip
...
Diffstat (limited to 'include/cru')
-rw-r--r--include/cru/osx/gui/Window.hpp2
-rw-r--r--include/cru/platform/gui/Window.hpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/cru/osx/gui/Window.hpp b/include/cru/osx/gui/Window.hpp
index 4606aa84..904a0188 100644
--- a/include/cru/osx/gui/Window.hpp
+++ b/include/cru/osx/gui/Window.hpp
@@ -60,6 +60,8 @@ class OsxWindow : public OsxGuiResource, public INativeWindow {
void SetCursor(std::shared_ptr<ICursor> cursor) override;
+ void SetToForeground() override;
+
void RequestRepaint() override;
std::unique_ptr<graphics::IPainter> BeginPaint() override;
diff --git a/include/cru/platform/gui/Window.hpp b/include/cru/platform/gui/Window.hpp
index 0de5127e..c163bc14 100644
--- a/include/cru/platform/gui/Window.hpp
+++ b/include/cru/platform/gui/Window.hpp
@@ -83,6 +83,8 @@ struct INativeWindow : virtual IPlatformResource {
virtual void SetCursor(std::shared_ptr<ICursor> cursor) = 0;
+ virtual void SetToForeground() = 0;
+
virtual void RequestRepaint() = 0;
// Remember to call EndDraw on return value and destroy it.