Public Member Functions
cinder::app::FileDropEvent Class Reference

Represents a file-drop event, typically received from Windows Explorer or Mac OS X Finder. More...

#include <FileDropEvent.h>

Inherits cinder::app::Event.

List of all members.

Public Member Functions

 FileDropEvent (int aX, int aY, const std::vector< fs::path > &aFiles)
int getX () const
 Returns the X coordinate of the mouse during the event.
int getY () const
 Returns the Y coordinate of the mouse during the event.
Vec2i getPos () const
 Returns the coordinates of the mouse during the event.
const std::vector< fs::path > & getFiles () const
 Returns the vector of file paths which were dropped.
size_t getNumFiles () const
 Returns the number of files dropped during the event.
const fs::path & getFile (size_t index) const
 Returns the path for file number index.

Detailed Description

Represents a file-drop event, typically received from Windows Explorer or Mac OS X Finder.


Constructor & Destructor Documentation

cinder::app::FileDropEvent::FileDropEvent ( int  aX,
int  aY,
const std::vector< fs::path > &  aFiles 
)

Member Function Documentation

Returns the X coordinate of the mouse during the event.

Returns the Y coordinate of the mouse during the event.

Returns the coordinates 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.

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.


The documentation for this class was generated from the following file: