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

#include <scene.h>

Inheritance diagram for KWin::SceneDelegate:
KWin::RenderLayerDelegate

Public Member Functions

 SceneDelegate (Scene *scene, Output *output)
 
 ~SceneDelegate () override
 
Outputoutput () const
 
qreal scale () const
 
QRect viewport () const
 
SurfaceItemscanoutCandidate () const override
 
void frame (OutputFrame *frame) override
 
QRegion prePaint () override
 
void postPaint () override
 
void paint (const RenderTarget &renderTarget, const QRegion &region) override
 
- Public Member Functions inherited from KWin::RenderLayerDelegate
virtual ~RenderLayerDelegate ()=default
 
RenderLayerlayer () const
 
void setLayer (RenderLayer *layer)
 

Detailed Description

Definition at line 22 of file scene.h.

Constructor & Destructor Documentation

◆ SceneDelegate()

KWin::SceneDelegate::SceneDelegate ( Scene * scene,
Output * output )
explicit

Definition at line 15 of file scene.cpp.

◆ ~SceneDelegate()

KWin::SceneDelegate::~SceneDelegate ( )
override

Definition at line 22 of file scene.cpp.

Member Function Documentation

◆ frame()

void KWin::SceneDelegate::frame ( OutputFrame * frame)
overridevirtual

This function is called by the compositor after compositing the frame.

Reimplemented from KWin::RenderLayerDelegate.

Definition at line 47 of file scene.cpp.

◆ output()

Output * KWin::SceneDelegate::output ( ) const

Definition at line 52 of file scene.cpp.

◆ paint()

void KWin::SceneDelegate::paint ( const RenderTarget & renderTarget,
const QRegion & region )
overridevirtual

This function is called when the compositor wants the render layer delegate to repaint its contents.

Implements KWin::RenderLayerDelegate.

Definition at line 42 of file scene.cpp.

◆ postPaint()

void KWin::SceneDelegate::postPaint ( )
overridevirtual

This function is called by the compositor after finishing painting. Reimplement this function to do post frame cleanup.

Reimplemented from KWin::RenderLayerDelegate.

Definition at line 37 of file scene.cpp.

◆ prePaint()

QRegion KWin::SceneDelegate::prePaint ( )
overridevirtual

This function is called by the compositor before starting painting. Reimplement this function to do frame initialization.

Reimplemented from KWin::RenderLayerDelegate.

Definition at line 32 of file scene.cpp.

◆ scale()

qreal KWin::SceneDelegate::scale ( ) const

Definition at line 57 of file scene.cpp.

◆ scanoutCandidate()

SurfaceItem * KWin::SceneDelegate::scanoutCandidate ( ) const
overridevirtual

Returns the direct scanout candidate hint. It can be used to avoid compositing the render layer.

Reimplemented from KWin::RenderLayerDelegate.

Definition at line 27 of file scene.cpp.

◆ viewport()

QRect KWin::SceneDelegate::viewport ( ) const

Definition at line 62 of file scene.cpp.


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