FIFE
|
#include <clicklabel.h>
Inherits Widget, MouseListener, KeyListener, and FocusListener.
Public Member Functions | |
ClickLabel () | |
ClickLabel (const std::string &caption) | |
virtual | ~ClickLabel () |
virtual void | setWidth (int32_t width) |
virtual void | setCaption (const std::string &caption) |
virtual const std::string & | getCaption () const |
virtual void | draw (Graphics *graphics) |
virtual void | adjustSize () |
void | setTextWrapping (bool) |
bool | isTextWrapping () const |
virtual void | focusLost (const Event &event) |
virtual void | mousePressed (MouseEvent &mouseEvent) |
virtual void | mouseReleased (MouseEvent &mouseEvent) |
virtual void | mouseEntered (MouseEvent &mouseEvent) |
virtual void | mouseExited (MouseEvent &mouseEvent) |
virtual void | mouseDragged (MouseEvent &mouseEvent) |
virtual void | keyPressed (KeyEvent &keyEvent) |
virtual void | keyReleased (KeyEvent &keyEvent) |
Protected Member Functions | |
void | wrapText () |
Protected Attributes | |
FIFE::GuiFont * | mGuiFont |
bool | mTextWrapping |
std::string | mCaption |
std::string | mWrappedText |
bool | mHasMouse |
bool | mKeyPressed |
bool | mMousePressed |
Definition at line 42 of file clicklabel.h.
gcn::ClickLabel::ClickLabel | ( | ) |
Definition at line 38 of file clicklabel.cpp.
References mGuiFont, and setTextWrapping().
gcn::ClickLabel::ClickLabel | ( | const std::string & | caption | ) |
Definition at line 49 of file clicklabel.cpp.
References mGuiFont, setCaption(), setTextWrapping(), and wrapText().
|
virtual |
Definition at line 62 of file clicklabel.cpp.
|
virtual |
Definition at line 114 of file clicklabel.cpp.
References FIFE::GuiFont::getAsImageMultiline(), FIFE::Image::getHeight(), FIFE::Image::getWidth(), isTextWrapping(), mCaption, mGuiFont, mWrappedText, and setWidth().
Referenced by draw().
|
virtual |
Definition at line 80 of file clicklabel.cpp.
References adjustSize(), FIFE::GuiFont::drawMultiLineString(), isTextWrapping(), mCaption, mGuiFont, mWrappedText, and wrapText().
|
virtual |
Definition at line 190 of file clicklabel.cpp.
References mKeyPressed, and mMousePressed.
|
virtual |
Definition at line 71 of file clicklabel.cpp.
References mCaption.
bool gcn::ClickLabel::isTextWrapping | ( | ) | const |
Definition at line 110 of file clicklabel.cpp.
References mTextWrapping.
Referenced by adjustSize(), draw(), and wrapText().
|
virtual |
Definition at line 169 of file clicklabel.cpp.
References mKeyPressed.
|
virtual |
Definition at line 179 of file clicklabel.cpp.
References mKeyPressed.
|
virtual |
Definition at line 164 of file clicklabel.cpp.
|
virtual |
Definition at line 147 of file clicklabel.cpp.
References mHasMouse.
|
virtual |
Definition at line 142 of file clicklabel.cpp.
References mHasMouse.
|
virtual |
Definition at line 134 of file clicklabel.cpp.
References mMousePressed.
|
virtual |
Definition at line 152 of file clicklabel.cpp.
References mHasMouse, and mMousePressed.
|
virtual |
Definition at line 65 of file clicklabel.cpp.
References mCaption, mGuiFont, and wrapText().
Referenced by ClickLabel().
void gcn::ClickLabel::setTextWrapping | ( | bool | textWrapping | ) |
Definition at line 102 of file clicklabel.cpp.
References mTextWrapping, and wrapText().
Referenced by ClickLabel().
|
virtual |
Definition at line 75 of file clicklabel.cpp.
References wrapText().
Referenced by adjustSize().
|
protected |
Definition at line 127 of file clicklabel.cpp.
References isTextWrapping(), mCaption, mGuiFont, mWrappedText, and FIFE::GuiFont::splitTextToWidth().
Referenced by ClickLabel(), draw(), setCaption(), setTextWrapping(), and setWidth().
|
protected |
Definition at line 88 of file clicklabel.h.
Referenced by adjustSize(), draw(), getCaption(), setCaption(), and wrapText().
|
protected |
Definition at line 86 of file clicklabel.h.
Referenced by adjustSize(), ClickLabel(), draw(), setCaption(), and wrapText().
|
protected |
Definition at line 91 of file clicklabel.h.
Referenced by mouseEntered(), mouseExited(), and mouseReleased().
|
protected |
Definition at line 92 of file clicklabel.h.
Referenced by focusLost(), keyPressed(), and keyReleased().
|
protected |
Definition at line 93 of file clicklabel.h.
Referenced by focusLost(), mousePressed(), and mouseReleased().
|
protected |
Definition at line 87 of file clicklabel.h.
Referenced by isTextWrapping(), and setTextWrapping().
|
protected |
Definition at line 89 of file clicklabel.h.
Referenced by adjustSize(), draw(), and wrapText().