VCV Rack API v2
|
Occurs when a selection of files from the operating system is dropped onto a Widget. More...
#include <Widget.hpp>
Public Member Functions | |
PathDropEvent (const std::vector< std::string > &paths) | |
Public Member Functions inherited from rack::widget::BaseEvent | |
void | stopPropagating () const |
Prevents the event from being handled by more Widgets. | |
bool | isPropagating () const |
void | setTarget (Widget *w) const |
Tells the event handler that a particular Widget consumed the event. | |
Widget * | getTarget () const |
void | consume (Widget *w) const |
Sets the target Widget and stops propagating. | |
void | unconsume () const |
bool | isConsumed () const |
Public Attributes | |
const std::vector< std::string > & | paths |
List of file paths in the dropped selection. | |
Public Attributes inherited from rack::widget::BaseEvent | |
EventContext * | context = NULL |
Public Attributes inherited from rack::widget::Widget::PositionBaseEvent | |
math::Vec | pos |
The pixel coordinate where the event occurred, relative to the Widget it is called on. | |
Occurs when a selection of files from the operating system is dropped onto a Widget.
Recurses.
|
inline |
const std::vector<std::string>& rack::widget::Widget::PathDropEvent::paths |
List of file paths in the dropped selection.