DraggingInfo

Information about a dragging session.

Header#include "nativeui/dragging_info.h"
Namespacenamespace nu
Typeclass

This class can not be created by user, its instance can only be received in the drag and drop events.

Methods

bool IsDataAvailable(Clipboard::Data::Type type) const

Return whether the data of type is available.

On Linux the dragged data is only available in the handle_drop delegate.

Parameters

Return

bool

Clipboard::Data GetData(Clipboard::Data::Type type) const

Get the data of type from clipboard.

On Linux the dragged data is only available in the handle_drop delegate.

You should always check the type of returned data before using it.

Parameters

Return

Clipboard::Data

int GetDragOperations() const

Return the drag operation supported by drag source.

Most drag sources support multiple types of operations, you should always check whether an operation is supported by using bitwise AND operator.

Return

int