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
>
12
Q_MOC_INCLUDE(<QWindow>)
13
14
QT_BEGIN_NAMESPACE
15
16
class
QWidget;
17
class
QPrintEngine;
18
class
QPlatformMenu;
19
class
QPlatformMenuBar;
20
21
class
QCocoaNativeInterface
:
public
QPlatformNativeInterface
22
{
23
Q_OBJECT
24
public
:
25
QCocoaNativeInterface
();
26
27
void
*
nativeResourceForWindow
(
const
QByteArray &resourceString, QWindow *window)
override
;
28
29
NativeResourceForIntegrationFunction
nativeResourceFunctionForIntegration
(
const
QByteArray &resource)
override
;
30
31
public
Q_SLOTS
:
32
void
onAppFocusWindowChanged
(
QWindow
*
window
);
33
34
private
:
35
Q_INVOKABLE
void
clearCurrentThreadCocoaEventDispatcherInterruptFlag();
36
37
static
void
registerDraggedTypes(
const
QStringList &types);
38
39
// Register if a window should deliver touch events. Enabling
40
// touch events has implications for delivery of other events,
41
// for example by causing scrolling event lag.
42
//
43
// The registration is ref-counted: multiple widgets can enable
44
// touch events, which then will be delivered until the widget
45
// deregisters.
46
static
void
registerTouchWindow(QWindow *window,
bool
enable);
47
};
48
49
QT_END_NAMESPACE
50
51
#
endif
// QCOCOANATIVEINTERFACE_H
QByteArray::FromBase64Result
\inmodule QtCore
Definition
qbytearray.h:785
QCocoaEventDispatcher
Definition
qcocoaeventdispatcher.h:46
QCocoaEventDispatcher::clearCurrentThreadCocoaEventDispatcherInterruptFlag
static void clearCurrentThreadCocoaEventDispatcherInterruptFlag()
Definition
qcocoaeventdispatcher.mm:936
QCocoaNativeInterface
Definition
qcocoanativeinterface.h:22
QCocoaNativeInterface::nativeResourceForWindow
void * nativeResourceForWindow(const QByteArray &resourceString, QWindow *window) override
Definition
qcocoanativeinterface.mm:43
QCocoaNativeInterface::nativeResourceFunctionForIntegration
NativeResourceForIntegrationFunction nativeResourceFunctionForIntegration(const QByteArray &resource) override
Definition
qcocoanativeinterface.mm:61
QCocoaWindow
Definition
qcocoawindow.h:74
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtbase
src
plugins
platforms
cocoa
qcocoanativeinterface.h
Generated on
for Qt by
1.16.1