Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QPLATFORMINTEGRATION_MINIMAL_H
6
#
define
QPLATFORMINTEGRATION_MINIMAL_H
7
8
#
include
<
qpa
/
qplatformintegration
.
h
>
9
#
include
<
qpa
/
qplatformscreen
.
h
>
10
11
#
include
<
qscopedpointer
.
h
>
12
13
QT_BEGIN_NAMESPACE
14
15
class
QMinimalScreen
:
public
QPlatformScreen
16
{
17
public
:
18
QMinimalScreen
()
19
:
mDepth
(32),
mFormat
(
QImage
::
Format_ARGB32_Premultiplied
) {}
20
21
QRect
geometry
()
const
override
{
return
mGeometry; }
22
int
depth
()
const
override
{
return
mDepth
; }
23
QImage
::
Format
format
()
const
override
{
return
mFormat; }
24
25
public
:
26
QRect
mGeometry
;
27
int
mDepth
;
28
QImage
::
Format
mFormat
;
29
QSize
mPhysicalSize
;
30
};
31
32
class
QMinimalIntegration
:
public
QPlatformIntegration
33
{
34
public
:
35
enum
Options
{
// Options to be passed on command line or determined from environment
36
DebugBackingStore
= 0x1,
37
EnableFonts
= 0x2,
38
FreeTypeFontDatabase
= 0x4,
39
FontconfigDatabase
= 0x8
40
};
41
42
explicit
QMinimalIntegration
(
const
QStringList ¶meters);
43
~
QMinimalIntegration
();
44
45
bool
hasCapability
(QPlatformIntegration::Capability cap)
const
override
;
46
QPlatformFontDatabase
*
fontDatabase
()
const
override
;
47
48
QPlatformWindow
*
createPlatformWindow
(QWindow *window)
const
override
;
49
QPlatformBackingStore
*
createPlatformBackingStore
(QWindow *window)
const
override
;
50
QAbstractEventDispatcher
*
createEventDispatcher
()
const
override
;
51
52
QPlatformNativeInterface
*
nativeInterface
()
const
override
;
53
54
unsigned
options
()
const
{
return
m_options; }
55
56
static
QMinimalIntegration
*
instance
();
57
58
private
:
59
mutable
QPlatformFontDatabase *m_fontDatabase;
60
mutable
QScopedPointer<QPlatformNativeInterface> m_nativeInterface;
61
QMinimalScreen
*m_primaryScreen;
62
unsigned
m_options;
63
};
64
65
QT_END_NAMESPACE
66
67
#
endif
QMinimalIntegrationPlugin
Definition
main.cpp:13
QMinimalIntegration
Definition
qminimalintegration.h:33
QMinimalIntegration::fontDatabase
QPlatformFontDatabase * fontDatabase() const override
Accessor for the platform integration's fontdatabase.
Definition
qminimalintegration.cpp:104
QMinimalIntegration::~QMinimalIntegration
~QMinimalIntegration()
Definition
qminimalintegration.cpp:79
QMinimalIntegration::createEventDispatcher
QAbstractEventDispatcher * createEventDispatcher() const override
Factory function for the GUI event dispatcher.
Definition
qminimalintegration.cpp:153
QMinimalIntegration::options
unsigned options() const
Definition
qminimalintegration.h:54
QMinimalIntegration::Options
Options
Definition
qminimalintegration.h:35
QMinimalIntegration::FreeTypeFontDatabase
@ FreeTypeFontDatabase
Definition
qminimalintegration.h:38
QMinimalIntegration::DebugBackingStore
@ DebugBackingStore
Definition
qminimalintegration.h:36
QMinimalIntegration::EnableFonts
@ EnableFonts
Definition
qminimalintegration.h:37
QMinimalIntegration::FontconfigDatabase
@ FontconfigDatabase
Definition
qminimalintegration.h:39
QMinimalIntegration::createPlatformBackingStore
QPlatformBackingStore * createPlatformBackingStore(QWindow *window) const override
Factory function for QPlatformBackingStore.
Definition
qminimalintegration.cpp:148
QMinimalIntegration::QMinimalIntegration
QMinimalIntegration(const QStringList ¶meters)
Definition
qminimalintegration.cpp:61
QMinimalIntegration::nativeInterface
QPlatformNativeInterface * nativeInterface() const override
Definition
qminimalintegration.cpp:162
QMinimalIntegration::instance
static QMinimalIntegration * instance()
Definition
qminimalintegration.cpp:169
QMinimalIntegration::hasCapability
bool hasCapability(QPlatformIntegration::Capability cap) const override
Definition
qminimalintegration.cpp:85
QMinimalIntegration::createPlatformWindow
QPlatformWindow * createPlatformWindow(QWindow *window) const override
Factory function for QPlatformWindow.
Definition
qminimalintegration.cpp:140
QMinimalScreen
Definition
qminimalintegration.h:16
QMinimalScreen::geometry
QRect geometry() const override
Reimplement in subclass to return the pixel geometry of the screen.
Definition
qminimalintegration.h:21
QMinimalScreen::depth
int depth() const override
Reimplement in subclass to return current depth of the screen.
Definition
qminimalintegration.h:22
QMinimalScreen::mFormat
QImage::Format mFormat
Definition
qminimalintegration.h:28
QMinimalScreen::QMinimalScreen
QMinimalScreen()
Definition
qminimalintegration.h:18
QMinimalScreen::mGeometry
QRect mGeometry
Definition
qminimalintegration.h:26
QMinimalScreen::format
QImage::Format format() const override
Reimplement in subclass to return the image format which corresponds to the screen format.
Definition
qminimalintegration.h:23
QMinimalScreen::mDepth
int mDepth
Definition
qminimalintegration.h:27
QMinimalScreen::mPhysicalSize
QSize mPhysicalSize
Definition
qminimalintegration.h:29
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtbase
src
plugins
platforms
minimal
qminimalintegration.h
Generated on
for Qt by
1.18.0