diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-09-10 00:38:59 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-09-10 00:38:59 +0800 |
commit | e8e71847dccceee038338dab4e430957639f3d63 (patch) | |
tree | ce010dfae18467dc1960e2fe745d4f6a0e28c275 /include/cru | |
parent | aa4b59d594a962f34a7737a015703f0878c73b35 (diff) | |
download | cru-e8e71847dccceee038338dab4e430957639f3d63.tar.gz cru-e8e71847dccceee038338dab4e430957639f3d63.tar.bz2 cru-e8e71847dccceee038338dab4e430957639f3d63.zip |
xcb window visibility event.
Diffstat (limited to 'include/cru')
-rw-r--r-- | include/cru/platform/gui/xcb/Window.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/cru/platform/gui/xcb/Window.h b/include/cru/platform/gui/xcb/Window.h index 4c9e3f4d..62351645 100644 --- a/include/cru/platform/gui/xcb/Window.h +++ b/include/cru/platform/gui/xcb/Window.h @@ -64,9 +64,9 @@ class XcbWindow : public XcbResource, public virtual INativeWindow { IEvent<std::nullptr_t>* CreateEvent() override; IEvent<std::nullptr_t>* DestroyEvent() override; - virtual IEvent<std::nullptr_t>* PaintEvent() = 0; + IEvent<std::nullptr_t>* PaintEvent() override; - virtual IEvent<WindowVisibilityType>* VisibilityChangeEvent() = 0; + IEvent<WindowVisibilityType>* VisibilityChangeEvent() override; IEvent<Size>* ResizeEvent() override; IEvent<FocusChangeType>* FocusEvent() override; @@ -95,7 +95,9 @@ class XcbWindow : public XcbResource, public virtual INativeWindow { Event<std::nullptr_t> create_event_; Event<std::nullptr_t> destroy_event_; + Event<std::nullptr_t> paint_event_; + Event<WindowVisibilityType> visibility_change_event_; Event<Size> resize_event_; Event<FocusChangeType> focus_event_; Event<MouseEnterLeaveType> mouse_enter_leave_event_; |