KWin
|
#include <output.h>
Classes | |
struct | Information |
struct | State |
Public Types | |
enum class | DpmsMode { On , Standby , Suspend , Off } |
enum class | Capability : uint { Dpms = 1 , Overscan = 1 << 1 , Vrr = 1 << 2 , RgbRange = 1 << 3 , HighDynamicRange = 1 << 4 , WideColorGamut = 1 << 5 , AutoRotation = 1 << 6 , IccProfile = 1 << 7 , Tearing = 1 << 8 } |
enum class | SubPixel { Unknown , None , Horizontal_RGB , Horizontal_BGR , Vertical_RGB , Vertical_BGR } |
enum class | RgbRange { Automatic = 0 , Full = 1 , Limited = 2 } |
enum class | AutoRotationPolicy { Never = 0 , InTabletMode , Always } |
Signals | |
void | geometryChanged () |
void | enabledChanged () |
void | scaleChanged () |
void | aboutToTurnOff (std::chrono::milliseconds time) |
void | wakeUp () |
void | aboutToChange (OutputChangeSet *changeSet) |
void | changed () |
void | currentModeChanged () |
void | modesChanged () |
void | outputChange (const QRegion &damagedRegion) |
void | transformChanged () |
void | dpmsModeChanged () |
void | capabilitiesChanged () |
void | overscanChanged () |
void | vrrPolicyChanged () |
void | rgbRangeChanged () |
void | wideColorGamutChanged () |
void | sdrBrightnessChanged () |
void | highDynamicRangeChanged () |
void | autoRotationPolicyChanged () |
void | iccProfileChanged () |
void | iccProfilePathChanged () |
void | brightnessMetadataChanged () |
void | sdrGamutWidenessChanged () |
void | colorDescriptionChanged () |
Public Member Functions | |
Q_ENUM (AutoRotationPolicy) | |
Output (QObject *parent=nullptr) | |
~Output () override | |
void | ref () |
void | unref () |
QRect | mapFromGlobal (const QRect &rect) const |
QRectF | mapFromGlobal (const QRectF &rect) const |
QRectF | mapToGlobal (const QRectF &rect) const |
Q_INVOKABLE QPointF | mapToGlobal (const QPointF &pos) const |
Q_INVOKABLE QPointF | mapFromGlobal (const QPointF &pos) const |
QString | name () const |
QUuid | uuid () const |
bool | isEnabled () const |
QRect | geometry () const |
QRectF | geometryF () const |
QRect | rect () const |
QRectF | rectF () const |
uint32_t | refreshRate () const |
bool | isInternal () const |
qreal | scale () const |
QSize | physicalSize () const |
QSize | pixelSize () const |
QSize | modeSize () const |
QString | eisaId () const |
QString | manufacturer () const |
QString | model () const |
QString | serialNumber () const |
virtual RenderLoop * | renderLoop () const =0 |
void | inhibitDirectScanout () |
void | uninhibitDirectScanout () |
bool | directScanoutInhibited () const |
OutputTransform | transform () const |
OutputTransform | manualTransform () const |
QSize | orientateSize (const QSize &size) const |
void | applyChanges (const OutputConfiguration &config) |
SubPixel | subPixel () const |
QString | description () const |
Capabilities | capabilities () const |
const Edid & | edid () const |
QList< std::shared_ptr< OutputMode > > | modes () const |
std::shared_ptr< OutputMode > | currentMode () const |
DpmsMode | dpmsMode () const |
virtual void | setDpmsMode (DpmsMode mode) |
uint32_t | overscan () const |
VrrPolicy | vrrPolicy () const |
RgbRange | rgbRange () const |
bool | isPlaceholder () const |
bool | isNonDesktop () const |
OutputTransform | panelOrientation () const |
bool | wideColorGamut () const |
bool | highDynamicRange () const |
uint32_t | sdrBrightness () const |
AutoRotationPolicy | autoRotationPolicy () const |
std::shared_ptr< IccProfile > | iccProfile () const |
QString | iccProfilePath () const |
QByteArray | mstPath () const |
virtual bool | setGammaRamp (const std::shared_ptr< ColorTransformation > &transformation) |
virtual bool | setChannelFactors (const QVector3D &rgb) |
virtual bool | updateCursorLayer () |
std::optional< double > | maxPeakBrightness () const |
std::optional< double > | maxAverageBrightness () const |
double | minBrightness () const |
std::optional< double > | maxPeakBrightnessOverride () const |
std::optional< double > | maxAverageBrightnessOverride () const |
std::optional< double > | minBrightnessOverride () const |
double | sdrGamutWideness () const |
const ColorDescription & | colorDescription () const |
Static Public Member Functions | |
static std::chrono::milliseconds | dimAnimationTime () |
Protected Member Functions | |
void | setInformation (const Information &information) |
void | setState (const State &state) |
Protected Attributes | |
State | m_state |
Information | m_information |
QUuid | m_uuid |
int | m_directScanoutCount = 0 |
int | m_refCount = 1 |
Properties | |
QRect | geometry |
qreal | devicePixelRatio |
QString | name |
QString | manufacturer |
QString | model |
QString | serialNumber |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
explicit |
Definition at line 336 of file output.cpp.
|
override |
Definition at line 341 of file output.cpp.
|
signal |
Notifies that the output is about to change configuration based on a user interaction.
Be it because it gets a transformation or moved around.
Only to be used for effects
|
signal |
Notifies that the display will be dimmed in time
ms. This allows effects to plan for it and hopefully animate it
void KWin::Output::applyChanges | ( | const OutputConfiguration & | config | ) |
Definition at line 510 of file output.cpp.
Output::AutoRotationPolicy KWin::Output::autoRotationPolicy | ( | ) | const |
Definition at line 707 of file output.cpp.
|
signal |
|
signal |
Output::Capabilities KWin::Output::capabilities | ( | ) | const |
Definition at line 450 of file output.cpp.
|
signal |
|
signal |
Notifies that the output changed based on a user interaction.
Be it because it gets a transformation or moved around.
Only to be used for effects
const ColorDescription & KWin::Output::colorDescription | ( | ) | const |
Definition at line 732 of file output.cpp.
|
signal |
std::shared_ptr< OutputMode > KWin::Output::currentMode | ( | ) | const |
Definition at line 500 of file output.cpp.
|
signal |
QString KWin::Output::description | ( | ) | const |
Definition at line 541 of file output.cpp.
|
static |
This allows the backends to coordinate with the front-end the time they allow to decorate the dimming until the display is turned off
Definition at line 419 of file output.cpp.
bool KWin::Output::directScanoutInhibited | ( | ) | const |
Definition at line 414 of file output.cpp.
Output::DpmsMode KWin::Output::dpmsMode | ( | ) | const |
Definition at line 647 of file output.cpp.
|
signal |
const Edid & KWin::Output::edid | ( | ) | const |
Definition at line 490 of file output.cpp.
QString KWin::Output::eisaId | ( | ) | const |
Definition at line 379 of file output.cpp.
|
signal |
This signal is emitted when the output has been enabled or disabled.
QRect KWin::Output::geometry | ( | ) | const |
Returns geometry of this output in device independent pixels.
Definition at line 460 of file output.cpp.
|
signal |
This signal is emitted when the geometry of this output has changed.
QRectF KWin::Output::geometryF | ( | ) | const |
Returns geometry of this output in device independent pixels, without rounding
Definition at line 465 of file output.cpp.
bool KWin::Output::highDynamicRange | ( | ) | const |
Definition at line 697 of file output.cpp.
|
signal |
std::shared_ptr< IccProfile > KWin::Output::iccProfile | ( | ) | const |
Definition at line 712 of file output.cpp.
|
signal |
QString KWin::Output::iccProfilePath | ( | ) | const |
Definition at line 717 of file output.cpp.
|
signal |
void KWin::Output::inhibitDirectScanout | ( | ) |
Definition at line 404 of file output.cpp.
bool KWin::Output::isEnabled | ( | ) | const |
Returns true
if the output is enabled; otherwise returns false
.
Definition at line 536 of file output.cpp.
bool KWin::Output::isInternal | ( | ) | const |
Returns whether this output is connected through an internal connector, e.g. LVDS, or eDP.
Definition at line 399 of file output.cpp.
bool KWin::Output::isNonDesktop | ( | ) | const |
Definition at line 667 of file output.cpp.
bool KWin::Output::isPlaceholder | ( | ) | const |
Definition at line 662 of file output.cpp.
OutputTransform KWin::Output::manualTransform | ( | ) | const |
The transform that the user has configured, and which doesn't get changed by automatic rotation
Definition at line 374 of file output.cpp.
QString KWin::Output::manufacturer | ( | ) | const |
Returns the manufacturer of the screen.
Definition at line 384 of file output.cpp.
QPointF KWin::Output::mapFromGlobal | ( | const QPointF & | pos | ) | const |
Definition at line 445 of file output.cpp.
QRect KWin::Output::mapFromGlobal | ( | const QRect & | rect | ) | const |
Maps the specified rect from the global coordinate system to the output-local coords.
Definition at line 425 of file output.cpp.
QRectF KWin::Output::mapFromGlobal | ( | const QRectF & | rect | ) | const |
Maps the specified rect from the global coordinate system to the output-local coords.
Definition at line 430 of file output.cpp.
QPointF KWin::Output::mapToGlobal | ( | const QPointF & | pos | ) | const |
Definition at line 440 of file output.cpp.
QRectF KWin::Output::mapToGlobal | ( | const QRectF & | rect | ) | const |
Maps a rect in this output coordinates to the global coordinate system.
Definition at line 435 of file output.cpp.
std::optional< double > KWin::Output::maxAverageBrightness | ( | ) | const |
Definition at line 742 of file output.cpp.
std::optional< double > KWin::Output::maxAverageBrightnessOverride | ( | ) | const |
Definition at line 757 of file output.cpp.
std::optional< double > KWin::Output::maxPeakBrightness | ( | ) | const |
Definition at line 737 of file output.cpp.
std::optional< double > KWin::Output::maxPeakBrightnessOverride | ( | ) | const |
Definition at line 752 of file output.cpp.
double KWin::Output::minBrightness | ( | ) | const |
Definition at line 747 of file output.cpp.
std::optional< double > KWin::Output::minBrightnessOverride | ( | ) | const |
Definition at line 762 of file output.cpp.
QString KWin::Output::model | ( | ) | const |
Returns the model of the screen.
Definition at line 389 of file output.cpp.
QList< std::shared_ptr< OutputMode > > KWin::Output::modes | ( | ) | const |
Definition at line 495 of file output.cpp.
|
signal |
QSize KWin::Output::modeSize | ( | ) | const |
Definition at line 480 of file output.cpp.
QByteArray KWin::Output::mstPath | ( | ) | const |
Definition at line 722 of file output.cpp.
QString KWin::Output::name | ( | ) | const |
Returns a short identifiable name of this output.
Definition at line 359 of file output.cpp.
QSize KWin::Output::orientateSize | ( | const QSize & | size | ) | const |
Definition at line 630 of file output.cpp.
|
signal |
uint32_t KWin::Output::overscan | ( | ) | const |
Definition at line 652 of file output.cpp.
|
signal |
OutputTransform KWin::Output::panelOrientation | ( | ) | const |
Definition at line 687 of file output.cpp.
QSize KWin::Output::physicalSize | ( | ) | const |
Returns the non-rotated physical size of this output, in millimeters.
Definition at line 470 of file output.cpp.
QSize KWin::Output::pixelSize | ( | ) | const |
Returns the resolution of the output.
Definition at line 485 of file output.cpp.
KWin::Output::Q_ENUM | ( | AutoRotationPolicy | ) |
|
inline |
Equivalent to QRect(QPoint(0, 0), geometry().size())
|
inline |
Equivalent to QRectF(QPointF(0, 0), geometryF().size())
void KWin::Output::ref | ( | ) |
Definition at line 345 of file output.cpp.
uint32_t KWin::Output::refreshRate | ( | ) | const |
Returns the approximate vertical refresh rate of this output, in mHz.
Definition at line 475 of file output.cpp.
|
pure virtual |
Returns the RenderLoop for this output. If the platform does not support per screen rendering, all outputs will share the same render loop. FIXME: remove this and decouple RenderLoop from Output
Implemented in KWin::DrmAbstractOutput, KWin::VirtualOutput, KWin::Wayland::WaylandOutput, KWin::X11Output, KWin::X11PlaceholderOutput, KWin::X11WindowedOutput, KWin::PlaceholderOutput, and FakeOutput.
Output::RgbRange KWin::Output::rgbRange | ( | ) | const |
Definition at line 672 of file output.cpp.
|
signal |
qreal KWin::Output::scale | ( | ) | const |
Returns the ratio between physical pixels and logical pixels.
Definition at line 455 of file output.cpp.
|
signal |
This signal is emitted when the device pixel ratio of the output has changed.
uint32_t KWin::Output::sdrBrightness | ( | ) | const |
Definition at line 702 of file output.cpp.
|
signal |
double KWin::Output::sdrGamutWideness | ( | ) | const |
Definition at line 767 of file output.cpp.
|
signal |
QString KWin::Output::serialNumber | ( | ) | const |
Returns the serial number of the screen.
Definition at line 394 of file output.cpp.
|
virtual |
Reimplemented in KWin::DrmOutput, and KWin::X11Output.
Definition at line 677 of file output.cpp.
|
virtual |
Reimplemented in KWin::Wayland::WaylandOutput.
Definition at line 643 of file output.cpp.
|
virtual |
Definition at line 682 of file output.cpp.
|
protected |
Definition at line 556 of file output.cpp.
|
protected |
Definition at line 562 of file output.cpp.
Output::SubPixel KWin::Output::subPixel | ( | ) | const |
Definition at line 505 of file output.cpp.
OutputTransform KWin::Output::transform | ( | ) | const |
Definition at line 369 of file output.cpp.
|
signal |
void KWin::Output::uninhibitDirectScanout | ( | ) |
Definition at line 409 of file output.cpp.
void KWin::Output::unref | ( | ) |
Definition at line 350 of file output.cpp.
|
virtual |
Reimplemented in KWin::DrmOutput, KWin::Wayland::WaylandOutput, and KWin::X11WindowedOutput.
Definition at line 727 of file output.cpp.
QUuid KWin::Output::uuid | ( | ) | const |
Returns the identifying uuid of this output.
Definition at line 364 of file output.cpp.
VrrPolicy KWin::Output::vrrPolicy | ( | ) | const |
Definition at line 657 of file output.cpp.
|
signal |
|
signal |
Notifies that the output has been turned on and the wake can be decorated.
bool KWin::Output::wideColorGamut | ( | ) | const |
Definition at line 692 of file output.cpp.
|
signal |
|
protected |