![]() |
Qt 6.x
The Qt SDK
|
#include <qhaikuscreen.h>
Inheritance diagram for QHaikuScreen:
Collaboration diagram for QHaikuScreen:Public Member Functions | |
| QHaikuScreen () | |
| ~QHaikuScreen () | |
| QPixmap | grabWindow (WId window, int x, int y, int width, int height) const override |
| This function is called when Qt needs to be able to grab the content of a window. | |
| QRect | geometry () const override |
| Reimplement in subclass to return the pixel geometry of the screen. | |
| int | depth () const override |
| Reimplement in subclass to return current depth of the screen. | |
| QImage::Format | format () const override |
| Reimplement in subclass to return the image format which corresponds to the screen format. | |
| QPlatformCursor * | cursor () const override |
| Reimplement this function in subclass to return the cursor of the screen. | |
Public Member Functions inherited from QPlatformScreen | |
| QPlatformScreen () | |
| virtual | ~QPlatformScreen () |
| virtual bool | isPlaceholder () const |
| virtual QPixmap | grabWindow (WId window, int x, int y, int width, int height) const |
| This function is called when Qt needs to be able to grab the content of a window. | |
| virtual QRect | geometry () const =0 |
| Reimplement in subclass to return the pixel geometry of the screen. | |
| virtual QRect | availableGeometry () const |
| Reimplement in subclass to return the pixel geometry of the available space This normally is the desktop screen minus the task manager, global menubar etc. | |
| virtual int | depth () const =0 |
| Reimplement in subclass to return current depth of the screen. | |
| virtual QImage::Format | format () const =0 |
| Reimplement in subclass to return the image format which corresponds to the screen format. | |
| virtual QColorSpace | colorSpace () const |
| virtual QSizeF | physicalSize () const |
| Reimplement this function in subclass to return the physical size of the screen, in millimeters. | |
| virtual QDpi | logicalDpi () const |
| Reimplement this function in subclass to return the logical horizontal and vertical dots per inch metrics of the screen. | |
| virtual QDpi | logicalBaseDpi () const |
| Reimplement to return the base logical DPI for the platform. | |
| virtual qreal | devicePixelRatio () const |
| Reimplement this function in subclass to return the device pixel ratio for the screen. | |
| virtual qreal | refreshRate () const |
| Reimplement this function in subclass to return the vertical refresh rate of the screen, in Hz. | |
| virtual Qt::ScreenOrientation | nativeOrientation () const |
| Reimplement this function in subclass to return the native orientation of the screen, e.g. | |
| virtual Qt::ScreenOrientation | orientation () const |
| Reimplement this function in subclass to return the current orientation of the screen, for example based on accelerometer data to determine the device orientation. | |
| virtual QWindow * | topLevelAt (const QPoint &point) const |
| Return the given top level window for a given position. | |
| QWindowList | windows () const |
| Return all windows residing on this screen. | |
| virtual QList< QPlatformScreen * > | virtualSiblings () const |
| Returns a list of all the platform screens that are part of the same virtual desktop. | |
| const QPlatformScreen * | screenForPosition (const QPoint &point) const |
| Find the sibling screen corresponding to globalPos. | |
| QScreen * | screen () const |
| virtual QString | name () const |
| virtual QString | manufacturer () const |
| Reimplement this function in subclass to return the manufacturer of this screen. | |
| virtual QString | model () const |
| Reimplement this function in subclass to return the model of this screen. | |
| virtual QString | serialNumber () const |
| Reimplement this function in subclass to return the serial number of this screen. | |
| virtual QPlatformCursor * | cursor () const |
| Reimplement this function in subclass to return the cursor of the screen. | |
| virtual SubpixelAntialiasingType | subpixelAntialiasingTypeHint () const |
| Returns a hint about this screen's subpixel layout structure. | |
| virtual PowerState | powerState () const |
| Returns the current power state. | |
| virtual void | setPowerState (PowerState state) |
| Sets the power state for this screen. | |
| virtual QList< Mode > | modes () const |
| Reimplement this function in subclass to return the list of modes for this screen. | |
| virtual int | currentMode () const |
| Reimplement this function in subclass to return the index of the current mode from the modes list. | |
| virtual int | preferredMode () const |
| Reimplement this function in subclass to return the preferred mode index from the modes list. | |
Definition at line 14 of file qhaikuscreen.h.
| QHaikuScreen::QHaikuScreen | ( | ) |
Definition at line 15 of file qhaikuscreen.cpp.
References Q_ASSERT.
| QHaikuScreen::~QHaikuScreen | ( | ) |
Definition at line 22 of file qhaikuscreen.cpp.
|
overridevirtual |
Reimplement this function in subclass to return the cursor of the screen.
The default implementation returns \nullptr.
Reimplemented from QPlatformScreen.
Definition at line 102 of file qhaikuscreen.cpp.
|
overridevirtual |
Reimplement in subclass to return current depth of the screen.
Implements QPlatformScreen.
Definition at line 70 of file qhaikuscreen.cpp.
References format(), QImage::Format_ARGB32, QImage::Format_Indexed8, QImage::Format_Invalid, QImage::Format_MonoLSB, QImage::Format_RGB16, QImage::Format_RGB32, QImage::Format_RGB555, and QImage::Format_RGB888.
Here is the call graph for this function:
|
overridevirtual |
Reimplement in subclass to return the image format which corresponds to the screen format.
Implements QPlatformScreen.
Definition at line 97 of file qhaikuscreen.cpp.
References QHaikuUtils::colorSpaceToImageFormat().
Referenced by depth().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Reimplement in subclass to return the pixel geometry of the screen.
Implements QPlatformScreen.
Definition at line 64 of file qhaikuscreen.cpp.
References frame.
|
overridevirtual |
This function is called when Qt needs to be able to grab the content of a window.
Returns the content of the window specified with the WId handle within the boundaries of QRect(x,y,width,height).
Reimplemented from QPlatformScreen.
Definition at line 31 of file qhaikuscreen.cpp.
References QHaikuUtils::colorSpaceToImageFormat(), frame, QPixmap::fromImage(), and QPlatformScreen::screen().
Here is the call graph for this function: