.. index:: pair: struct; EE::Window::DragPreview .. _doxid-struct_e_e_1_1_window_1_1_drag_preview: struct EE::Window::DragPreview ============================== .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct DragPreview { // fields const :ref:`Graphics::Image`* :ref:`image` { nullptr }; :ref:`Math::Vector2i` :ref:`hotspot` { -12, -16 }; }; .. _details-struct_e_e_1_1_window_1_1_drag_preview: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Fields ------ .. index:: pair: variable; image .. _doxid-struct_e_e_1_1_window_1_1_drag_preview_1ad75dc8c54ff967d5e8bf3b8fb523e187: .. ref-code-block:: cpp :class: doxyrest-title-code-block const :ref:`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 :ref:`UI ` widget. .. index:: pair: variable; hotspot .. _doxid-struct_e_e_1_1_window_1_1_drag_preview_1a03bf60711e3914a99cf6722134444790: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Math::Vector2i` hotspot { -12, -16 } Pointer position relative to the image's top-left corner, in desktop pixels (-2048..2048).