|
utility 2026.1.9
A comprehensive C++ utilities library tailored for the development of modern desktop and extended reality (XR) applications.
|
#include <headers/utility/event/file_drop_event.hpp>


Classes | |
| class | Factory |
| Factory for creating FileDropEvent instances. More... | |
Public Member Functions | |
| FileDropEvent (void) | |
| Default constructor. | |
| ~FileDropEvent (void) override | |
| Default destructor. | |
| FileDropEvent & | setPaths (const std::vector< std::string > &paths) |
| Set the paths of dropped files/directories. | |
| const std::vector< std::string > & | getPaths (void) const noexcept |
| Get the paths of dropped files/directories. | |
| std::size_t | getCount (void) const noexcept |
| Get the number of dropped items. | |
Public Member Functions inherited from utility::event::Event | |
| Event (void)=default | |
| Default constructor. | |
| virtual | ~Event (void)=default |
| Virtual destructor. | |
File drop event.
Represents files and/or directories dropped on a window. This event is triggered when the user drops files on the window, typically from the file system or another application.
Definition at line 41 of file file_drop_event.hpp.
|
noexcept |
Get the number of dropped items.
Definition at line 65 of file file_drop_event.cpp.
|
noexcept |
Get the paths of dropped files/directories.
Definition at line 60 of file file_drop_event.cpp.
| FileDropEvent & utility::event::FileDropEvent::setPaths | ( | const std::vector< std::string > & | paths | ) |
Set the paths of dropped files/directories.
| paths | The UTF-8 encoded paths of dropped items. |
Definition at line 54 of file file_drop_event.cpp.