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
qohosnativedrageventshandler.cpp File Reference

(dc8a6de42c8adb89275628f0adb067e9664a795d)

#include <QtCore/private/qohoscommon_p.h>
#include <QtCore/private/qohoslogger_p.h>
#include <QtCore/qmimedata.h>
#include <QtGui/private/qdnd_p.h>
#include <QtGui/private/qguiapplication_p.h>
#include <QtGui/private/qhighdpiscaling_p.h>
#include <algorithm>
#include <arkui/ui_input_event.h>
#include <array>
#include <chrono>
#include <cstdint>
#include <database/udmf/udmf.h>
#include <deque>
#include <functional>
#include <future>
#include <info/application_target_sdk_version.h>
#include <memory>
#include <qarkui/qarkuiutils.h>
#include <qohosjsutils.h>
#include <qohosplatformdrag.h>
#include <qohosudmf.h>
#include <qohosudmfconversions.h>
#include <qohosutils.h>
#include <qpa/qplatformdrag.h>
#include <qpa/qplatformintegration.h>
#include <qpa/qwindowsysteminterface.h>
#include <render/qohosbatchingrequestshandler.h>
#include <render/qohosdrageventutils.h>
#include <render/qohosnativedrageventshandler.h>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>
Include dependency graph for qohosnativedrageventshandler.cpp:

Go to the source code of this file.

Classes

struct  QT_BEGIN_NAMESPACE::DragEventInfo

Namespaces

namespace  QT_BEGIN_NAMESPACE
 Combined button and popup list for selecting options.

Functions

template<typename T>
QOhosSupplier< T > QT_BEGIN_NAMESPACE::makeImplicitlySharedSupplier (QOhosSupplier< T > baseSupplier)
std::int32_t QT_BEGIN_NAMESPACE::getDragEventDataTypeCount (::ArkUI_DragEvent *dragEvent)
std::vector< std::string > QT_BEGIN_NAMESPACE::getDragEventDataTypes (::ArkUI_DragEvent *dragEvent)
std::shared_ptr< QOhosUdmfDataQT_BEGIN_NAMESPACE::tryGetDragEventUdmfDataOrNull (::ArkUI_DragEvent *dragEvent)
void QT_BEGIN_NAMESPACE::setDragEventSuggestedDropOperationIfAvailable (::ArkUI_DragEvent *dragEvent, QOhosOptional<::ArkUI_DropOperation > optDropOperation)
std::uint64_t QT_BEGIN_NAMESPACE::getDragEventModifierKeyStates (::ArkUI_DragEvent *dragEvent)
Qt::KeyboardModifiers QT_BEGIN_NAMESPACE::mapArkUiModifierKeyStatesToQt (std::uint64_t modifierKeyStates)
template<typename Context, typename Result>
QOhosOptional< ResultQT_BEGIN_NAMESPACE::tryRunInQtThreadAndGetResult (QtOhos::QThreadSafeRef< Context > context, std::function< Result(Context &)> qtThreadProcessFunc)
template<typename Context, typename Result>
std::function< QOhosOptional< Result >(std::function< Result(Context &)>)> QT_BEGIN_NAMESPACE::makeBestEffortQtThreadFunctionsExecutor (QtOhos::QThreadSafeRef< Context > contextRef, QOhosSupplier< ch::nanoseconds > timeoutsSupplier)
QOhosPlatformDragQT_BEGIN_NAMESPACE::getQOhosPlatformDrag ()
Qt::DropAction QT_BEGIN_NAMESPACE::processDropInQWindow (QWindow &qWindow, const DragEventInfo &dragEventInfo, QOhosSupplier< std::unique_ptr< QMimeData > > dropDataFactory)
void QT_BEGIN_NAMESPACE::processPendingDropRequestAsynchronously (QtOhos::JsState &jsState, QtOhos::QThreadSafeRef< QWindow > qWindowRef, const DragEventInfo &dragEventInfo, QOhosSupplier< std::unique_ptr< QMimeData > > dropDataFactory, std::int32_t pendingDropRequestId)
bool QT_BEGIN_NAMESPACE::isAsyncDropHandlingAllowed ()
bool QT_BEGIN_NAMESPACE::tryStartAsyncProcessingOfDropEvent (QtOhos::JsState &jsState, ::ArkUI_DragEvent *dragEvent, QtOhos::QThreadSafeRef< QWindow > qWindowRef, const DragEventInfo &dragEventInfo, QOhosSupplier< std::unique_ptr< QMimeData > > dropDataFactory)
QOhosSupplier< ch::nanoseconds > QT_BEGIN_NAMESPACE::makeDragMoveQtThreadWaitTimeoutsSupplier ()
QOhosConsumer<::ArkUI_NodeEventType, ::ArkUI_DragEvent * > makeQOhosNativeDragEventsHandler (QtOhos::QThreadSafeRef< QWindow > qWindowRef)

Variables

constexpr auto QT_BEGIN_NAMESPACE::Q_DROP_ENABLED = static_cast<ArkUI_DragResult>(3)
constexpr auto QT_BEGIN_NAMESPACE::Q_DROP_DISABLED = static_cast<ArkUI_DragResult>(4)

Function Documentation

◆ makeQOhosNativeDragEventsHandler()

QOhosConsumer<::ArkUI_NodeEventType, ::ArkUI_DragEvent * > makeQOhosNativeDragEventsHandler ( QtOhos::QThreadSafeRef< QWindow > qWindowRef)

Definition at line 332 of file qohosnativedrageventshandler.cpp.