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
qcocoanativeinterface.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QCOCOANATIVEINTERFACE_H
6#define QCOCOANATIVEINTERFACE_H
7
8#include <ApplicationServices/ApplicationServices.h>
9
10#include <qpa/qplatformnativeinterface.h>
11#include <QtGui/qpixmap.h>
12Q_MOC_INCLUDE(<QWindow>)
13
14QT_BEGIN_NAMESPACE
15
16class QWidget;
17class QPrintEngine;
18class QPlatformMenu;
19class QPlatformMenuBar;
20
22{
24public:
26
27 void *nativeResourceForWindow(const QByteArray &resourceString, QWindow *window) override;
28
30
31public Q_SLOTS:
33
34private:
35 Q_INVOKABLE void clearCurrentThreadCocoaEventDispatcherInterruptFlag();
36
37 static void registerDraggedTypes(const QStringList &types);
38
39 // Set a QWindow as a "guest" (subwindow) of a non-QWindow
40 static void setEmbeddedInForeignView(QPlatformWindow *window, bool embedded);
41
42 // Register if a window should deliver touch events. Enabling
43 // touch events has implications for delivery of other events,
44 // for example by causing scrolling event lag.
45 //
46 // The registration is ref-counted: multiple widgets can enable
47 // touch events, which then will be delivered until the widget
48 // deregisters.
49 static void registerTouchWindow(QWindow *window, bool enable);
50
51 // Set the size for a unified toolbar content border area.
52 // Multiple callers can register areas and the platform plugin
53 // will extend the "unified" area to cover them.
54 static void registerContentBorderArea(QWindow *window, quintptr identifer, int upper, int lower);
55
56 // Enables or disiables a content border area.
57 static void setContentBorderAreaEnabled(QWindow *window, quintptr identifier, bool enable);
58
59 // Returns true if the given coordinate is inside the current
60 // content border.
61 static bool testContentBorderPosition(QWindow *window, int position);
62};
63
64QT_END_NAMESPACE
65
66#endif // QCOCOANATIVEINTERFACE_H
static void clearCurrentThreadCocoaEventDispatcherInterruptFlag()
void * nativeResourceForWindow(const QByteArray &resourceString, QWindow *window) override
NativeResourceForIntegrationFunction nativeResourceFunctionForIntegration(const QByteArray &resource) override
void setEmbeddedInForeignView()