| 1 |
// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. |
| 2 |
// |
| 3 |
// SPDX-License-Identifier: LGPL-3.0-or-later |
| 4 |
|
| 5 |
#include "private/dplatformwindowinterface_p.h" |
| 6 |
|
| 7 |
DGUI_BEGIN_NAMESPACE |
| 8 |
|
| 9 |
DPlatformWindowInterface::DPlatformWindowInterface(QWindow *window, DPlatformHandle *platformHandle) |
| 10 |
: m_window(window) |
| 11 |
, m_platformHandle(platformHandle) |
| 12 |
{ |
| 13 |
} |
| 14 |
|
| 15 |
DPlatformWindowInterface::~DPlatformWindowInterface() |
| 16 |
{ |
| 17 |
} |
| 18 |
|
| 19 |
QWindow *DPlatformWindowInterface::window() const |
| 20 |
{ |
| 21 |
return m_window; |
| 22 |
} |
| 23 |
|
| 24 |
void DPlatformWindowInterface::setEnabled(bool enabled) |
| 25 |
{ |
| 26 |
Q_UNUSED(enabled) |
| 27 |
} |
| 28 |
|
| 29 |
bool DPlatformWindowInterface::isEnabled() const |
| 30 |
{ |
| 31 |
return false; |
| 32 |
} |
| 33 |
|
| 34 |
bool DPlatformWindowInterface::isEnabledNoTitlebar() const |
| 35 |
{ |
| 36 |
return {}; |
| 37 |
} |
| 38 |
|
| 39 |
bool DPlatformWindowInterface::setEnabledNoTitlebar(bool enable) |
| 40 |
{ |
| 41 |
Q_UNUSED(enable) |
| 42 |
return {}; |
| 43 |
} |
| 44 |
|
| 45 |
void DPlatformWindowInterface::setDisableWindowOverrideCursor(bool disable) |
| 46 |
{ |
| 47 |
Q_UNUSED(disable) |
| 48 |
} |
| 49 |
|
| 50 |
int DPlatformWindowInterface::windowRadius() const |
| 51 |
{ |
| 52 |
return -1; |
| 53 |
} |
| 54 |
|
| 55 |
void DPlatformWindowInterface::setWindowRadius(int windowRadius) |
| 56 |
{ |
| 57 |
Q_UNUSED(windowRadius) |
| 58 |
} |
| 59 |
|
| 60 |
int DPlatformWindowInterface::borderWidth() const |
| 61 |
{ |
| 62 |
return -1; |
| 63 |
} |
| 64 |
|
| 65 |
void DPlatformWindowInterface::setBorderWidth(int borderWidth) |
| 66 |
{ |
| 67 |
Q_UNUSED(borderWidth) |
| 68 |
} |
| 69 |
|
| 70 |
QColor DPlatformWindowInterface::borderColor() const |
| 71 |
{ |
| 72 |
return {}; |
| 73 |
} |
| 74 |
|
| 75 |
void DPlatformWindowInterface::setBorderColor(const QColor &borderColor) |
| 76 |
{ |
| 77 |
Q_UNUSED(borderColor) |
| 78 |
} |
| 79 |
|
| 80 |
int DPlatformWindowInterface::shadowRadius() const |
| 81 |
{ |
| 82 |
return {}; |
| 83 |
} |
| 84 |
|
| 85 |
void DPlatformWindowInterface::setShadowRadius(int shadowRadius) |
| 86 |
{ |
| 87 |
Q_UNUSED(shadowRadius) |
| 88 |
} |
| 89 |
|
| 90 |
QPoint DPlatformWindowInterface::shadowOffset() const |
| 91 |
{ |
| 92 |
return {}; |
| 93 |
} |
| 94 |
|
| 95 |
void DPlatformWindowInterface::setShadowOffset(const QPoint &shadowOffset) |
| 96 |
{ |
| 97 |
Q_UNUSED(shadowOffset) |
| 98 |
} |
| 99 |
|
| 100 |
QColor DPlatformWindowInterface::shadowColor() const |
| 101 |
{ |
| 102 |
return {}; |
| 103 |
} |
| 104 |
|
| 105 |
void DPlatformWindowInterface::setShadowColor(const QColor &shadowColor) |
| 106 |
{ |
| 107 |
Q_UNUSED(shadowColor) |
| 108 |
} |
| 109 |
|
| 110 |
DPlatformHandle::EffectScene DPlatformWindowInterface::windowEffect() |
| 111 |
{ |
| 112 |
return {}; |
| 113 |
} |
| 114 |
|
| 115 |
void DPlatformWindowInterface::setWindowEffect(DPlatformHandle::EffectScenes effectScene) |
| 116 |
{ |
| 117 |
Q_UNUSED(effectScene) |
| 118 |
} |
| 119 |
|
| 120 |
DPlatformHandle::EffectType DPlatformWindowInterface::windowStartUpEffect() |
| 121 |
{ |
| 122 |
return {}; |
| 123 |
} |
| 124 |
|
| 125 |
void DPlatformWindowInterface::setWindowStartUpEffect(DPlatformHandle::EffectTypes effectType) |
| 126 |
{ |
| 127 |
Q_UNUSED(effectType) |
| 128 |
} |
| 129 |
|
| 130 |
QPainterPath DPlatformWindowInterface::clipPath() const |
| 131 |
{ |
| 132 |
return {}; |
| 133 |
} |
| 134 |
|
| 135 |
void DPlatformWindowInterface::setClipPath(const QPainterPath &clipPath) |
| 136 |
{ |
| 137 |
Q_UNUSED(clipPath) |
| 138 |
} |
| 139 |
|
| 140 |
QRegion DPlatformWindowInterface::frameMask() const |
| 141 |
{ |
| 142 |
return {}; |
| 143 |
} |
| 144 |
|
| 145 |
void DPlatformWindowInterface::setFrameMask(const QRegion &frameMask) |
| 146 |
{ |
| 147 |
Q_UNUSED(frameMask) |
| 148 |
} |
| 149 |
|
| 150 |
QMargins DPlatformWindowInterface::frameMargins() const |
| 151 |
{ |
| 152 |
return {}; |
| 153 |
} |
| 154 |
|
| 155 |
bool DPlatformWindowInterface::translucentBackground() const |
| 156 |
{ |
| 157 |
return {}; |
| 158 |
} |
| 159 |
|
| 160 |
void DPlatformWindowInterface::setTranslucentBackground(bool translucentBackground) |
| 161 |
{ |
| 162 |
Q_UNUSED(translucentBackground) |
| 163 |
} |
| 164 |
|
| 165 |
bool DPlatformWindowInterface::enableSystemResize() const |
| 166 |
{ |
| 167 |
return {}; |
| 168 |
} |
| 169 |
|
| 170 |
void DPlatformWindowInterface::setEnableSystemResize(bool enableSystemResize) |
| 171 |
{ |
| 172 |
Q_UNUSED(enableSystemResize) |
| 173 |
} |
| 174 |
|
| 175 |
bool DPlatformWindowInterface::enableSystemMove() const |
| 176 |
{ |
| 177 |
return {}; |
| 178 |
} |
| 179 |
|
| 180 |
void DPlatformWindowInterface::setEnableSystemMove(bool enableSystemMove) |
| 181 |
{ |
| 182 |
Q_UNUSED(enableSystemMove) |
| 183 |
} |
| 184 |
|
| 185 |
bool DPlatformWindowInterface::enableBlurWindow() const |
| 186 |
{ |
| 187 |
return {}; |
| 188 |
} |
| 189 |
|
| 190 |
void DPlatformWindowInterface::setEnableBlurWindow(bool enableBlurWindow) |
| 191 |
{ |
| 192 |
Q_UNUSED(enableBlurWindow) |
| 193 |
} |
| 194 |
|
| 195 |
DGUI_END_NAMESPACE |
| 196 |
|