41 m_downImage(down_file),
42 m_hoverImage(hover_file),
70 }
else if(mHasMouse) {
77 graphics->drawImage(img, xoffset, yoffset, 0, 0, getWidth(), getHeight());
80 graphics->setColor(getForegroundColor());
82 int32_t textY = getHeight() / 2 - getFont()->getHeight() / 2;
83 switch (getAlignment())
88 case Graphics::CENTER:
89 textX = getWidth() / 2;
92 textX = getWidth() - 4;
97 << getAlignment() <<
". Using the default of Graphics::LEFT");
100 graphics->setFont(getFont());
101 if (mCaption.size() > 0) {
103 graphics->drawText(getCaption(), textX + 1,
104 textY + 1, getAlignment());
106 graphics->drawText(getCaption(), textX, textY, getAlignment());
#define FL_WARN(logger, msg)
Helper class to create log strings out from separate parts Usage: LMsg("some text") << variable << "...
Create a Logger instance to communicate with LogManager Logger stores information about the current m...
static FIFE::Logger _log(LM_GUI)