34 #include "render/graphics.h"
55 logger->
log(
"Popup::Popup(\"%s\")", name.c_str());
99 logger->
log(
"error: Popup created without calling postInit(): "
113 if (
mSkin !=
nullptr)
137 if (
mSkin !=
nullptr)
176 if (widget ==
nullptr)
196 if (
mSkin !=
nullptr)
209 if (
mSkin !=
nullptr)
237 const int distance = 20;
241 int posX = std::max(0,
x - width / 2);
242 int posY =
y + distance;
247 posY =
y - height - distance;
virtual void add(Widget *const widget)
virtual void safeDrawChildren(Graphics *const graphics)
virtual void drawChildren(Graphics *const graphics)
virtual void drawTileCollection(const ImageCollection *const vertCol)=0
virtual void finalize(ImageCollection *const col)
virtual void calcWindow(ImageCollection *const vertCol, const int x, const int y, const int w, const int h, const ImageRect &imgRect)=0
virtual void drawImageRect(const int x, const int y, const int w, const int h, const ImageRect &imgRect)=0
void log(const char *const log_text,...)
int getOption(const std::string &name) const
const ImageRect & getBorder() const
void unload(Skin *const skin)
static std::string getThemePath()
Skin * load(const std::string &filename, const std::string &filename2, const bool full, const std::string &defaultPath)
void scheduleDelete(Widget *const widget)
#define BLOCK_START(name)
WindowContainer * windowContainer