KWin
|
#include <x11_standalone_effects.h>
Public Member Functions | |
EffectsHandlerX11 (Compositor *compositor, WorkspaceScene *scene) | |
~EffectsHandlerX11 () override | |
void | defineCursor (Qt::CursorShape shape) override |
![]() | |
EffectsHandler (Compositor *compositor, WorkspaceScene *scene) | |
~EffectsHandler () override | |
void | startPaint () |
void | prePaintScreen (ScreenPrePaintData &data, std::chrono::milliseconds presentTime) |
void | paintScreen (const RenderTarget &renderTarget, const RenderViewport &viewport, int mask, const QRegion ®ion, Output *screen) |
void | postPaintScreen () |
void | prePaintWindow (EffectWindow *w, WindowPrePaintData &data, std::chrono::milliseconds presentTime) |
void | paintWindow (const RenderTarget &renderTarget, const RenderViewport &viewport, EffectWindow *w, int mask, const QRegion ®ion, WindowPaintData &data) |
void | postPaintWindow (EffectWindow *w) |
void | drawWindow (const RenderTarget &renderTarget, const RenderViewport &viewport, EffectWindow *w, int mask, const QRegion ®ion, WindowPaintData &data) |
void | renderWindow (const RenderTarget &renderTarget, const RenderViewport &viewport, EffectWindow *w, int mask, const QRegion ®ion, WindowPaintData &data) |
QVariant | kwinOption (KWinOption kwopt) |
QPointF | cursorPos () const |
bool | grabKeyboard (Effect *effect) |
void | ungrabKeyboard () |
void | startMouseInterception (Effect *effect, Qt::CursorShape shape) |
void | stopMouseInterception (Effect *effect) |
bool | isMouseInterception () const |
bool | checkInputWindowEvent (QMouseEvent *e) |
bool | checkInputWindowEvent (QWheelEvent *e) |
void | checkInputWindowStacking () |
void | grabbedKeyboardEvent (QKeyEvent *e) |
bool | hasKeyboardGrab () const |
void | registerPointerShortcut (Qt::KeyboardModifiers modifiers, Qt::MouseButton pointerButtons, QAction *action) |
Registers a global pointer shortcut with the provided action . | |
void | registerAxisShortcut (Qt::KeyboardModifiers modifiers, PointerAxisDirection axis, QAction *action) |
Registers a global axis shortcut with the provided action . | |
void | registerTouchpadSwipeShortcut (SwipeDirection dir, uint fingerCount, QAction *onUp, std::function< void(qreal)> progressCallback={}) |
Registers a global touchpad swipe gesture shortcut with the provided action . | |
void | registerTouchpadPinchShortcut (PinchDirection dir, uint fingerCount, QAction *onUp, std::function< void(qreal)> progressCallback={}) |
void | registerTouchscreenSwipeShortcut (SwipeDirection direction, uint fingerCount, QAction *action, std::function< void(qreal)> progressCallback) |
Registers a global touchscreen swipe gesture shortcut with the provided action . | |
void | startMousePolling () |
void | stopMousePolling () |
void | reserveElectricBorder (ElectricBorder border, Effect *effect) |
void | unreserveElectricBorder (ElectricBorder border, Effect *effect) |
void | registerTouchBorder (ElectricBorder border, QAction *action) |
void | registerRealtimeTouchBorder (ElectricBorder border, QAction *action, TouchBorderCallback progressCallback) |
void | unregisterTouchBorder (ElectricBorder border, QAction *action) |
void | activateWindow (KWin::EffectWindow *c) |
KWin::EffectWindow * | activeWindow () const |
Q_SCRIPTABLE void | moveWindow (KWin::EffectWindow *w, const QPoint &pos, bool snap=false, double snapAdjust=1.0) |
Q_SCRIPTABLE void | windowToDesktops (KWin::EffectWindow *w, const QList< KWin::VirtualDesktop * > &desktops) |
Q_SCRIPTABLE void | windowToScreen (KWin::EffectWindow *w, Output *screen) |
void | setShowingDesktop (bool showing) |
QString | currentActivity () const |
VirtualDesktop * | currentDesktop () const |
QList< VirtualDesktop * > | desktops () const |
void | setCurrentDesktop (KWin::VirtualDesktop *desktop) |
QSize | desktopGridSize () const |
int | desktopGridWidth () const |
int | desktopGridHeight () const |
int | workspaceWidth () const |
int | workspaceHeight () const |
VirtualDesktop * | desktopAtCoords (QPoint coords) const |
QPoint | desktopGridCoords (VirtualDesktop *desktop) const |
QPoint | desktopCoords (VirtualDesktop *desktop) const |
Q_SCRIPTABLE KWin::VirtualDesktop * | desktopAbove (KWin::VirtualDesktop *desktop=nullptr, bool wrap=true) const |
Q_SCRIPTABLE KWin::VirtualDesktop * | desktopToRight (KWin::VirtualDesktop *desktop=nullptr, bool wrap=true) const |
Q_SCRIPTABLE KWin::VirtualDesktop * | desktopBelow (KWin::VirtualDesktop *desktop=nullptr, bool wrap=true) const |
Q_SCRIPTABLE KWin::VirtualDesktop * | desktopToLeft (KWin::VirtualDesktop *desktop=nullptr, bool wrap=true) const |
Q_SCRIPTABLE QString | desktopName (KWin::VirtualDesktop *desktop) const |
bool | optionRollOverDesktops () const |
Output * | activeScreen () const |
QRectF | clientArea (clientAreaOption, const Output *screen, const VirtualDesktop *desktop) const |
QRectF | clientArea (clientAreaOption, const EffectWindow *c) const |
QRectF | clientArea (clientAreaOption, const QPoint &p, const VirtualDesktop *desktop) const |
QSize | virtualScreenSize () const |
QRect | virtualScreenGeometry () const |
double | animationTimeFactor () const |
Q_SCRIPTABLE KWin::EffectWindow * | findWindow (WId id) const |
Q_SCRIPTABLE KWin::EffectWindow * | findWindow (SurfaceInterface *surf) const |
Q_SCRIPTABLE KWin::EffectWindow * | findWindow (QWindow *w) const |
Q_SCRIPTABLE KWin::EffectWindow * | findWindow (const QUuid &id) const |
QList< EffectWindow * > | stackingOrder () const |
Q_SCRIPTABLE void | setElevatedWindow (KWin::EffectWindow *w, bool set) |
void | setTabBoxWindow (EffectWindow *) |
QList< EffectWindow * > | currentTabBoxWindowList () const |
void | refTabBox () |
void | unrefTabBox () |
void | closeTabBox () |
EffectWindow * | currentTabBoxWindow () const |
void | setActiveFullScreenEffect (Effect *e) |
Effect * | activeFullScreenEffect () const |
Q_SCRIPTABLE void | addRepaintFull () |
Q_SCRIPTABLE void | addRepaint (const QRectF &r) |
Q_SCRIPTABLE void | addRepaint (const QRect &r) |
Q_SCRIPTABLE void | addRepaint (const QRegion &r) |
Q_SCRIPTABLE void | addRepaint (int x, int y, int w, int h) |
CompositingType | compositingType () const |
bool | isOpenGLCompositing () const |
Whether the Compositor is OpenGL based (either GL 1 or 2). | |
QPainter * | scenePainter () |
Provides access to the QPainter which is rendering to the back buffer. | |
void | reconfigure () |
QByteArray | readRootProperty (long atom, long type, int format) const |
xcb_atom_t | announceSupportProperty (const QByteArray &propertyName, Effect *effect) |
Announces support for the feature with the given name. If no other Effect has announced support for this feature yet, an X11 property will be installed on the root window. | |
void | removeSupportProperty (const QByteArray &propertyName, Effect *effect) |
Removes support for the feature with the given name. If there is no other Effect left which has announced support for the given property, the property will be removed from the root window. | |
bool | hasDecorationShadows () const |
bool | decorationsHaveAlpha () const |
void | reloadEffect (Effect *effect) |
Effect * | provides (Effect::Feature ef) |
Effect * | findEffect (const QString &name) const |
QStringList | loadedEffects () const |
QStringList | listOfEffects () const |
void | unloadAllEffects () |
QStringList | activeEffects () const |
bool | isEffectActive (const QString &pluginId) const |
bool | isScreenLocked () const |
bool | makeOpenGLContextCurrent () |
Makes the OpenGL compositing context current. | |
void | doneOpenGLContextCurrent () |
Makes a null OpenGL context current resulting in no context being current. | |
xcb_connection_t * | xcbConnection () const |
xcb_window_t | x11RootWindow () const |
Display * | waylandDisplay () const |
bool | animationsSupported () const |
PlatformCursorImage | cursorImage () const |
void | hideCursor () |
void | showCursor () |
bool | isCursorHidden () const |
void | startInteractiveWindowSelection (std::function< void(KWin::EffectWindow *)> callback) |
void | startInteractivePositionSelection (std::function< void(const QPointF &)> callback) |
void | showOnScreenMessage (const QString &message, const QString &iconName=QString()) |
void | hideOnScreenMessage (OnScreenMessageHideFlags flags=OnScreenMessageHideFlags()) |
KSharedConfigPtr | config () const |
KSharedConfigPtr | inputConfig () const |
bool | hasActiveFullScreenEffect () const |
void | renderOffscreenQuickView (const RenderTarget &renderTarget, const RenderViewport &viewport, OffscreenQuickView *effectQuickView) const |
SessionState | sessionState () const |
QList< Output * > | screens () const |
Output * | screenAt (const QPoint &point) const |
Output * | findScreen (const QString &name) const |
Output * | findScreen (int screenId) const |
KWin::EffectWindow * | inputPanel () const |
bool | isInputPanelOverlay () const |
QQmlEngine * | qmlEngine () const |
bool | blocksDirectScanout () const |
WorkspaceScene * | scene () const |
bool | touchDown (qint32 id, const QPointF &pos, std::chrono::microseconds time) |
bool | touchMotion (qint32 id, const QPointF &pos, std::chrono::microseconds time) |
bool | touchUp (qint32 id, std::chrono::microseconds time) |
bool | tabletToolEvent (KWin::TabletEvent *event) |
bool | tabletToolButtonEvent (uint button, bool pressed, const KWin::TabletToolId &tabletToolId, std::chrono::microseconds time) |
bool | tabletPadButtonEvent (uint button, bool pressed, const KWin::TabletPadId &tabletPadId, std::chrono::microseconds time) |
bool | tabletPadStripEvent (int number, int position, bool isFinger, const KWin::TabletPadId &tabletPadId, std::chrono::microseconds time) |
bool | tabletPadRingEvent (int number, int position, bool isFinger, const KWin::TabletPadId &tabletPadId, std::chrono::microseconds time) |
void | highlightWindows (const QList< EffectWindow * > &windows) |
bool | isPropertyTypeRegistered (xcb_atom_t atom) const |
Protected Member Functions | |
bool | doGrabKeyboard () override |
void | doUngrabKeyboard () override |
void | doStartMouseInterception (Qt::CursorShape shape) override |
void | doStopMouseInterception () override |
void | doCheckInputWindowStacking () override |
![]() | |
void | connectNotify (const QMetaMethod &signal) override |
void | disconnectNotify (const QMetaMethod &signal) override |
void | effectsChanged () |
void | setupWindowConnections (KWin::Window *window) |
void | registerPropertyType (long atom, bool reg) |
void | destroyEffect (Effect *effect) |
void | reconfigureEffects () |
Definition at line 22 of file x11_standalone_effects.h.
|
explicit |
Definition at line 23 of file x11_standalone_effects.cpp.
|
override |
Definition at line 33 of file x11_standalone_effects.cpp.
|
overridevirtual |
Sets the cursor while the mouse is intercepted.
Reimplemented from KWin::EffectsHandler.
Definition at line 96 of file x11_standalone_effects.cpp.
|
overrideprotectedvirtual |
Default implementation does nothing
Reimplemented from KWin::EffectsHandler.
Definition at line 104 of file x11_standalone_effects.cpp.
|
overrideprotectedvirtual |
Default implementation does nothing and returns true
.
Reimplemented from KWin::EffectsHandler.
Definition at line 45 of file x11_standalone_effects.cpp.
|
overrideprotectedvirtual |
Default implementation sets Effects override cursor on the PointerInputRedirection.
Reimplemented from KWin::EffectsHandler.
Definition at line 65 of file x11_standalone_effects.cpp.
|
overrideprotectedvirtual |
Default implementation removes the Effects override cursor on the PointerInputRedirection.
Reimplemented from KWin::EffectsHandler.
Definition at line 89 of file x11_standalone_effects.cpp.
|
overrideprotectedvirtual |
Default implementation does nothing.
Reimplemented from KWin::EffectsHandler.
Definition at line 59 of file x11_standalone_effects.cpp.