12#include <QtCore/private/qcore_mac_p.h>
13#include <qpa/qplatformscreen.h>
14#include <qpa/qwindowsysteminterface.h>
18 for (
int i = 0;
i <
s.size(); ++
i)
19 if (!
s.at(
i).isSpace())
31- (BOOL)windowShouldClose:(NSWindow *)window
34 return platformWindow->windowShouldClose();
45- (NSRect)windowWillUseStandardFrame:(NSWindow *)window defaultFrame:(NSRect)proposedFrame
63 QRectF maximizedFrame =
QRectF(
w->framePosition(), maximumSize);
68 maximizedFrame.translate(
QPoint(
69 qMax(screenGeometry.
left() - maximizedFrame.left(), 0.0) +
70 qMin(screenGeometry.
right() - maximizedFrame.right(), 0.0),
71 qMax(screenGeometry.
top() - maximizedFrame.top(), 0.0) +
72 qMin(screenGeometry.
bottom() - maximizedFrame.bottom(), 0.0)));
77- (BOOL)windowShouldZoom:(NSWindow*)window toFrame:(NSRect)newFrame
85- (BOOL)
window:(NSWindow *)window shouldPopUpDocumentPathMenu:(NSMenu *)menu
97- (BOOL)
window:(NSWindow *)window shouldDragDocumentWithEvent:(NSEvent *)event from:(NSPoint)dragImageLocation withPasteboard:(NSPasteboard *)pasteboard
static CGPoint mapToNative(const QPointF &pos, QCocoaScreen *screen=QCocoaScreen::primaryScreen())
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
constexpr qreal bottom() const noexcept
Returns the y-coordinate of the rectangle's bottom edge.
constexpr qreal left() const noexcept
Returns the x-coordinate of the rectangle's left edge.
constexpr QSizeF size() const noexcept
Returns the size of the rectangle.
constexpr qreal top() const noexcept
Returns the y-coordinate of the rectangle's top edge.
constexpr qreal right() const noexcept
Returns the x-coordinate of the rectangle's right edge.
constexpr QSizeF boundedTo(const QSizeF &) const noexcept
Returns a size holding the minimum width and height of this size and the given otherSize.
\macro QT_RESTRICTED_CAST_FROM_ASCII
constexpr const T & qMin(const T &a, const T &b)
constexpr const T & qMax(const T &a, const T &b)
NSWindow< QNSWindowProtocol > * qnswindow_cast(NSWindow *window)
static bool isWhiteSpace(const QString &s)
static QCocoaWindow * toPlatformWindow(NSWindow *window)
GLfloat GLfloat GLfloat w
[0]
GLdouble GLdouble GLdouble GLdouble top