0.44.0
|
#include <iDrag.h>
Public Member Functions | |
iDrag (iWidgetPtr source=nullptr) | |
void | setMimeData (const iMimeData &mimeData) |
const iMimeData & | getMimeData () const |
iWidgetID | getSource () const |
void | setTexture (iTexturePtr texture) |
iTexturePtr | getTexture () const |
void | accept () |
void | reject () |
void | clear () |
iDragState | getDragState () const |
void | execute () |
drag data for drag & drop
igor::iDrag::iDrag | ( | iWidgetPtr | source = nullptr | ) |
store source id
source | source widget |
void igor::iDrag::accept | ( | ) |
accept the drag as valid
void igor::iDrag::clear | ( | ) |
reset the drag state to neutral
void igor::iDrag::execute | ( | ) |
execute the drag
iDragState igor::iDrag::getDragState | ( | ) | const |
const iMimeData & igor::iDrag::getMimeData | ( | ) | const |
iWidgetID igor::iDrag::getSource | ( | ) | const |
iTexturePtr igor::iDrag::getTexture | ( | ) | const |
void igor::iDrag::reject | ( | ) |
reject the drag as invalid
void igor::iDrag::setMimeData | ( | const iMimeData & | mimeData | ) |
sets mime data
mimeData | the mime data to set |
void igor::iDrag::setTexture | ( | iTexturePtr | texture | ) |
sets texture displayed along the cursor during drag
texture | the texture to display |