From 1cf551d14916bb7da732971d3fc29f17b3371511 Mon Sep 17 00:00:00 2001 From: Rebekah Rowe Date: Mon, 4 Apr 2022 14:46:31 -0400 Subject: [PATCH] Added a couple of doxygen comments to gui.h --- include/libpdraw/gui/gui.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/libpdraw/gui/gui.hpp b/include/libpdraw/gui/gui.hpp index 30ba5b1..458d225 100644 --- a/include/libpdraw/gui/gui.hpp +++ b/include/libpdraw/gui/gui.hpp @@ -14,13 +14,19 @@ class IWidget; #include "canvas.hpp" #include "input.hpp" +/// Main root object of libpdraw +/** + * The main required global of the library. + * You MUST set g_pGUI to a valid pointer and run Setup() afterwards for anything to function. + */ class CatGUI { public: CatGUI(); ~CatGUI(); void Setup(); - Canvas* GetRootWindow(); + Canvas* GetRootWindow(); /**< Use to get a container you can add widgets to. */ Canvas* m_pRootWindow; }; +/** Must be a valid pointer for library to function. */ extern CatGUI* g_pGUI;