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

#include <renderlayerdelegate.h>

Inheritance diagram for KWin::RenderLayerDelegate:
KWin::CursorDelegateOpenGL KWin::CursorDelegateQPainter KWin::SceneDelegate

Public Member Functions

virtual ~RenderLayerDelegate ()=default
 
RenderLayerlayer () const
 
void setLayer (RenderLayer *layer)
 
virtual void frame (OutputFrame *frame)
 
virtual QRegion prePaint ()
 
virtual void postPaint ()
 
virtual SurfaceItemscanoutCandidate () const
 
virtual void paint (const RenderTarget &renderTarget, const QRegion &region)=0
 

Detailed Description

The RenderLayerDelegate class represents a render layer's contents.

Definition at line 27 of file renderlayerdelegate.h.

Constructor & Destructor Documentation

◆ ~RenderLayerDelegate()

virtual KWin::RenderLayerDelegate::~RenderLayerDelegate ( )
virtualdefault

Member Function Documentation

◆ frame()

void KWin::RenderLayerDelegate::frame ( OutputFrame * frame)
virtual

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

Reimplemented in KWin::SceneDelegate.

Definition at line 22 of file renderlayerdelegate.cpp.

◆ layer()

RenderLayer * KWin::RenderLayerDelegate::layer ( ) const

Definition at line 12 of file renderlayerdelegate.cpp.

◆ paint()

virtual void KWin::RenderLayerDelegate::paint ( const RenderTarget & renderTarget,
const QRegion & region )
pure virtual

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

Implemented in KWin::CursorDelegateOpenGL, KWin::CursorDelegateQPainter, and KWin::SceneDelegate.

◆ postPaint()

void KWin::RenderLayerDelegate::postPaint ( )
virtual

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

Reimplemented in KWin::SceneDelegate.

Definition at line 31 of file renderlayerdelegate.cpp.

◆ prePaint()

QRegion KWin::RenderLayerDelegate::prePaint ( )
virtual

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

Reimplemented in KWin::SceneDelegate.

Definition at line 26 of file renderlayerdelegate.cpp.

◆ scanoutCandidate()

SurfaceItem * KWin::RenderLayerDelegate::scanoutCandidate ( ) const
virtual

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

Reimplemented in KWin::SceneDelegate.

Definition at line 35 of file renderlayerdelegate.cpp.

◆ setLayer()

void KWin::RenderLayerDelegate::setLayer ( RenderLayer * layer)

Definition at line 17 of file renderlayerdelegate.cpp.


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