|
TachyonUI 1.1.0
High-performance UI for building tools.
|
A picture being dragged (DragPayload::Image). More...
#include <gui_core/state/gui_drag_drop_state.h>
Public Attributes | |
| ImageIndex | image {} |
| the registered image, for drawing it | |
| uint2 | size {} |
| in pixels | |
| std::span< const uint8_t > | rgba |
| size.x * size.y * 4 bytes; empty when only drawn | |
A picture being dragged (DragPayload::Image).
It refers to the source's pixels rather than copying them: the source keeps them alive while the drag lasts and in the frame of the drop.
| ImageIndex tachyon::DraggedImage::image {} |
the registered image, for drawing it
| uint2 tachyon::DraggedImage::size {} |
in pixels
| std::span<const uint8_t> tachyon::DraggedImage::rgba |
size.x * size.y * 4 bytes; empty when only drawn