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
qcocoawindow.mm File Reference

(c7fe11a6e73b89538bcf4685773757f094df8a72)

#include <AppKit/AppKit.h>
#include <QuartzCore/QuartzCore.h>
#include "qcocoawindow.h"
#include "qcocoaintegration.h"
#include "qcocoascreen.h"
#include "qnswindowdelegate.h"
#include "qcocoaeventdispatcher.h"
#include "qcocoaglcontext.h"
#include "qcocoahelpers.h"
#include "qcocoanativeinterface.h"
#include "qnsview.h"
#include "qnswindow.h"
#include <QtCore/qfileinfo.h>
#include <QtCore/private/qcore_mac_p.h>
#include <qwindow.h>
#include <private/qwindow_p.h>
#include <qpa/qwindowsysteminterface.h>
#include <qpa/qplatformscreen.h>
#include <QtGui/private/qcoregraphics_p.h>
#include <QtGui/private/qhighdpiscaling_p.h>
#include <QtGui/private/qmetallayer_p.h>
#include <QDebug>
#include <vector>
#include "moc_qcocoawindow.cpp"
Include dependency graph for qcocoawindow.mm:

Go to the source code of this file.

Enumerations

enum  { defaultWindowWidth = 160 , defaultWindowHeight = 160 , defaultWindowWidth = 160 , defaultWindowHeight = 160 }
enum  { defaultWindowWidth = 160 , defaultWindowHeight = 160 , defaultWindowWidth = 160 , defaultWindowHeight = 160 }

Functions

 QT_DECLARE_NAMESPACED_OBJC_INTERFACE (QNSWindowController, NSWindowController -(instancetype) initWithCocoaWindow:(QCocoaWindow *) platformWindow;) @implementation QNSWindowController
 Q_LOGGING_CATEGORY (lcCocoaNotifications, "qt.qpa.cocoa.notifications")
static void qRegisterNotificationCallbacks ()
QDebug operator<< (QDebug debug, const QCocoaWindow *window)

Variables

instancetype initWithCocoaWindow
return self
void loadWindow
self window = [m_platformWindow->createNSWindow() autorelease]
 [2]
void dealloc
const NSNotificationName QCocoaWindowWillReleaseQNSViewNotification = @"@"QCocoaWindowWillReleaseQNSViewNotification"

Enumeration Type Documentation

◆ anonymous enum [1/2]

anonymous enum
Enumerator
defaultWindowWidth 
defaultWindowHeight 
defaultWindowWidth 
defaultWindowHeight 

Definition at line 68 of file qcocoawindow.mm.

◆ anonymous enum [2/2]

anonymous enum
Enumerator
defaultWindowWidth 
defaultWindowHeight 
defaultWindowWidth 
defaultWindowHeight 

Definition at line 68 of file qcocoawindow.mm.

Function Documentation

◆ operator<<()

QDebug operator<< ( QDebug debug,
const QCocoaWindow * window )

Definition at line 2379 of file qcocoawindow.mm.

◆ Q_LOGGING_CATEGORY()

Q_LOGGING_CATEGORY ( lcCocoaNotifications ,
"qt.qpa.cocoa.notifications"  )

◆ qRegisterNotificationCallbacks()

void qRegisterNotificationCallbacks ( )
static

Definition at line 75 of file qcocoawindow.mm.

◆ QT_DECLARE_NAMESPACED_OBJC_INTERFACE()

QT_DECLARE_NAMESPACED_OBJC_INTERFACE ( QNSWindowController ,
NSWindowController -(instancetype) initWithCocoaWindow:(QCocoaWindow *) platformWindow;  )

Definition at line 34 of file qcocoawindow.mm.

Variable Documentation

◆ dealloc

void dealloc
Initial value:
{
qCDebug(lcQpaWindow) << "Disposing of" << self.window << "for" << m_platformWindow
return self
#define qCDebug(category,...)

Definition at line 57 of file qcocoawindow.mm.

◆ initWithCocoaWindow

instancetype initWithCocoaWindow

Definition at line 42 of file qcocoawindow.mm.

◆ loadWindow

void loadWindow
Initial value:

Definition at line 52 of file qcocoawindow.mm.

◆ QCocoaWindowWillReleaseQNSViewNotification

const NSNotificationName QCocoaWindowWillReleaseQNSViewNotification = @"@"QCocoaWindowWillReleaseQNSViewNotification"

Definition at line 216 of file qcocoawindow.mm.

◆ self

return self

Definition at line 49 of file qcocoawindow.mm.

◆ window

aWidget window = [m_platformWindow->createNSWindow() autorelease]

[2]

[3]

Definition at line 55 of file qcocoawindow.mm.

Referenced by org.qtproject.qt.android.QtWindowInterface::addTopLevelWindow().