TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::DraggedImage Struct Reference

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

Detailed Description

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.

Member Data Documentation

◆ image

ImageIndex tachyon::DraggedImage::image {}

the registered image, for drawing it

◆ size

uint2 tachyon::DraggedImage::size {}

in pixels

◆ rgba

std::span<const uint8_t> tachyon::DraggedImage::rgba

size.x * size.y * 4 bytes; empty when only drawn


The documentation for this struct was generated from the following file: