opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
drop_file_event.h
Go to the documentation of this file.
1#pragma once
2
5
6#include <filesystem>
7#include <utility>
8
9namespace osc
10{
11 // Represents a file that has been dragged into the application.
12 class DropFileEvent final : public Event {
13 public:
14 explicit DropFileEvent(std::filesystem::path path) :
16 path_{std::move(path)}
17 {}
18
19 const std::filesystem::path& path() const { return path_; }
20
21 private:
22 std::filesystem::path path_;
23 };
24}
Definition drop_file_event.h:12
DropFileEvent(std::filesystem::path path)
Definition drop_file_event.h:14
const std::filesystem::path & path() const
Definition drop_file_event.h:19
Definition event.h:13
Definition custom_decoration_generator.h:5
EventType
Definition event_type.h:7
constexpr U to(T &&value)
Definition conversion.h:56