struct EE::Window::DragPreview

Overview

#include <draganddrop.hpp>

struct DragPreview {
    // fields

    const Graphics::Image* image { nullptr };
    Math::Vector2i hotspot { -12, -16 };
};

Detailed Documentation

Fields

const Graphics::Image* image { nullptr }

Optional RGB/RGBA snapshot, borrowed only during startDrag(). If absent, a file/count icon is generated. The native session copies the pixels; it never retains a UI widget.

Math::Vector2i hotspot { -12, -16 }

Pointer position relative to the image’s top-left corner, in desktop pixels (-2048..2048).