From f5c83d0609d2fd2030a2339a4a7d75d96fdf1b15 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Mon, 2 Jan 2023 08:10:43 +0100 Subject: Simplify editor events processing --- src/CGEditor.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/CGEditor.hpp') diff --git a/src/CGEditor.hpp b/src/CGEditor.hpp index e463170..e113325 100644 --- a/src/CGEditor.hpp +++ b/src/CGEditor.hpp @@ -23,10 +23,14 @@ class CGEditor { protected: Status status; - ///@brief Draw the Chess Game Editor on the canvas using current status + /// @brief Draw the Chess Game Editor on the canvas using current status void Draw(); + /// @brief Process the events generated during the drawing + bool ProcessEvents(); /// @brief Draw an element on the canvas virtual void DrawElement(const Element &) = 0; + /// @brief Handle event that occured during editor drawing + virtual void HandleEvent(const Event &) = 0; public: CGEditor(); -- cgit v1.2.3