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

(9f618f120c5eb715ec9cbf9120bcb0daf5a97912)

#include "qioswindow.h"
#include "qiosapplicationdelegate.h"
#include "qiosglobal.h"
#include "qiosintegration.h"
#include "qiosscreen.h"
#include "qiosviewcontroller.h"
#include "quiview.h"
#include "qiosinputcontext.h"
#include <QtCore/private/qcore_mac_p.h>
#include <QtGui/private/qwindow_p.h>
#include <QtGui/private/qhighdpiscaling_p.h>
#include <qpa/qplatformintegration.h>
#include <QtDebug>
#include "moc_qioswindow.cpp"
Include dependency graph for qioswindow.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

QDebug operator<< (QDebug debug, const QIOSWindow *window)
QUIViewquiview_cast (UIView *view)
 Returns the view cast to a QUIview if possible.

Enumeration Type Documentation

◆ anonymous enum [1/2]

anonymous enum
Enumerator
defaultWindowWidth 
defaultWindowHeight 
defaultWindowWidth 
defaultWindowHeight 

Definition at line 33 of file qioswindow.mm.

◆ anonymous enum [2/2]

anonymous enum
Enumerator
defaultWindowWidth 
defaultWindowHeight 
defaultWindowWidth 
defaultWindowHeight 

Definition at line 33 of file qioswindow.mm.

Function Documentation

◆ operator<<()

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

Definition at line 456 of file qioswindow.mm.

◆ quiview_cast()

QUIView * quiview_cast ( UIView * view)

Returns the view cast to a QUIview if possible.

If the view is not a QUIview, nil is returned, which is safe to send messages to, effectively making [quiview_cast(view) message] a no-op.

For extra verbosity and clearer code, please consider checking that the platform window is not a foreign window before using this cast, via QPlatformWindow::isForeignWindow().

Do not use this method solely to check for foreign windows, as that will make the code harder to read for people not working primarily on iOS, who do not know the difference between the UIView and QUIView cases.

Definition at line 484 of file qioswindow.mm.