Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qohoswindowutils.cpp File Reference

(b2b4258a42567f4a4f2bec950c3e01623a97a5df)

#include "qohoswindowutils_p.h"
#include <QtCore/qvariant.h>
#include <QtGui/private/qguiapplication_p.h>
#include <QtGui/private/qohoswindowhints_p.h>
#include <QtGui/qcolor.h>
#include <QtGui/qpa/qplatformintegration.h>
#include <QtGui/qpa/qplatformscreen_p.h>
#include <QtGui/qpa/qplatformwindow_p.h>
#include <QtGui/qscreen.h>
#include <QtGui/qwindow.h>
#include <QtWidgets/qwidget.h>
#include <optional>
Include dependency graph for qohoswindowutils.cpp:

Go to the source code of this file.

Namespaces

namespace  QtOhosAppKit::Window
 \inmodule QtOhosAppKit
namespace  QtOhosAppKit

Functions

void QtOhosAppKit::Window::setShowWindowAsFloatWindowHint (QWindow *window, bool showAsFloatWindow)
 Sets or unsets a given window as a floating window according to showAsFloatWindow.
void QtOhosAppKit::Window::setShowWindowAsFloatWindowHint (QWidget *widget, bool showAsFloatWindow)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void QtOhosAppKit::Window::setWindowPrivacyMode (QWindow *window, bool privacyModeEnabled)
 Changes the privacy mode of window according to privacyModeEnabled.
void QtOhosAppKit::Window::setSurfaceBackgroundColor (QWindow *window, const QColor &color)
 Sets a given color as the background color of the window inner native layer.
void QtOhosAppKit::Window::setSurfaceBackgroundColor (QWidget *widget, const QColor &color)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Sets a given color as the background color of the widget inner native layer.
void QtOhosAppKit::Window::setWindowCornerRadius (QWindow *window, double radius)
 Sets the corner radius of a window.
void QtOhosAppKit::Window::setWindowCornerRadius (QWidget *widget, double radius)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Sets the corner radius of a widget.
void QtOhosAppKit::Window::setWindowKeepScreenOn (QWindow *window, bool keepScreenOn)
 Sets or unsets a given window to keep the screen on according to keepScreenOn.
void QtOhosAppKit::Window::setWindowKeepScreenOn (QWidget *widget, bool keepScreenOn)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Sets or unsets a given widget to keep the screen on according to keepScreenOn.
void QtOhosAppKit::Window::setWindowDragResizable (QWindow *window, bool dragResizable)
 Enables or disables resizing of window by dragging its edges according to dragResizable.
void QtOhosAppKit::Window::setWindowDragResizable (QWidget *widget, bool dragResizable)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Enables or disables resizing of widget by dragging its edges according to dragResizable.
void QtOhosAppKit::Window::setMainWindowGeometryPersistenceHint (WindowGeometryPersistenceHint hint)
 Sets whether the application's main window restores its last geometry on startup according to hint.
std::optional< double > QtOhosAppKit::tryGetNativeWindowId (QWindow *window)
std::optional< double > QtOhosAppKit::tryGetScreenDisplayId (QScreen *screen)