utility 2026.1.9
A comprehensive C++ utilities library tailored for the development of modern desktop and extended reality (XR) applications.
Loading...
Searching...
No Matches
utility::event::FileDropEvent Class Reference

File drop event. More...

#include <headers/utility/event/file_drop_event.hpp>

Inheritance diagram for utility::event::FileDropEvent:
Collaboration diagram for utility::event::FileDropEvent:

Classes

class  Factory
 Factory for creating FileDropEvent instances. More...
 

Public Member Functions

 FileDropEvent (void)
 Default constructor.
 
 ~FileDropEvent (void) override
 Default destructor.
 
FileDropEventsetPaths (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.
 

Detailed Description

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.

Member Function Documentation

◆ getCount()

std::size_t utility::event::FileDropEvent::getCount ( void  ) const
noexcept

Get the number of dropped items.

Returns
The count of dropped files/directories.

Definition at line 65 of file file_drop_event.cpp.

◆ getPaths()

const std::vector< std::string > & utility::event::FileDropEvent::getPaths ( void  ) const
noexcept

Get the paths of dropped files/directories.

Returns
A vector of UTF-8 encoded paths.

Definition at line 60 of file file_drop_event.cpp.

◆ setPaths()

FileDropEvent & utility::event::FileDropEvent::setPaths ( const std::vector< std::string > &  paths)

Set the paths of dropped files/directories.

Parameters
pathsThe UTF-8 encoded paths of dropped items.
Returns
Reference to this FileDropEvent for method chaining.

Definition at line 54 of file file_drop_event.cpp.


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