* @brief Returns the horizontal/bottom shadow margin reserved by CSD around the content area. */
| 143 | * @brief Returns the horizontal/bottom shadow margin reserved by CSD around the content area. |
| 144 | */ |
| 145 | int NativeWindow::frameMargin(QObject* window) |
| 146 | { |
| 147 | auto* w = qobject_cast<QWindow*>(window); |
| 148 | if (!w) |
| 149 | return 0; |
| 150 | |
| 151 | if (isWindows11() || !m_csdEnabled) |
| 152 | return 0; |
| 153 | |
| 154 | if (auto* decorator = s_decorators.value(w, nullptr)) |
| 155 | return decorator->shadowMargin(); |
| 156 | |
| 157 | return m_csdShadowEnabled ? CSD::ShadowRadius : 0; |
| 158 | } |
| 159 | |
| 160 | /** |
| 161 | * @brief Returns the total top inset (shadow + CSD titlebar) reserved above the content area. |
nothing calls this directly
no test coverage detected