QtBase
v6.3.1
|
#include <qcocoaintegration.h>
Definition at line 65 of file qcocoaintegration.h.
Enumerator | |
---|---|
UseFreeTypeFontEngine |
Definition at line 72 of file qcocoaintegration.h.
QCocoaIntegration::QCocoaIntegration | ( | const QStringList & | paramList | ) |
Definition at line 133 of file qcocoaintegration.mm.
QCocoaIntegration::~QCocoaIntegration | ( | ) |
|
overridevirtual |
Returns the platforms accessibility.
The default implementation returns QPlatformAccessibility which delegates handling of accessibility to accessiblebridge plugins.
Reimplemented from QPlatformIntegration.
Definition at line 379 of file qcocoaintegration.mm.
|
overridevirtual |
Should sound a bell, using the default volume and sound.
Reimplemented from QPlatformIntegration.
Definition at line 470 of file qcocoaintegration.mm.
void QCocoaIntegration::clearToolbars | ( | ) |
Definition at line 453 of file qcocoaintegration.mm.
|
overridevirtual |
Accessor for the platform integration's clipboard.
Default implementation returns a default QPlatformClipboard.
Reimplemented from QPlatformIntegration.
Definition at line 386 of file qcocoaintegration.mm.
|
overridevirtual |
Factory function for the GUI event dispatcher. The platform plugin should create and return a QAbstractEventDispatcher subclass when this function is called.
If the platform plugin for some reason creates the event dispatcher outside of this function (for example in the constructor), it needs to handle the case where this function is never called, ensuring that the event dispatcher is still deleted at some point (typically in the destructor).
Note that the platform plugin should never explicitly set the event dispatcher itself, using QCoreApplication::setEventDispatcher(), but let QCoreApplication decide when and which event dispatcher to create.
Implements QPlatformIntegration.
Definition at line 345 of file qcocoaintegration.mm.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 291 of file qcocoaintegration.mm.
|
override |
|
overridevirtual |
Factory function for QPlatformBackingStore. The QWindow parameter is a pointer to the top level widget(tlw) the window surface is created for. A QPlatformWindow is always created before the QPlatformBackingStore for tlw where the widget also requires a backing store.
Implements QPlatformIntegration.
Definition at line 334 of file qcocoaintegration.mm.
|
overridevirtual |
Factory function for QOffscreenSurface. An offscreen surface will typically be implemented with a pixel buffer (pbuffer). If the platform doesn't support offscreen surfaces, an invisible window will be used by QOffscreenSurface instead.
Reimplemented from QPlatformIntegration.
Definition at line 309 of file qcocoaintegration.mm.
|
overridevirtual |
Factory function for QPlatformOpenGLContext. The context parameter is a pointer to the context for which a platform-specific context backend needs to be created. Configuration settings like the format, share context and screen have to be taken from this QOpenGLContext and the resulting platform context is expected to be backed by a native context that fulfills these criteria.
If the context has native handles set, no new native context is expected to be created. Instead, the provided handles have to be used. In this case the ownership of the handle must not be taken and the platform implementation is not allowed to destroy the native context. Configuration parameters like the format are also to be ignored. Instead, the platform implementation is responsible for querying the configuriation from the provided native context.
Returns a pointer to a QPlatformOpenGLContext instance or \nullptr if the context could not be created.
Reimplemented from QPlatformIntegration.
Definition at line 315 of file qcocoaintegration.mm.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 402 of file qcocoaintegration.mm.
|
overridevirtual |
Factory function for QPlatformWindow. The window parameter is a pointer to the window which the QPlatformWindow is supposed to be created for.
All windows have to have a QPlatformWindow, and it will be created on-demand when the QWindow is made visible for the first time, or explicitly through calling QWindow::create().
In the constructor, of the QPlatformWindow, the window flags, state, title and geometry of the window should be applied to the underlying window. If the resulting flags or state differs, the resulting values should be set on the window using QWindow::setWindowFlags() or QWindow::setWindowState(), respectively.
Implements QPlatformIntegration.
Definition at line 286 of file qcocoaintegration.mm.
|
override |
|
overridevirtual |
Accessor for the platform integration's fontdatabase.
Default implementation returns a default QPlatformFontDatabase.
Reimplemented from QPlatformIntegration.
Definition at line 363 of file qcocoaintegration.mm.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 260 of file qcocoaintegration.mm.
|
overridevirtual |
Returns the platforms input context.
The default implementation returns \nullptr, implying no input method support.
Reimplemented from QPlatformIntegration.
Definition at line 373 of file qcocoaintegration.mm.
|
static |
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 368 of file qcocoaintegration.mm.
QCocoaIntegration::Options QCocoaIntegration::options | ( | ) | const |
Should be used to obtain a list of possible shortcuts for the given key event. Shortcuts should be encoded as int(Qt::Key + Qt::KeyboardModifiers).
One example for more than one possibility is the key combination of Shift+5. That one might trigger a shortcut which is set as "Shift+5" as well as one using %. These combinations depend on the currently set keyboard layout.
Reimplemented from QPlatformIntegration.
Definition at line 434 of file qcocoaintegration.mm.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 429 of file qcocoaintegration.mm.
|
overridevirtual |
Asks the platform to terminate the application.
Overrides should ensure there's a callback into the QWSI function handleApplicationTermination so that the quit can be propagated to QtGui and the application.
Reimplemented from QPlatformIntegration.
Definition at line 475 of file qcocoaintegration.mm.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 409 of file qcocoaintegration.mm.
Platform integration function for setting the application icon.
Reimplemented from QPlatformIntegration.
Definition at line 463 of file qcocoaintegration.mm.
Reimplemented from QPlatformIntegration.
Definition at line 414 of file qcocoaintegration.mm.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 397 of file qcocoaintegration.mm.
NSToolbar * QCocoaIntegration::toolbar | ( | QWindow * | window | ) | const |
Definition at line 448 of file qcocoaintegration.mm.