DropOnScene Class Reference
Event called to clone a resource, given its name as a string. More...
#include <GuiEvents.hh>
Public Member Functions | |
DropOnScene (const std::string &_dropText, const math::Vector2i &_dropMouse) | |
Constructor. | |
const std::string & | DropText () const |
Get the text of the dropped thing on the scene. | |
const math::Vector2i & | Mouse () const |
Get X and Y position. | |
Public Member Functions inherited from QEvent | |
QEvent (Type type) | |
virtual | ~QEvent () |
void | accept () |
void | ignore () |
bool | isAccepted () const |
void | setAccepted (bool accepted) |
bool | spontaneous () const |
Type | type () const |
Static Public Attributes | |
static const QEvent::Type | kType = QEvent::Type(QEvent::MaxUser - 15) |
Unique type for this event. | |
Additional Inherited Members | |
Static Public Member Functions inherited from QEvent | |
int | registerEventType (int hint) |
Properties inherited from QEvent | |
accepted | |
Detailed Description
Event called to clone a resource, given its name as a string.
Constructor & Destructor Documentation
◆ DropOnScene()
|
explicit |
Constructor.
- Parameters
-
[in] _dropText Dropped string. [in] _dropMouse x and y coordinate of mouse position.
Member Function Documentation
◆ DropText()
const std::string & DropText | ( | ) | const |
Get the text of the dropped thing on the scene.
- Returns
- The name of the dropped thing on the scene
◆ Mouse()
const math::Vector2i & Mouse | ( | ) | const |
Get X and Y position.
- Returns
- Get X and Y position
Member Data Documentation
◆ kType
|
static |
Unique type for this event.
The documentation for this class was generated from the following file: