44 #include "render/graphics.h" 91 "(C) ManaPlus developers, http://manaplus.org");
103 if (
theme !=
nullptr)
109 if (
mSkin !=
nullptr)
140 const int width = rect.
width;
141 const int height = rect.
height;
147 if (width > wallpWidth || height > wallpHeight)
156 (width - wallpWidth) / 2,
157 (height - wallpHeight) / 2);
185 const std::string wallpaperName =
190 if (nWallPaper !=
nullptr)
199 const int width = rect.
width;
200 const int height = rect.
height;
208 nWallPaper, width, height);
210 if (newRsclWlPpr !=
nullptr)
228 logger->
log(
"Couldn't load %s as wallpaper", wallpaperName.c_str());
234 if (link ==
"copyright")
virtual RenderType useOpenGL() const
ImageHelper * imageHelper
void unload(Skin *const skin)
Desktop(const Widget2 *const widget)
void addXY(Widget *const widget, const int x, const int y)
#define BLOCK_START(name)
static std::string getThemePath()
#define GLDEBUG_START(text)
Skin * load(const std::string &filename, const std::string &filename2, const bool full, const std::string &defaultPath)
Color mBackgroundGrayColor
void draw(Graphics *const graphics)
int getOption(const std::string &name) const
void setBestFittingWallpaper()
void setLinkHandler(LinkHandler *linkHandler)
bool getBoolValue(const std::string &key) const
virtual void setColor(const Color &color)
std::string strprintf(const char *const format,...)
virtual void drawRescaledImage(const Image *const image, int dstX, int dstY, const int desiredWidth, const int desiredHeight)=0
static Image * getImageFromTheme(const std::string &path)
static void loadWallpapers()
void safeDraw(Graphics *const graphics)
void widgetResized(const Event &event)
std::string getValue(const std::string &key, const std::string &deflt) const
virtual void fillRectangle(const Rect &rectangle)=0
virtual void drawImage(const Image *const image, int dstX, int dstY)=0
void handleLink(const std::string &link, MouseEvent *event)
void draw(Graphics *const graphics)
int getWidth() const A_INLINE
void decRefDelete(Resource *const res)
void log(const char *const log_text,...)
StaticBrowserBox * mVersionLabel
static std::string getWallpaper(const int width, const int height)
void addRow(const std::string &row, const bool atTop)
Image * getRescaled(const Image *const image, const int width, const int height)
int getHeight() const A_INLINE