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

#include <output.h>

Public Types

enum  Kind {
  Normal = 0 , Rotate90 = 1 , Rotate180 = 2 , Rotate270 = 3 ,
  FlipX = 4 , FlipX90 = 5 , FlipX180 = 6 , FlipX270 = 7 ,
  FlipY = FlipX180 , FlipY90 = FlipX270 , FlipY180 = FlipX , FlipY270 = FlipX90
}
 

Public Member Functions

 OutputTransform ()=default
 
 OutputTransform (Kind kind)
 
bool operator<=> (const OutputTransform &other) const =default
 
Kind kind () const
 
OutputTransform inverted () const
 
QSizeF map (const QSizeF &size) const
 
QSize map (const QSize &size) const
 
QRectF map (const QRectF &rect, const QSizeF &bounds) const
 
QRect map (const QRect &rect, const QSize &bounds) const
 
QPointF map (const QPointF &point, const QSizeF &bounds) const
 
QPoint map (const QPoint &point, const QSize &bounds) const
 
OutputTransform combine (OutputTransform other) const
 
QMatrix4x4 toMatrix () const
 

Detailed Description

The OutputTransform type is used to describe the transform applied to the output content.

Definition at line 36 of file output.h.

Member Enumeration Documentation

◆ Kind

Enumerator
Normal 
Rotate90 
Rotate180 
Rotate270 
FlipX 
FlipX90 
FlipX180 
FlipX270 
FlipY 
FlipY90 
FlipY180 
FlipY270 

Definition at line 39 of file output.h.

Constructor & Destructor Documentation

◆ OutputTransform() [1/2]

KWin::OutputTransform::OutputTransform ( )
default

◆ OutputTransform() [2/2]

KWin::OutputTransform::OutputTransform ( Kind kind)
inline

Definition at line 55 of file output.h.

Member Function Documentation

◆ combine()

OutputTransform KWin::OutputTransform::combine ( OutputTransform other) const

Returns an output transform that is equivalent to applying this transform and other transform sequentially.

Definition at line 268 of file output.cpp.

◆ inverted()

OutputTransform KWin::OutputTransform::inverted ( ) const

Returns the inverse transform. The inverse transform can be used for mapping between surface and buffer coordinate systems.

Definition at line 69 of file output.cpp.

◆ kind()

OutputTransform::Kind KWin::OutputTransform::kind ( ) const

Returns the transform kind.

Definition at line 64 of file output.cpp.

◆ map() [1/6]

QPoint KWin::OutputTransform::map ( const QPoint & point,
const QSize & bounds ) const

Definition at line 211 of file output.cpp.

◆ map() [2/6]

QPointF KWin::OutputTransform::map ( const QPointF & point,
const QSizeF & bounds ) const

Applies the output transform to the given point.

Definition at line 180 of file output.cpp.

◆ map() [3/6]

QRect KWin::OutputTransform::map ( const QRect & rect,
const QSize & bounds ) const

Definition at line 135 of file output.cpp.

◆ map() [4/6]

QRectF KWin::OutputTransform::map ( const QRectF & rect,
const QSizeF & bounds ) const

Applies the output transform to the given rect within a buffer with dimensions bounds.

Definition at line 90 of file output.cpp.

◆ map() [5/6]

QSize KWin::OutputTransform::map ( const QSize & size) const

Definition at line 255 of file output.cpp.

◆ map() [6/6]

QSizeF KWin::OutputTransform::map ( const QSizeF & size) const

Applies the output transform to the given size.

Definition at line 242 of file output.cpp.

◆ operator<=>()

bool KWin::OutputTransform::operator<=> ( const OutputTransform & other) const
default

◆ toMatrix()

QMatrix4x4 KWin::OutputTransform::toMatrix ( ) const

Returns the matrix corresponding to this output transform.

Definition at line 300 of file output.cpp.


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