Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#ifndef QCOCOANATIVEINTERFACE_H
5#define QCOCOANATIVEINTERFACE_H
6
7#include <ApplicationServices/ApplicationServices.h>
8
9#include <qpa/qplatformnativeinterface.h>
10#include <QtGui/qpixmap.h>
12
14
15class QWidget;
16class QPrintEngine;
17class QPlatformMenu;
19
21{
23public:
25
26 void *nativeResourceForWindow(const QByteArray &resourceString, QWindow *window) override;
27
28 NativeResourceForIntegrationFunction nativeResourceFunctionForIntegration(const QByteArray &resource) override;
29
30public Q_SLOTS:
31 void onAppFocusWindowChanged(QWindow *window);
32
33private:
34 Q_INVOKABLE void clearCurrentThreadCocoaEventDispatcherInterruptFlag();
35
36 static void registerDraggedTypes(const QStringList &types);
37
38 // Set a QWindow as a "guest" (subwindow) of a non-QWindow
39 static void setEmbeddedInForeignView(QPlatformWindow *window, bool embedded);
40
41 // Register if a window should deliver touch events. Enabling
42 // touch events has implications for delivery of other events,
43 // for example by causing scrolling event lag.
44 //
45 // The registration is ref-counted: multiple widgets can enable
46 // touch events, which then will be delivered until the widget
47 // deregisters.
48 static void registerTouchWindow(QWindow *window, bool enable);
49
50 // Set the size for a unified toolbar content border area.
51 // Multiple callers can register areas and the platform plugin
52 // will extend the "unified" area to cover them.
53 static void registerContentBorderArea(QWindow *window, quintptr identifer, int upper, int lower);
54
55 // Enables or disiables a content border area.
56 static void setContentBorderAreaEnabled(QWindow *window, quintptr identifier, bool enable);
57
58 // Returns true if the given coordinate is inside the current
59 // content border.
60 static bool testContentBorderPosition(QWindow *window, int position);
61};
62
64
65#endif // QCOCOANATIVEINTERFACE_H
66
\inmodule QtCore
Definition qbytearray.h:57
The QPlatformNativeInterface class provides an abstraction for retrieving native resource handles.
The QPlatformWindow class provides an abstraction for top-level windows.
\reentrant
\inmodule QtCore
The QWidget class is the base class of all user interface objects.
Definition qwidget.h:99
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
GLsizei GLenum GLenum * types
GLboolean enable
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
#define Q_OBJECT
#define Q_INVOKABLE
#define Q_SLOTS
#define Q_MOC_INCLUDE(...)
size_t quintptr
Definition qtypes.h:167
aWidget window() -> setWindowTitle("New Window Title")
[2]