37 Popup(
"SpellPopup",
"spellpopup.xml"),
93 const int distance = 20;
95 int posX = std::max(0,
x -
getWidth() / 2);
96 int posY =
y + distance;
99 const int w = rect.
width;
100 const int h = rect.
height;
110 if (
y > h + distance)
111 posY =
y - h - distance;
virtual void add(Widget *const widget)
void setForegroundColorAll(const Color &color1, const Color &color2)
const std::string & getCaption() const
void setCaption(const std::string &caption)
std::string getName() const
std::string getComment() const