Window showing popup menu.
More...
#include <popupmenu.h>
|
| | PopupMenu () |
| |
| void | showPopup (int x, int y, Being *being) |
| | Shows the being related popup menu at the specified mouse coords.
|
| |
| void | showPopup (int x, int y, FloorItem *floorItem) |
| | Shows the floor item related popup menu at the specified mouse coords.
|
| |
| void | showPopup (Window *parent, int x, int y, Item *item, bool isInventory, bool canDrop=true) |
| | Shows the related popup menu when right click on the inventory at the specified mouse coordinates.
|
| |
| void | handleLink (const std::string &link) override |
| | Handles link action.
|
| |
| | Container () |
| |
| | ~Container () override |
| |
| void | drawFrame (gcn::Graphics *graphics) override |
| |
Public Member Functions inherited from LinkHandler |
| virtual | ~LinkHandler ()=default |
| |
|
| void | showPopup (int x, int y) |
| | Shared code for the various showPopup functions.
|
| |
|
| Layout & | getLayout () |
| | Gets the layout handler for this container.
|
| |
| LayoutCell & | place (int x, int y, gcn::Widget *wg, int w=1, int h=1) |
| | Adds a widget to the container and sets it at given cell.
|
| |
| ContainerPlacer | getPlacer (int x, int y) |
| | Returns a proxy for adding widgets in an inner table of the layout.
|
| |
Window showing popup menu.
Definition at line 36 of file popupmenu.h.
◆ PopupMenu()
◆ handleLink()
| void PopupMenu::handleLink |
( |
const std::string & |
link | ) |
|
|
overridevirtual |
◆ showPopup() [1/4]
| void PopupMenu::showPopup |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
private |
Shared code for the various showPopup functions.
Definition at line 377 of file popupmenu.cpp.
◆ showPopup() [2/4]
| void PopupMenu::showPopup |
( |
int |
x, |
|
|
int |
y, |
|
|
Being * |
being |
|
) |
| |
Shows the being related popup menu at the specified mouse coords.
Definition at line 66 of file popupmenu.cpp.
◆ showPopup() [3/4]
| void PopupMenu::showPopup |
( |
int |
x, |
|
|
int |
y, |
|
|
FloorItem * |
floorItem |
|
) |
| |
Shows the floor item related popup menu at the specified mouse coords.
Definition at line 179 of file popupmenu.cpp.
◆ showPopup() [4/4]
| void PopupMenu::showPopup |
( |
Window * |
parent, |
|
|
int |
x, |
|
|
int |
y, |
|
|
Item * |
item, |
|
|
bool |
isInventory, |
|
|
bool |
canDrop = true |
|
) |
| |
Shows the related popup menu when right click on the inventory at the specified mouse coordinates.
Definition at line 331 of file popupmenu.cpp.
◆ mBeingId
| int PopupMenu::mBeingId = 0 |
|
private |
◆ mBrowserBox
◆ mFloorItem
◆ mItem
| Item* PopupMenu::mItem = nullptr |
|
private |
◆ mWindow
The documentation for this class was generated from the following files: