24 #ifndef GUI_WIDGETS_SERVERSLISTBOX_H
25 #define GUI_WIDGETS_SERVERSLISTBOX_H
38 ListBox(widget, model,
"serverslistbox.xml"),
42 ThemeColorId::SERVER_VERSION_NOT_SUPPORTED_OUTLINE, 255U))
76 const int fontHeight = font1->
getHeight();
77 const int pad1 = fontHeight +
mPadding;
78 const int pad2 = height / 4 +
mPadding;
102 if (!
info.name.empty())
118 if (!
info.description.empty())
134 if (
info.version.first > 0)
int getWidth(const std::string &text) const
void drawString(Graphics *const graphics, Color col, const Color &col2, const std::string &text, const int x, const int y)
Color mForegroundSelectedColor2
Color mForegroundSelectedColor
void safeDraw(Graphics *const graphics)
unsigned int getRowHeight() const
Color mNotSupportedColor2
void draw(Graphics *const graphics)
ServersListBox(const Widget2 *const widget, ServersListModel *const model)
const ServerInfo & getServer(const int elementIndex) const
std::string getElementAt(int elementIndex)
int getNumberOfElements()
const Image *restrict const top
#define A_DELETE_COPY(func)
bool info(InputEvent &event)