A generic shortcut container.
More...
#include <shortcutcontainer.h>
|
int | getIndexFromGrid (int pointX, int pointY) const |
| Gets the index from the grid provided the point is in an item box.
|
|
A generic shortcut container.
Definition at line 33 of file shortcutcontainer.h.
◆ ShortcutContainer()
ShortcutContainer::ShortcutContainer |
( |
| ) |
|
◆ draw()
void ShortcutContainer::draw |
( |
gcn::Graphics * |
graphics | ) |
|
|
overridepure virtual |
◆ drawFrame()
void ShortcutContainer::drawFrame |
( |
gcn::Graphics * |
graphics | ) |
|
|
inlineoverride |
◆ getBoxHeight()
int ShortcutContainer::getBoxHeight |
( |
| ) |
const |
|
inline |
◆ getBoxWidth()
int ShortcutContainer::getBoxWidth |
( |
| ) |
const |
|
inline |
◆ getIndexFromGrid()
int ShortcutContainer::getIndexFromGrid |
( |
int |
pointX, |
|
|
int |
pointY |
|
) |
| const |
|
protected |
Gets the index from the grid provided the point is in an item box.
- Parameters
-
pointX | X coordinate of the point. |
pointY | Y coordinate of the point. |
- Returns
- index on success, -1 on failure.
Definition at line 53 of file shortcutcontainer.cpp.
◆ getMaxItems()
int ShortcutContainer::getMaxItems |
( |
| ) |
const |
|
inline |
◆ widgetResized()
void ShortcutContainer::widgetResized |
( |
const gcn::Event & |
event | ) |
|
|
override |
Invoked when a widget changes its size.
This is used to determine the new height of the container.
Definition at line 38 of file shortcutcontainer.cpp.
◆ mBoxHeight
int ShortcutContainer::mBoxHeight = 0 |
|
protected |
◆ mBoxWidth
int ShortcutContainer::mBoxWidth = 0 |
|
protected |
◆ mCursorPosX
int ShortcutContainer::mCursorPosX = 0 |
|
protected |
◆ mCursorPosY
int ShortcutContainer::mCursorPosY = 0 |
|
protected |
◆ mGridHeight
int ShortcutContainer::mGridHeight = 1 |
|
protected |
◆ mGridWidth
int ShortcutContainer::mGridWidth = 1 |
|
protected |
◆ mMaxItems
int ShortcutContainer::mMaxItems = 0 |
|
protected |
The documentation for this class was generated from the following files: