From bf7e486b8908ed494925ff9643b55ccafbfdc434 Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 14 Jun 2019 23:23:09 +0800 Subject: ... --- include/cru/platform/native/native_window.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/cru/platform') diff --git a/include/cru/platform/native/native_window.hpp b/include/cru/platform/native/native_window.hpp index 3e83a531..bb97ef21 100644 --- a/include/cru/platform/native/native_window.hpp +++ b/include/cru/platform/native/native_window.hpp @@ -11,6 +11,14 @@ struct IPainter; } namespace cru::platform::native { +// Represents a native window, which exposes some low-level events and +// operations. +// +// Although you can always retain an instance of this class, the real window +// associated with it might be have already been destroyed by explicitly calling +// Close or closed by the user, which leads to an invalid instance. You can +// check the validity by IsValid. When you call perform native operations on the +// invalid instance, there is no effect. struct INativeWindow : public virtual Interface { // Return if the window is still valid, that is, hasn't been closed or // destroyed. -- cgit v1.2.3