8#include "Primitives.hpp"
13enum class SWHolderType
22std::string getProjectDir();
37bool PrintwInLimitedX(
const Vector2i& startPos,
const std::string& text,
int xLimit,
38 int startIndx = 0,
bool truncIfNotFit =
true);
46void printwRectangle(
const Recti& rect,
bool hasSelection =
false,
int colorPair = 1);
63void printwMsgBox(
const std::string& msg,
const Recti& availableSpace);
70 const std::vector<std::string>& options,
int selectionIndx = -1,
int colorPair = 1);
74 ProgressBar(
char prgrsChar,
int size);
75 std::string GetProgressBar(
int progressPercent,
int xBoundary = __INT_MAX__)
const;
void printwMsgBox(const std::string &msg, const Recti &availableSpace)
Definition Utility.cpp:106
void printwRectangle(const Recti &rect, bool hasSelection=false, int colorPair=1)
Definition Utility.cpp:52
void printOptionsInLine(const Vector2i &startPos, int xAvailableSpace, const std::vector< std::string > &options, int selectionIndx=-1, int colorPair=1)
Definition Utility.cpp:186
void clearArea(const Recti &rect)
clearArea - clears specified rect, rect itself is not included, only area inside rectangle without bo...
Definition Utility.cpp:74
bool PrintwInLimitedX(const Vector2i &startPos, const std::string &text, int xLimit, int startIndx=0, bool truncIfNotFit=true)
Printw line in specified x boundary. if line is larger than x boundary. then truncate the line.
Definition Utility.cpp:23