From 9c6605287852b015766717253ab7b68f82dbe48e Mon Sep 17 00:00:00 2001 From: Tobi Date: Tue, 21 Sep 2021 16:31:45 +0200 Subject: [PATCH] Update renderd7.hpp --- renderd7.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/renderd7.hpp b/renderd7.hpp index e319ead..edde099 100644 --- a/renderd7.hpp +++ b/renderd7.hpp @@ -252,6 +252,23 @@ namespace RenderD7 std::string path; bool isDir; }; + struct rgba + { + int r, g, b, a + }; + class Console + { + public: + Console(int x, int y, int w, int h, int a = 255); + Console(int x, int y, int w, int h, rgba col); + Console(int x, int y, int w, int h, std::string name, rgba col = {255, 255, 255, 255};, rgba barcol = {0, 0, 0, 255};, rgba outline = {222, 222, 222, 255};); + ~Console(); + private: + int x, y, w, h, a; + rgba color = {255, 255, 255, 255}; + rgba outline = {222, 222, 222, 255}; + rgba barcolor = {0, 0, 0, 255}; + }! bool NameIsEndingWith(const std::string &name, const std::vector &extensions); void GetDirContentsExt(std::vector &dircontent, const std::vector &extensions);