33 namespace cinder {
namespace app {
39 :
Event( win ), mX( aX ), mY( aY ), mFiles( aFiles )
43 int getX()
const {
return mX; }
45 int getY()
const {
return mY; }
50 const std::vector<fs::path>&
getFiles()
const {
return mFiles; }
54 const fs::path&
getFile(
size_t index )
const {
return mFiles.at(index); }
58 std::vector<fs::path> mFiles;
63 out <<
event.getPos() <<
": ";
64 out <<
"{" << std::endl;
65 for( std::vector<fs::path>::const_iterator fIt = event.
getFiles().begin(); fIt !=
event.getFiles().end(); ++fIt )
66 out <<
" " << *fIt << std::endl;
size_t getNumFiles() const
Returns the number of files dropped during the event.
Definition: FileDropEvent.h:52
std::ostream & operator<<(std::ostream &lhs, const InterfaceOrientation &rhs)
Stream InterfacefaceOrientation enum to std::ostream.
Definition: AppCocoaTouch.mm:666
const std::vector< fs::path > & getFiles() const
Returns the vector of file paths which were dropped.
Definition: FileDropEvent.h:50
int getX() const
Returns the X coordinate measured in points of the mouse during the event.
Definition: FileDropEvent.h:43
GLuint index
Definition: GLee.h:2259
Vec2i getPos() const
Returns the coordinates measured in points of the mouse during the event.
Definition: FileDropEvent.h:47
GLXFBConfig Window win
Definition: GLee.h:16730
std::shared_ptr< Window > WindowRef
Definition: Event.h:49
Base class for all Events.
Definition: Event.h:53
const fs::path & getFile(size_t index) const
Returns the path for file number index.
Definition: FileDropEvent.h:54
Represents a file-drop event, typically received from Windows Explorer or Mac OS X Finder...
Definition: FileDropEvent.h:36
FileDropEvent(WindowRef win, int aX, int aY, const std::vector< fs::path > &aFiles)
Definition: FileDropEvent.h:38
int getY() const
Returns the Y coordinate measured in points of the mouse during the event.
Definition: FileDropEvent.h:45
Vec2< int > Vec2i
Definition: Vector.h:1313