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

#include <offscreenquickview.h>

Inheritance diagram for KWin::OffscreenQuickScene:
KWin::OffscreenQuickView KWin::EffectFrameQuickScene

Public Member Functions

 Private ()
 
 OffscreenQuickScene (ExportMode exportMode=ExportMode::Texture, bool alpha=true)
 
 ~OffscreenQuickScene ()
 
QQuickItem * rootItem () const
 
void setSource (const QUrl &source)
 
void setSource (const QUrl &source, const QVariantMap &initialProperties)
 
- Public Member Functions inherited from KWin::OffscreenQuickView
void releaseResources ()
 
void updateTouchState (Qt::TouchPointState state, qint32 id, const QPointF &pos)
 
 OffscreenQuickView (ExportMode exportMode=ExportMode::Texture, bool alpha=true)
 
 ~OffscreenQuickView ()
 
QSize size () const
 
void setGeometry (const QRect &rect)
 
QRect geometry () const
 
void setOpacity (qreal opacity)
 
qreal opacity () const
 
bool hasAlphaChannel () const
 
void update ()
 
QQuickItem * contentItem () const
 
QQuickWindow * window () const
 
void setVisible (bool visible)
 Marks the window as visible/invisible This can be used to release resources used by the window The default is true.
 
bool isVisible () const
 
void show ()
 
void hide ()
 
bool automaticRepaint () const
 
void setAutomaticRepaint (bool set)
 
GLTexturebufferAsTexture ()
 
QImage bufferAsImage () const
 
void forwardMouseEvent (QEvent *mouseEvent)
 
void forwardKeyEvent (QKeyEvent *keyEvent)
 
bool forwardTouchDown (qint32 id, const QPointF &pos, std::chrono::microseconds time)
 
bool forwardTouchMotion (qint32 id, const QPointF &pos, std::chrono::microseconds time)
 
bool forwardTouchUp (qint32 id, std::chrono::microseconds time)
 

Public Attributes

std::unique_ptr< QQmlComponent > qmlComponent
 
std::unique_ptr< QQuickItem > quickItem
 
- Public Attributes inherited from KWin::OffscreenQuickView
std::unique_ptr< QQuickWindow > m_view
 
std::unique_ptr< QQuickRenderControl > m_renderControl
 
std::unique_ptr< QOffscreenSurface > m_offscreenSurface
 
std::unique_ptr< QOpenGLContext > m_glcontext
 
std::unique_ptr< QOpenGLFramebufferObject > m_fbo
 
std::unique_ptr< QTimer > m_repaintTimer
 
QImage m_image
 
std::unique_ptr< GLTexturem_textureExport
 
bool m_useBlit = false
 
bool m_visible = true
 
bool m_hasAlphaChannel = true
 
bool m_automaticRepaint = true
 
QList< QEventPoint > touchPoints
 
QPointingDevice * touchDevice
 
ulong lastMousePressTime = 0
 
Qt::MouseButton lastMousePressButton = Qt::NoButton
 

Additional Inherited Members

- Public Types inherited from KWin::OffscreenQuickView
enum class  ExportMode { Texture , Image }
 
- Signals inherited from KWin::OffscreenQuickView
void repaintNeeded ()
 
void geometryChanged (const QRect &oldGeometry, const QRect &newGeometry)
 
void renderRequested ()
 
void sceneChanged ()
 

Detailed Description

The KWinQuickScene class extends KWinQuickView adding QML support. This will represent a context powered by an engine

Definition at line 67 of file offscreenquickview.cpp.

Constructor & Destructor Documentation

◆ OffscreenQuickScene()

KWin::OffscreenQuickScene::OffscreenQuickScene ( OffscreenQuickView::ExportMode exportMode = ExportMode::Texture,
bool alpha = true )
explicit

Definition at line 540 of file offscreenquickview.cpp.

◆ ~OffscreenQuickScene()

KWin::OffscreenQuickScene::~OffscreenQuickScene ( )
default

Member Function Documentation

◆ Private()

KWin::OffscreenQuickScene::Private ( )
inline

Definition at line 70 of file offscreenquickview.cpp.

◆ rootItem()

QQuickItem * KWin::OffscreenQuickScene::rootItem ( ) const

top level item in the given source

Definition at line 588 of file offscreenquickview.cpp.

◆ setSource() [1/2]

void KWin::OffscreenQuickScene::setSource ( const QUrl & source)

Definition at line 548 of file offscreenquickview.cpp.

◆ setSource() [2/2]

void KWin::OffscreenQuickScene::setSource ( const QUrl & source,
const QVariantMap & initialProperties )

Definition at line 553 of file offscreenquickview.cpp.

Member Data Documentation

◆ qmlComponent

std::unique_ptr<QQmlComponent> KWin::OffscreenQuickScene::qmlComponent

Definition at line 74 of file offscreenquickview.cpp.

◆ quickItem

std::unique_ptr<QQuickItem> KWin::OffscreenQuickScene::quickItem

Definition at line 75 of file offscreenquickview.cpp.


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