Public Member Functions | Public Attributes
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 (WindowRef win, int aX, int aY, const std::vector< fs::path > &aFiles)
int getX () const
 Returns the X coordinate measured in points of the mouse during the event.
int getY () const
 Returns the Y coordinate measured in points of the mouse during the event.
Vec2i getPos () const
 Returns the coordinates measured in points 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.
bool isHandled () const
 Returns whether this event has been marked as handled by one of its slots, terminating the normal iteration of the event's slots.
void setHandled (bool handled=true)
 Marks the event as handled, terminating the normal iteration of the event's slots.
WindowRef getWindow () const
 Returns the Window in which the MouseEvent occurred.
void setWindow (const WindowRef &window)

Public Attributes

bool mHandled
WindowRef mWindow

Detailed Description

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


Constructor & Destructor Documentation

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

Member Function Documentation

Returns the X coordinate measured in points of the mouse during the event.

Returns the Y coordinate measured in points of the mouse during the event.

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.

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.

Returns the Window in which the MouseEvent occurred.

void cinder::app::Event::setWindow ( const WindowRef window) [inherited]

Member Data Documentation

bool cinder::app::Event::mHandled [inherited]

Reimplemented in cinder::app::KeyEvent.


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