ManaPlus
|
#include <tooltiplistener.h>
Public Member Functions | |
ToolTipListener () | |
void | setToolTip (const std::string &str) |
std::string | getToolTip () const |
void | mouseMoved (MouseEvent &event) |
void | mouseExited (MouseEvent &event) |
Public Member Functions inherited from MouseListener | |
virtual | ~MouseListener () |
virtual void | mouseEntered (MouseEvent &event) |
virtual void | mousePressed (MouseEvent &event) |
virtual void | mouseReleased (MouseEvent &event) |
virtual void | mouseClicked (MouseEvent &event) |
virtual void | mouseWheelMovedUp (MouseEvent &event) |
virtual void | mouseWheelMovedDown (MouseEvent &event) |
virtual void | mouseDragged (MouseEvent &event) |
Protected Attributes | |
std::string | mToolTip |
Additional Inherited Members | |
Protected Member Functions inherited from MouseListener | |
MouseListener () | |
Definition at line 31 of file tooltiplistener.h.
ToolTipListener::ToolTipListener | ( | ) |
Definition at line 31 of file tooltiplistener.cpp.
|
inline |
|
virtual |
Called when the mouse has exited the widget area.
event | Describes the event. |
Reimplemented from MouseListener.
Definition at line 58 of file tooltiplistener.cpp.
References Popup::hide(), mToolTip, and textBoxPopup.
Referenced by CheckBox::mouseExited().
|
virtual |
Called when the mouse has moved in the widget area and no mouse button has been pressed (i.e no widget is being dragged).
event | Describes the event. |
Reimplemented from MouseListener.
Definition at line 37 of file tooltiplistener.cpp.
References Gui::getMouseState(), Viewport::mMouseX, Viewport::mMouseY, mToolTip, TextBoxPopup::show(), textBoxPopup, viewport, x, and y.
|
inline |
Definition at line 38 of file tooltiplistener.h.
References mToolTip.
Referenced by SetupItemCheckBox::createControls(), SetupItemTextField::createControls(), SetupItemIntTextField::createControls(), SetupItemLabel::createControls(), SetupItemDropDown::createControls(), SetupItemDropDownStr::createControls(), SetupItemSlider::createControls(), SetupItemSlider2::createControls(), SetupItemSliderList::createControls(), SetupQuickItem::createControls(), and SetupActionDropDown::createControls().
|
protected |
Definition at line 49 of file tooltiplistener.h.
Referenced by getToolTip(), mouseExited(), mouseMoved(), and setToolTip().