Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qminimalintegration.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
4#ifndef QPLATFORMINTEGRATION_MINIMAL_H
5#define QPLATFORMINTEGRATION_MINIMAL_H
6
7#include <qpa/qplatformintegration.h>
8#include <qpa/qplatformscreen.h>
9
10#include <qscopedpointer.h>
11
13
15{
16public:
18 : mDepth(32), mFormat(QImage::Format_ARGB32_Premultiplied) {}
19
20 QRect geometry() const override { return mGeometry; }
21 int depth() const override { return mDepth; }
22 QImage::Format format() const override { return mFormat; }
23
24public:
26 int mDepth;
29};
30
32{
33public:
34 enum Options { // Options to be passed on command line or determined from environment
39 };
40
41 explicit QMinimalIntegration(const QStringList &parameters);
43
45 QPlatformFontDatabase *fontDatabase() const override;
46
50
52
53 unsigned options() const { return m_options; }
54
56
57private:
58 mutable QPlatformFontDatabase *m_fontDatabase;
59 mutable QScopedPointer<QPlatformNativeInterface> m_nativeInterface;
60 QMinimalScreen *m_primaryScreen;
61 unsigned m_options;
62};
63
65
66#endif
\inmodule QtGui
Definition qimage.h:37
Format
The following image formats are available in Qt.
Definition qimage.h:41
QPlatformFontDatabase * fontDatabase() const override
Accessor for the platform integration's fontdatabase.
QAbstractEventDispatcher * createEventDispatcher() const override
Factory function for the GUI event dispatcher.
unsigned options() const
QPlatformBackingStore * createPlatformBackingStore(QWindow *window) const override
Factory function for QPlatformBackingStore.
QMinimalIntegration(const QStringList &parameters)
QPlatformNativeInterface * nativeInterface() const override
static QMinimalIntegration * instance()
bool hasCapability(QPlatformIntegration::Capability cap) const override
QPlatformWindow * createPlatformWindow(QWindow *window) const override
Factory function for QPlatformWindow.
QRect geometry() const override
Reimplement in subclass to return the pixel geometry of the screen.
int depth() const override
Reimplement in subclass to return current depth of the screen.
QImage::Format mFormat
QImage::Format format() const override
Reimplement in subclass to return the image format which corresponds to the screen format.
The QPlatformBackingStore class provides the drawing area for top-level windows.
The QPlatformFontDatabase class makes it possible to customize how fonts are discovered and how they ...
The QPlatformIntegration class is the entry for WindowSystem specific functionality.
Capability
Capabilities are used to determine specific features of a platform integration.
The QPlatformNativeInterface class provides an abstraction for retrieving native resource handles.
The QPlatformScreen class provides an abstraction for visual displays.
The QPlatformWindow class provides an abstraction for top-level windows.
\inmodule QtCore\reentrant
Definition qrect.h:30
\inmodule QtCore
Definition qsize.h:25
\inmodule QtCore
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
GLenum cap
aWidget window() -> setWindowTitle("New Window Title")
[2]