4#ifndef QOHOSWINDOWUTILS_P_H
5#define QOHOSWINDOWUTILS_P_H
18#include <QtGui/qcolor.h>
19#include <QtGui/qscreen.h>
20#include <QtGui/qwindow.h>
21#include <QtOhosAppKit/private/qtohosappkitglobal_p.h>
22#include <QtWidgets/qwidget.h>
39Q_ENUM_NS(WindowGeometryPersistenceHint)
41Q_OHOSAPPKIT_EXPORT
void setShowWindowAsFloatWindowHint(QWindow *window,
bool showAsFloatWindow);
Combined button and popup list for selecting options.
WindowGeometryPersistenceHint
void setWindowKeepScreenOn(QWindow *window, bool keepScreenOn)
Sets or unsets a given window to keep the screen on according to keepScreenOn.
void setSurfaceBackgroundColor(QWindow *window, const QColor &color)
Sets a given color as the background color of the window inner native layer.
void setShowWindowAsFloatWindowHint(QWindow *window, bool showAsFloatWindow)
Sets or unsets a given window as a floating window according to showAsFloatWindow.
void setWindowPrivacyMode(QWindow *window, bool privacyModeEnabled)
Changes the privacy mode of window according to privacyModeEnabled.
void setWindowCornerRadius(QWindow *window, double radius)
Sets the corner radius of a window.
void setMainWindowGeometryPersistenceHint(WindowGeometryPersistenceHint hint)
Sets whether the application's main window restores its last geometry on startup according to hint.
void setWindowDragResizable(QWindow *window, bool dragResizable)
Enables or disables resizing of window by dragging its edges according to dragResizable.
std::optional< double > tryGetNativeWindowId(QWindow *window)
std::optional< double > tryGetScreenDisplayId(QScreen *screen)