wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
DragDropPayload Struct Reference

Decoded contents of a wiRedPanda drag-and-drop MIME payload. More...

#include <DragDropPayload.h>

Public Attributes

QString blobName
 Embedded IC blob name (empty if file-based).
QString icFileName
 File-based IC path (empty if embedded).
bool isEmbedded = false
 True if this references an embedded IC blob.
QPoint offset
 Drag-start offset from the dragged item's origin.
ElementType type = ElementType::Unknown
 Element type being dragged.

Detailed Description

Decoded contents of a wiRedPanda drag-and-drop MIME payload.

Carries either a file-based IC reference (icFileName) or an embedded IC reference (isEmbedded + blobName), never both — populated by readDragDropPayload().

Definition at line 25 of file DragDropPayload.h.

Member Data Documentation

◆ blobName

QString DragDropPayload::blobName

Embedded IC blob name (empty if file-based).

Definition at line 30 of file DragDropPayload.h.

Referenced by readDragDropPayload().

◆ icFileName

QString DragDropPayload::icFileName

File-based IC path (empty if embedded).

Definition at line 28 of file DragDropPayload.h.

Referenced by readDragDropPayload().

◆ isEmbedded

bool DragDropPayload::isEmbedded = false

True if this references an embedded IC blob.

Definition at line 29 of file DragDropPayload.h.

Referenced by readDragDropPayload().

◆ offset

QPoint DragDropPayload::offset

Drag-start offset from the dragged item's origin.

Definition at line 26 of file DragDropPayload.h.

Referenced by readDragDropPayload().

◆ type

ElementType DragDropPayload::type = ElementType::Unknown

Element type being dragged.

Definition at line 27 of file DragDropPayload.h.

Referenced by readDragDropPayload().


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