Class WindowDropEvent#
Defined in File WindowEvent.h
Inheritance Relationships#
Base Type#
public TRAP::Events::Event
(Class Event)
Class Documentation#
-
class WindowDropEvent : public TRAP::Events::Event#
Window drag and drop.
Remark
Headless mode: This class is not available in headless mode.
Public Functions
-
WindowDropEvent(std::vector<std::string> paths, TRAP::Window &window)#
Constructor.
Note
The window must outlive the WindowDropEvent!
- Parameters:
paths – Path(s) to the file(s) or folder(s) dropped onto the window.
window – The affected window.
-
constexpr ~WindowDropEvent() override = default#
Destructor.
-
consteval WindowDropEvent(const WindowDropEvent&) noexcept = delete#
Copy constructor.
-
consteval WindowDropEvent &operator=(const WindowDropEvent&) noexcept = delete#
Copy assignment operator.
-
constexpr WindowDropEvent(WindowDropEvent&&) noexcept = default#
Move constructor.
-
WindowDropEvent &operator=(WindowDropEvent&&) noexcept = default#
Move assignment operator.
-
constexpr std::vector<std::string> GetPaths() const noexcept#
Retrieve the dropped paths.
- Returns:
Vector of file or folder paths.
-
constexpr TRAP::Window &GetWindow() const noexcept#
Retrieve a reference to the affected window.
- Returns:
Window reference.
-
virtual constexpr EventType GetEventType() const noexcept override#
Retrieve the EventType of the event.
- Returns:
EventType.
-
virtual constexpr std::string GetName() const override#
Retrieve the name of the event.
- Returns:
Name.
-
virtual constexpr EventCategory GetCategoryFlags() const noexcept override#
Retrieve the category flags of the event.
- Returns:
Combination of one or more EventCategory’s.
-
virtual std::string ToString() const override#
Get a string representation of the event.
- Returns:
String representation.
-
WindowDropEvent(std::vector<std::string> paths, TRAP::Window &window)#