KWin
|
#include <surfaceitem.h>
Public Member Functions | |
SurfacePixmap (std::unique_ptr< SurfaceTexture > &&texture, QObject *parent=nullptr) | |
GraphicsBuffer * | buffer () const |
void | setBuffer (GraphicsBuffer *buffer) |
GraphicsBufferOrigin | bufferOrigin () const |
void | setBufferOrigin (GraphicsBufferOrigin origin) |
SurfaceTexture * | texture () 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 |
Definition at line 95 of file surfaceitem.h.
|
explicit |
Definition at line 277 of file surfaceitem.cpp.
GraphicsBuffer * KWin::SurfacePixmap::buffer | ( | ) | const |
Definition at line 283 of file surfaceitem.cpp.
GraphicsBufferOrigin KWin::SurfacePixmap::bufferOrigin | ( | ) | const |
Definition at line 300 of file surfaceitem.cpp.
|
pure virtual |
Implemented in KWin::SurfacePixmapInternal, KWin::SurfacePixmapWayland, and KWin::SurfacePixmapX11.
bool KWin::SurfacePixmap::hasAlphaChannel | ( | ) | const |
Definition at line 319 of file surfaceitem.cpp.
bool KWin::SurfacePixmap::isDiscarded | ( | ) | const |
Definition at line 329 of file surfaceitem.cpp.
|
pure virtual |
Implemented in KWin::SurfacePixmapInternal, KWin::SurfacePixmapWayland, and KWin::SurfacePixmapX11.
void KWin::SurfacePixmap::markAsDiscarded | ( | ) |
Definition at line 334 of file surfaceitem.cpp.
void KWin::SurfacePixmap::setBuffer | ( | GraphicsBuffer * | buffer | ) |
Definition at line 288 of file surfaceitem.cpp.
void KWin::SurfacePixmap::setBufferOrigin | ( | GraphicsBufferOrigin | origin | ) |
Definition at line 305 of file surfaceitem.cpp.
QSize KWin::SurfacePixmap::size | ( | ) | const |
Definition at line 324 of file surfaceitem.cpp.
SurfaceTexture * KWin::SurfacePixmap::texture | ( | ) | const |
Definition at line 314 of file surfaceitem.cpp.
|
virtual |
Reimplemented in KWin::SurfacePixmapInternal, and KWin::SurfacePixmapWayland.
Definition at line 310 of file surfaceitem.cpp.
|
protected |
Definition at line 123 of file surfaceitem.h.
|
protected |
Definition at line 122 of file surfaceitem.h.
|
protected |
Definition at line 125 of file surfaceitem.h.
|
protected |
Definition at line 124 of file surfaceitem.h.