Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QWindowsOleDropSource Class Reference

Implementation of IDropSource. More...

Inheritance diagram for QWindowsOleDropSource:
Collaboration diagram for QWindowsOleDropSource:

Public Types

enum  Mode { MouseDrag , TouchDrag , MouseDrag , TouchDrag }
enum  Mode { MouseDrag , TouchDrag , MouseDrag , TouchDrag }

Public Member Functions

 QWindowsOleDropSource (QWindowsDrag *drag)
 ~QWindowsOleDropSource () override
void createCursors ()
 Blend custom pixmap with cursors.
STDMETHOD QueryContinueDrag (BOOL fEscapePressed, DWORD grfKeyState) noexcept override
 Check for cancel.
STDMETHOD GiveFeedback (DWORD dwEffect) noexcept override
 Give feedback: Change cursor according to action.
 QWindowsOleDropSource (QWindowsDrag *drag)
 ~QWindowsOleDropSource () override
void createCursors ()
STDMETHOD QueryContinueDrag (BOOL fEscapePressed, DWORD grfKeyState) noexcept override
STDMETHOD GiveFeedback (DWORD dwEffect) noexcept override

Friends

QDebug operator<< (QDebug d, const QWindowsOleDropSource::CursorEntry &e)
QDebug operator<< (QDebug d, const QWindowsOleDropSource::CursorEntry &e)

Detailed Description

Implementation of IDropSource.

Used for drag operations.

See also
QWindowsDrag

Definition at line 172 of file qwindowsdrag.cpp.

Member Enumeration Documentation

◆ Mode [1/2]

Enumerator
MouseDrag 
TouchDrag 
MouseDrag 
TouchDrag 

Definition at line 175 of file qwindowsdrag.cpp.

◆ Mode [2/2]

Enumerator
MouseDrag 
TouchDrag 
MouseDrag 
TouchDrag 

Definition at line 175 of file qwindowsdrag.cpp.

Constructor & Destructor Documentation

◆ QWindowsOleDropSource() [1/2]

QWindowsOleDropSource::QWindowsOleDropSource ( QWindowsDrag * drag)
explicit

Definition at line 215 of file qwindowsdrag.cpp.

References QWindowsOleDropSource(), QWindowsCursor::cursorState(), MouseDrag, QWindowsCursor::Suppressed, and TouchDrag.

Referenced by QWindowsOleDropSource(), and QWindowsDrag::drag().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~QWindowsOleDropSource() [1/2]

QWindowsOleDropSource::~QWindowsOleDropSource ( )
override

Definition at line 225 of file qwindowsdrag.cpp.

◆ QWindowsOleDropSource() [2/2]

QWindowsOleDropSource::QWindowsOleDropSource ( QWindowsDrag * drag)
explicit

◆ ~QWindowsOleDropSource() [2/2]

QWindowsOleDropSource::~QWindowsOleDropSource ( )
override

Member Function Documentation

◆ createCursors() [1/2]

void QWindowsOleDropSource::createCursors ( )

Blend custom pixmap with cursors.

Definition at line 245 of file qwindowsdrag.cpp.

References QWindowsContext::instance(), QWindowsCursor::mousePosition(), QWindowsScreenManager::screenAtDp(), QWindowsContext::screenManager(), and TouchDrag.

Referenced by QWindowsDrag::drag().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createCursors() [2/2]

void QWindowsOleDropSource::createCursors ( )

◆ GiveFeedback() [1/2]

QT_ENSURE_STACK_ALIGNED_FOR_SSE STDMETHODIMP QWindowsOleDropSource::GiveFeedback ( DWORD dwEffect)
overridenoexcept

Give feedback: Change cursor according to action.

Definition at line 394 of file qwindowsdrag.cpp.

◆ GiveFeedback() [2/2]

STDMETHOD QWindowsOleDropSource::GiveFeedback ( DWORD dwEffect)
overridenoexcept

◆ QueryContinueDrag() [1/2]

QT_ENSURE_STACK_ALIGNED_FOR_SSE STDMETHODIMP QWindowsOleDropSource::QueryContinueDrag ( BOOL fEscapePressed,
DWORD grfKeyState )
overridenoexcept

Check for cancel.

Definition at line 340 of file qwindowsdrag.cpp.

◆ QueryContinueDrag() [2/2]

STDMETHOD QWindowsOleDropSource::QueryContinueDrag ( BOOL fEscapePressed,
DWORD grfKeyState )
overridenoexcept

◆ operator<< [1/2]

QDebug operator<< ( QDebug d,
const QWindowsOleDropSource::CursorEntry & e )
friend

Definition at line 233 of file qwindowsdrag.cpp.

◆ operator<< [2/2]

QDebug operator<< ( QDebug d,
const QWindowsOleDropSource::CursorEntry & e )
friend

Definition at line 233 of file qwindowsdrag.cpp.


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