KWin
Loading...
Searching...
No Matches
Public Member Functions | List of all members
KWin::X11WindowedOutput Class Reference

#include <x11_windowed_output.h>

Inheritance diagram for KWin::X11WindowedOutput:
KWin::Output

Public Member Functions

 X11WindowedOutput (X11WindowedBackend *backend)
 
 ~X11WindowedOutput () override
 
RenderLooprenderLoop () const override
 
void init (const QSize &pixelSize, qreal scale)
 
void resize (const QSize &pixelSize)
 
X11WindowedBackendbackend () const
 
X11WindowedCursorcursor () const
 
xcb_window_t window () const
 
int depth () const
 
xcb_pixmap_t importBuffer (GraphicsBuffer *buffer)
 
QPoint internalPosition () const
 
QPoint hostPosition () const
 
void setHostPosition (const QPoint &pos)
 
void setWindowTitle (const QString &title)
 
QPointF mapFromGlobal (const QPointF &pos) const
 
bool updateCursorLayer () override
 
QRegion exposedArea () const
 
void addExposedArea (const QRect &rect)
 
void clearExposedArea ()
 
void updateEnabled (bool enabled)
 
void handlePresentCompleteNotify (xcb_present_complete_notify_event_t *event)
 
void handlePresentIdleNotify (xcb_present_idle_notify_event_t *event)
 
void framePending (const std::shared_ptr< OutputFrame > &frame)
 
- Public Member Functions inherited from KWin::Output
 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
 
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 Edidedid () const
 
QList< std::shared_ptr< OutputMode > > modes () const
 
std::shared_ptr< OutputModecurrentMode () 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< IccProfileiccProfile () const
 
QString iccProfilePath () const
 
QByteArray mstPath () const
 
virtual bool setGammaRamp (const std::shared_ptr< ColorTransformation > &transformation)
 
virtual bool setChannelFactors (const QVector3D &rgb)
 
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 ColorDescriptioncolorDescription () const
 

Additional Inherited Members

- Public Types inherited from KWin::Output
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 inherited from KWin::Output
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 ()
 
- Static Public Member Functions inherited from KWin::Output
static std::chrono::milliseconds dimAnimationTime ()
 
- Protected Member Functions inherited from KWin::Output
void setInformation (const Information &information)
 
void setState (const State &state)
 
- Protected Attributes inherited from KWin::Output
State m_state
 
Information m_information
 
QUuid m_uuid
 
int m_directScanoutCount = 0
 
int m_refCount = 1
 
- Properties inherited from KWin::Output
QRect geometry
 
qreal devicePixelRatio
 
QString name
 
QString manufacturer
 
QString model
 
QString serialNumber
 

Detailed Description

Wayland outputs in a nested X11 setup

Definition at line 76 of file x11_windowed_output.h.

Constructor & Destructor Documentation

◆ X11WindowedOutput()

KWin::X11WindowedOutput::X11WindowedOutput ( X11WindowedBackend * backend)
explicit

Definition at line 136 of file x11_windowed_output.cpp.

◆ ~X11WindowedOutput()

KWin::X11WindowedOutput::~X11WindowedOutput ( )
override

Definition at line 150 of file x11_windowed_output.cpp.

Member Function Documentation

◆ addExposedArea()

void KWin::X11WindowedOutput::addExposedArea ( const QRect & rect)

Definition at line 165 of file x11_windowed_output.cpp.

◆ backend()

X11WindowedBackend * KWin::X11WindowedOutput::backend ( ) const

Definition at line 180 of file x11_windowed_output.cpp.

◆ clearExposedArea()

void KWin::X11WindowedOutput::clearExposedArea ( )

Definition at line 170 of file x11_windowed_output.cpp.

◆ cursor()

X11WindowedCursor * KWin::X11WindowedOutput::cursor ( ) const

Definition at line 185 of file x11_windowed_output.cpp.

◆ depth()

int KWin::X11WindowedOutput::depth ( ) const

Definition at line 195 of file x11_windowed_output.cpp.

◆ exposedArea()

QRegion KWin::X11WindowedOutput::exposedArea ( ) const

Definition at line 160 of file x11_windowed_output.cpp.

◆ framePending()

void KWin::X11WindowedOutput::framePending ( const std::shared_ptr< OutputFrame > & frame)

Definition at line 451 of file x11_windowed_output.cpp.

◆ handlePresentCompleteNotify()

void KWin::X11WindowedOutput::handlePresentCompleteNotify ( xcb_present_complete_notify_event_t * event)

Definition at line 308 of file x11_windowed_output.cpp.

◆ handlePresentIdleNotify()

void KWin::X11WindowedOutput::handlePresentIdleNotify ( xcb_present_idle_notify_event_t * event)

Definition at line 315 of file x11_windowed_output.cpp.

◆ hostPosition()

QPoint KWin::X11WindowedOutput::hostPosition ( ) const

Definition at line 200 of file x11_windowed_output.cpp.

◆ importBuffer()

xcb_pixmap_t KWin::X11WindowedOutput::importBuffer ( GraphicsBuffer * buffer)

Definition at line 427 of file x11_windowed_output.cpp.

◆ init()

void KWin::X11WindowedOutput::init ( const QSize & pixelSize,
qreal scale )

Definition at line 205 of file x11_windowed_output.cpp.

◆ internalPosition()

QPoint KWin::X11WindowedOutput::internalPosition ( ) const

Definition at line 330 of file x11_windowed_output.cpp.

◆ mapFromGlobal()

QPointF KWin::X11WindowedOutput::mapFromGlobal ( const QPointF & pos) const

Translates the global X11 screen coordinate pos to output coordinates.

Definition at line 340 of file x11_windowed_output.cpp.

◆ renderLoop()

RenderLoop * KWin::X11WindowedOutput::renderLoop ( ) const
overridevirtual

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

Implements KWin::Output.

Definition at line 175 of file x11_windowed_output.cpp.

◆ resize()

void KWin::X11WindowedOutput::resize ( const QSize & pixelSize)

Definition at line 298 of file x11_windowed_output.cpp.

◆ setHostPosition()

void KWin::X11WindowedOutput::setHostPosition ( const QPoint & pos)

Definition at line 335 of file x11_windowed_output.cpp.

◆ setWindowTitle()

void KWin::X11WindowedOutput::setWindowTitle ( const QString & title)

Definition at line 325 of file x11_windowed_output.cpp.

◆ updateCursorLayer()

bool KWin::X11WindowedOutput::updateCursorLayer ( )
overridevirtual

Reimplemented from KWin::Output.

Definition at line 345 of file x11_windowed_output.cpp.

◆ updateEnabled()

void KWin::X11WindowedOutput::updateEnabled ( bool enabled)

Definition at line 357 of file x11_windowed_output.cpp.

◆ window()

xcb_window_t KWin::X11WindowedOutput::window ( ) const

Definition at line 190 of file x11_windowed_output.cpp.


The documentation for this class was generated from the following files: