From 196389a70ef3a03aa8764b9532812a17dd55014b Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Wed, 10 Jun 2020 09:35:32 -0300 Subject: Control editor DC fixes --- Project/WorkspaceDC.h | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'Project/WorkspaceDC.h') diff --git a/Project/WorkspaceDC.h b/Project/WorkspaceDC.h index 609663a..7eaf419 100644 --- a/Project/WorkspaceDC.h +++ b/Project/WorkspaceDC.h @@ -4,15 +4,35 @@ #include //#include #include - +/** + * @brief A Workspace class that draws using Device Context. +*/ class WorkspaceDC : public Workspace { public: + /** + * @brief Default constructor + */ WorkspaceDC(); + /** + * @brief WorkspaceDC constructor + * @param parent Parent window + * @param name Project name (displayed at the tabs) + * @param statusBar Status bar to show useful info + * @return + */ WorkspaceDC(wxWindow* parent, wxString name = wxEmptyString, wxStatusBar* statusBar = nullptr); ~WorkspaceDC(); + /** + * @brief Redraws the screen + */ virtual void Redraw() { this->Refresh(); } + /** + * @brief Get shared OpenGL context. This method prevents to share any OpenGL context when use DC. + * @return Aways nullptr + */ + virtual wxGLContext* GetSharedGLContext() const { return nullptr; } // Prevent share any OpenGL context when use DC protected: virtual void OnPaint(wxPaintEvent& event); -- cgit