1 #include <Interface/Menu/MenuItemLabel.hpp> 2 #include <Config/Globals.hpp> 4 MenuItemLabel::MenuItemLabel(std::string label,
int id, std::string rightLabel):
8 this->
type = MenuItem::LABEL;
13 unsigned int rightLabelSize = this->rightLabel.size();
17 window->
print(this->rightLabel,
18 x + width - rightLabelSize,
21 Globals::Theme::hilite_text:
22 Globals::Theme::text));
28 void MenuItemLabel::set(std::string str)
30 this->rightLabel = str;
A segment of the terminal screen (2D char matrix).
void print(std::string str, int x, int y, ColorPair pair=0)
Shows text #str at #x #y on the window with color #pair.