struct EE::Window::DataDrop

Overview

A drop received through setDataDropHandler(). More…

#include <draganddrop.hpp>

struct DataDrop {
    // fields

    std::vector<std::pair<std::string, std::string>> items;
    Math::Vector2f position;

    // methods

    const std::string* find(std::string_view mimeType) const;
};

Detailed Documentation

A drop received through setDataDropHandler().

Fields

std::vector<std::pair<std::string, std::string>> items

Each requested MIME type the drag offered, with its contents, in the requested order.

Math::Vector2f position

Where it was dropped, in window coordinates.

Methods

const std::string* find(std::string_view mimeType) const

The contents offered as mimeType, or nullptr.