MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / shadowMargin

Method shadowMargin

app/src/Platform/CSD.cpp:891–904  ·  view source on GitHub ↗

* @brief Returns the current shadow margin in pixels. */

Source from the content-addressed store, hash-verified

889 * @brief Returns the current shadow margin in pixels.
890 */
891int Window::shadowMargin() const
892{
893 if (!m_window)
894 return 0;
895
896 if (!m_shadowEnabled)
897 return 0;
898
899 const auto state = m_window->windowStates();
900 if (state & (Qt::WindowMaximized | Qt::WindowFullScreen))
901 return 0;
902
903 return CSD::ShadowRadius;
904}
905
906/**
907 * @brief Returns the current title bar height in pixels.

Callers 2

frameMarginMethod · 0.80
frameTopInsetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected