41 m_downImage(down_file),
42 m_hoverImage(hover_file),
45 addWidgetListener(
this);
72 }
else if(mHasMouse) {
79 graphics->drawImage(img, xoffset, yoffset, 0, 0, getWidth(), getHeight());
82 graphics->setColor(getForegroundColor());
84 int32_t textY = getHeight() / 2 - getFont()->getHeight() / 2;
85 switch (getAlignment())
90 case Graphics::Center:
91 textX = getWidth() / 2;
94 textX = getWidth() - 4;
99 << getAlignment() <<
". Using the default of Graphics::LEFT");
102 graphics->setFont(getFont());
103 if (mCaption.size() > 0) {
105 graphics->drawText(getCaption(), textX + 1,
106 textY + 1, getAlignment());
108 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 << "...
static FIFE::Logger _log(LM_GUI)
Create a Logger instance to communicate with LogManager Logger stores information about the current m...