diff options
Diffstat (limited to 'include/cru/platform/gui/Window.h')
-rw-r--r-- | include/cru/platform/gui/Window.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/cru/platform/gui/Window.h b/include/cru/platform/gui/Window.h index 742ef798..885c1250 100644 --- a/include/cru/platform/gui/Window.h +++ b/include/cru/platform/gui/Window.h @@ -44,6 +44,7 @@ struct NativeKeyEventArgs { // Represents a native window, which exposes some low-level events and // operations. struct INativeWindow : virtual IPlatformResource { + virtual bool IsCreated(); virtual void Close() = 0; virtual INativeWindow* GetParent() = 0; @@ -72,6 +73,8 @@ struct INativeWindow : virtual IPlatformResource { // The lefttop of the rect is relative to screen lefttop. virtual void SetWindowRect(const Rect& rect) = 0; + // Return true if window gained the focus. But the return value should be + // ignored, since it does not guarantee anything. virtual bool RequestFocus() = 0; // Relative to client lefttop. |