#include <FileDropEvent.h>
Inherits cinder::app::Event.
Represents a file-drop event, typically received from Windows Explorer or Mac OS X Finder.
cinder::app::FileDropEvent::FileDropEvent |
( |
WindowRef |
win, |
|
|
int |
aX, |
|
|
int |
aY, |
|
|
const std::vector< fs::path > & |
aFiles |
|
) |
| |
int cinder::app::FileDropEvent::getX |
( |
| ) |
const |
Returns the X coordinate measured in points of the mouse during the event.
int cinder::app::FileDropEvent::getY |
( |
| ) |
const |
Returns the Y coordinate measured in points of the mouse during the event.
glm::ivec2 cinder::app::FileDropEvent::getPos |
( |
| ) |
const |
Returns the coordinates measured in points of the mouse during the event.
const std::vector<fs::path>& cinder::app::FileDropEvent::getFiles |
( |
| ) |
const |
Returns the vector of file paths which were dropped.
size_t cinder::app::FileDropEvent::getNumFiles |
( |
| ) |
const |
Returns the number of files dropped during the event.
const fs::path& cinder::app::FileDropEvent::getFile |
( |
size_t |
index | ) |
const |
Returns the path for file number index.
bool cinder::app::Event::isHandled |
( |
| ) |
const |
|
inherited |
Returns whether this event has been marked as handled by one of its slots, terminating the normal iteration of the event's slots.
void cinder::app::Event::setHandled |
( |
bool |
handled = true | ) |
|
|
inherited |
Marks the event as handled, terminating the normal iteration of the event's slots.
WindowRef cinder::app::Event::getWindow |
( |
| ) |
const |
|
inherited |
void cinder::app::Event::setWindow |
( |
const WindowRef & |
window | ) |
|
|
inherited |
bool cinder::app::Event::mHandled |
|
inherited |
The documentation for this class was generated from the following file: