|
Mana
|
An emote shortcut container. More...
#include <emoteshortcutcontainer.h>
Public Member Functions | |
| EmoteShortcutContainer () | |
| void | draw (gcn::Graphics *graphics) override |
| Draws the items. | |
| void | mouseDragged (gcn::MouseEvent &event) override |
| Handles mouse when dragged. | |
| void | mousePressed (gcn::MouseEvent &event) override |
| Handles mouse when pressed. | |
| void | mouseReleased (gcn::MouseEvent &event) override |
| Handles mouse release. | |
Public Member Functions inherited from ShortcutContainer | |
| ShortcutContainer () | |
| void | drawFrame (gcn::Graphics *graphics) override |
| void | widgetResized (const gcn::Event &event) override |
| Invoked when a widget changes its size. | |
| int | getMaxItems () const |
| int | getBoxWidth () const |
| int | getBoxHeight () const |
Private Attributes | |
| bool | mEmoteClicked = false |
| int | mEmoteMoved = -1 |
Additional Inherited Members | |
Protected Member Functions inherited from ShortcutContainer | |
| int | getIndexFromGrid (int pointX, int pointY) const |
| Gets the index from the grid provided the point is in an item box. | |
Protected Attributes inherited from ShortcutContainer | |
| int | mMaxItems = 0 |
| int | mBoxWidth = 0 |
| int | mBoxHeight = 0 |
| int | mCursorPosX = 0 |
| int | mCursorPosY = 0 |
| int | mGridWidth = 1 |
| int | mGridHeight = 1 |
An emote shortcut container.
Used to quickly use emoticons.
Definition at line 31 of file emoteshortcutcontainer.h.
| EmoteShortcutContainer::EmoteShortcutContainer | ( | ) |
Definition at line 36 of file emoteshortcutcontainer.cpp.
|
overridevirtual |
Draws the items.
Implements ShortcutContainer.
Definition at line 41 of file emoteshortcutcontainer.cpp.
|
override |
Handles mouse when dragged.
Definition at line 87 of file emoteshortcutcontainer.cpp.
|
override |
Handles mouse when pressed.
Definition at line 113 of file emoteshortcutcontainer.cpp.
|
override |
Handles mouse release.
Definition at line 131 of file emoteshortcutcontainer.cpp.
|
private |
Definition at line 57 of file emoteshortcutcontainer.h.
|
private |
Definition at line 58 of file emoteshortcutcontainer.h.