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

#include <surfaceitem.h>

Inheritance diagram for KWin::SurfacePixmap:
KWin::SurfacePixmapInternal KWin::SurfacePixmapWayland KWin::SurfacePixmapX11

Public Member Functions

 SurfacePixmap (std::unique_ptr< SurfaceTexture > &&texture, QObject *parent=nullptr)
 
GraphicsBufferbuffer () const
 
void setBuffer (GraphicsBuffer *buffer)
 
GraphicsBufferOrigin bufferOrigin () const
 
void setBufferOrigin (GraphicsBufferOrigin origin)
 
SurfaceTexturetexture () const
 
bool hasAlphaChannel () const
 
QSize size () const
 
bool isDiscarded () const
 
void markAsDiscarded ()
 
virtual void create ()=0
 
virtual void update ()
 
virtual bool isValid () const =0
 

Protected Attributes

GraphicsBufferRef m_bufferRef
 
GraphicsBufferOrigin m_bufferOrigin = GraphicsBufferOrigin::TopLeft
 
QSize m_size
 
bool m_hasAlphaChannel = false
 

Detailed Description

Definition at line 95 of file surfaceitem.h.

Constructor & Destructor Documentation

◆ SurfacePixmap()

KWin::SurfacePixmap::SurfacePixmap ( std::unique_ptr< SurfaceTexture > && texture,
QObject * parent = nullptr )
explicit

Definition at line 277 of file surfaceitem.cpp.

Member Function Documentation

◆ buffer()

GraphicsBuffer * KWin::SurfacePixmap::buffer ( ) const

Definition at line 283 of file surfaceitem.cpp.

◆ bufferOrigin()

GraphicsBufferOrigin KWin::SurfacePixmap::bufferOrigin ( ) const

Definition at line 300 of file surfaceitem.cpp.

◆ create()

virtual void KWin::SurfacePixmap::create ( )
pure virtual

◆ hasAlphaChannel()

bool KWin::SurfacePixmap::hasAlphaChannel ( ) const

Definition at line 319 of file surfaceitem.cpp.

◆ isDiscarded()

bool KWin::SurfacePixmap::isDiscarded ( ) const

Definition at line 329 of file surfaceitem.cpp.

◆ isValid()

virtual bool KWin::SurfacePixmap::isValid ( ) const
pure virtual

◆ markAsDiscarded()

void KWin::SurfacePixmap::markAsDiscarded ( )

Definition at line 334 of file surfaceitem.cpp.

◆ setBuffer()

void KWin::SurfacePixmap::setBuffer ( GraphicsBuffer * buffer)

Definition at line 288 of file surfaceitem.cpp.

◆ setBufferOrigin()

void KWin::SurfacePixmap::setBufferOrigin ( GraphicsBufferOrigin origin)

Definition at line 305 of file surfaceitem.cpp.

◆ size()

QSize KWin::SurfacePixmap::size ( ) const

Definition at line 324 of file surfaceitem.cpp.

◆ texture()

SurfaceTexture * KWin::SurfacePixmap::texture ( ) const

Definition at line 314 of file surfaceitem.cpp.

◆ update()

void KWin::SurfacePixmap::update ( )
virtual

Reimplemented in KWin::SurfacePixmapInternal, and KWin::SurfacePixmapWayland.

Definition at line 310 of file surfaceitem.cpp.

Member Data Documentation

◆ m_bufferOrigin

GraphicsBufferOrigin KWin::SurfacePixmap::m_bufferOrigin = GraphicsBufferOrigin::TopLeft
protected

Definition at line 123 of file surfaceitem.h.

◆ m_bufferRef

GraphicsBufferRef KWin::SurfacePixmap::m_bufferRef
protected

Definition at line 122 of file surfaceitem.h.

◆ m_hasAlphaChannel

bool KWin::SurfacePixmap::m_hasAlphaChannel = false
protected

Definition at line 125 of file surfaceitem.h.

◆ m_size

QSize KWin::SurfacePixmap::m_size
protected

Definition at line 124 of file surfaceitem.h.


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