KWin
|
Manager class that handles all the effects. More...
#include <effecthandler.h>
Public Types | |
enum class | OnScreenMessageHideFlag { SkipsCloseAnimation = 1 } |
using | TouchBorderCallback = std::function<void(ElectricBorder border, const QPointF &, Output *screen)> |
Public Slots | |
Q_SCRIPTABLE void | reconfigureEffect (const QString &name) |
Q_SCRIPTABLE bool | loadEffect (const QString &name) |
Q_SCRIPTABLE void | toggleEffect (const QString &name) |
Q_SCRIPTABLE void | unloadEffect (const QString &name) |
Q_SCRIPTABLE bool | isEffectLoaded (const QString &name) const |
Q_SCRIPTABLE bool | isEffectSupported (const QString &name) |
Q_SCRIPTABLE QList< bool > | areEffectsSupported (const QStringList &names) |
Q_SCRIPTABLE QString | supportInformation (const QString &name) const |
Q_SCRIPTABLE QString | debug (const QString &name, const QString ¶meter=QString()) const |
Public Member Functions | |
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) |
virtual void | defineCursor (Qt::CursorShape shape) |
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 Types | |
typedef QList< Effect * > | EffectsList |
typedef EffectsList::const_iterator | EffectsIterator |
typedef QHash< QByteArray, QList< Effect * > > | PropertyEffectMap |
Protected Member Functions | |
void | connectNotify (const QMetaMethod &signal) override |
void | disconnectNotify (const QMetaMethod &signal) override |
void | effectsChanged () |
void | setupWindowConnections (KWin::Window *window) |
virtual bool | doGrabKeyboard () |
virtual void | doUngrabKeyboard () |
virtual void | doStartMouseInterception (Qt::CursorShape shape) |
virtual void | doStopMouseInterception () |
virtual void | doCheckInputWindowStacking () |
void | registerPropertyType (long atom, bool reg) |
void | destroyEffect (Effect *effect) |
void | reconfigureEffects () |
Protected Attributes | |
Effect * | keyboard_grab_effect |
Effect * | fullscreen_effect |
QMultiMap< int, EffectPair > | effect_order |
QHash< long, int > | registered_atoms |
QList< EffectPair > | loaded_effects |
CompositingType | compositing_type |
EffectsList | m_activeEffects |
EffectsIterator | m_currentDrawWindowIterator |
EffectsIterator | m_currentPaintWindowIterator |
EffectsIterator | m_currentPaintScreenIterator |
PropertyEffectMap | m_propertiesForEffects |
QHash< QByteArray, qulonglong > | m_managedProperties |
Compositor * | m_compositor |
WorkspaceScene * | m_scene |
QList< Effect * > | m_grabbedMouseEffects |
EffectLoader * | m_effectLoader |
int | m_trackingCursorChanges |
std::unique_ptr< WindowPropertyNotifyX11Filter > | m_x11WindowPropertyNotify |
Properties | |
QStringList | activeEffects |
QStringList | loadedEffects |
QStringList | listOfEffects |
KWin::VirtualDesktop * | currentDesktop |
QString | currentActivity |
KWin::EffectWindow * | activeWindow |
QSize | desktopGridSize |
int | desktopGridWidth |
int | desktopGridHeight |
int | workspaceWidth |
int | workspaceHeight |
QList< KWin::VirtualDesktop * > | desktops |
bool | optionRollOverDesktops |
KWin::Output * | activeScreen |
qreal | animationTimeFactor |
QList< EffectWindow * > | stackingOrder |
bool | decorationsHaveAlpha |
CompositingType | compositingType |
QPointF | cursorPos |
QSize | virtualScreenSize |
QRect | virtualScreenGeometry |
bool | hasActiveFullScreenEffect |
KWin::SessionState | sessionState |
KWin::EffectWindow * | inputPanel |
Friends | |
class | Effect |
Manager class that handles all the effects.
This class creates Effect objects and calls it's appropriate methods.
Effect objects can call methods of this class to interact with the workspace, e.g. to activate or move a specific window, change current desktop or create a special input window to receive mouse and keyboard events.
Definition at line 107 of file effecthandler.h.
|
protected |
Definition at line 1080 of file effecthandler.h.
|
protected |
Definition at line 1079 of file effecthandler.h.
|
protected |
Definition at line 1092 of file effecthandler.h.
using KWin::EffectsHandler::TouchBorderCallback = std::function<void(ElectricBorder border, const QPointF &, Output *screen)> |
Definition at line 157 of file effecthandler.h.
|
strong |
Flags for how to hide a shown on-screen-message
Enumerator | |
---|---|
SkipsCloseAnimation | The on-screen-message should skip the close window animation. |
Definition at line 663 of file effecthandler.h.
KWin::EffectsHandler::EffectsHandler | ( | Compositor * | compositor, |
WorkspaceScene * | scene ) |
Definition at line 116 of file effecthandler.cpp.
|
override |
Definition at line 241 of file effecthandler.cpp.
void KWin::EffectsHandler::activateWindow | ( | KWin::EffectWindow * | c | ) |
Definition at line 704 of file effecthandler.cpp.
QStringList KWin::EffectsHandler::activeEffects | ( | ) | const |
Definition at line 1293 of file effecthandler.cpp.
Effect * KWin::EffectsHandler::activeFullScreenEffect | ( | ) | const |
Definition at line 414 of file effecthandler.cpp.
|
signal |
This signal is emitted when active fullscreen effect changed.
Output * KWin::EffectsHandler::activeScreen | ( | ) | const |
Definition at line 1003 of file effecthandler.cpp.
EffectWindow * KWin::EffectsHandler::activeWindow | ( | ) | const |
Definition at line 712 of file effecthandler.cpp.
|
signal |
This signal is emitted when a new activity is added
id | id of the new activity |
|
signal |
This signal is emitted when the activity is removed
id | id of the removed activity |
void KWin::EffectsHandler::addRepaint | ( | const QRect & | r | ) |
Definition at line 983 of file effecthandler.cpp.
void KWin::EffectsHandler::addRepaint | ( | const QRectF & | r | ) |
Definition at line 988 of file effecthandler.cpp.
void KWin::EffectsHandler::addRepaint | ( | const QRegion & | r | ) |
Definition at line 993 of file effecthandler.cpp.
void KWin::EffectsHandler::addRepaint | ( | int | x, |
int | y, | ||
int | w, | ||
int | h ) |
Definition at line 998 of file effecthandler.cpp.
void KWin::EffectsHandler::addRepaintFull | ( | ) |
Schedules the entire workspace to be repainted next time. If you call it during painting (including prepaint) then it does not affect the current painting.
Definition at line 978 of file effecthandler.cpp.
bool KWin::EffectsHandler::animationsSupported | ( | ) | const |
Whether animations are supported by the Scene. If this method returns false
Effects are supposed to not animate transitions.
Definition at line 1402 of file effecthandler.cpp.
double KWin::EffectsHandler::animationTimeFactor | ( | ) | const |
Factor by which animation speed in the effect should be modified (multiplied). If configurable in the effect itself, the option should have also 'default' animation speed. The actual value should be determined using animationTime(). Note: The factor can be also 0, so make sure your code can cope with 0ms time if used manually.
Definition at line 855 of file effecthandler.cpp.
xcb_atom_t KWin::EffectsHandler::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.
The Effect will be notified for events through the signal propertyNotify().
To remove the support again use removeSupportProperty. When an Effect is destroyed it is automatically taken care of removing the support. It is not required to call removeSupportProperty in the Effect's cleanup handling.
propertyName | The name of the property to announce support for |
effect | The effect which announces support |
Definition at line 652 of file effecthandler.cpp.
|
slot |
Definition at line 1250 of file effecthandler.cpp.
bool KWin::EffectsHandler::blocksDirectScanout | ( | ) | const |
Definition at line 1317 of file effecthandler.cpp.
bool KWin::EffectsHandler::checkInputWindowEvent | ( | QMouseEvent * | e | ) |
Definition at line 1040 of file effecthandler.cpp.
bool KWin::EffectsHandler::checkInputWindowEvent | ( | QWheelEvent * | e | ) |
Definition at line 1051 of file effecthandler.cpp.
void KWin::EffectsHandler::checkInputWindowStacking | ( | ) |
Definition at line 1086 of file effecthandler.cpp.
QRectF KWin::EffectsHandler::clientArea | ( | clientAreaOption | opt, |
const EffectWindow * | c ) const |
Definition at line 1013 of file effecthandler.cpp.
QRectF KWin::EffectsHandler::clientArea | ( | clientAreaOption | opt, |
const Output * | screen, | ||
const VirtualDesktop * | desktop ) const |
Definition at line 1008 of file effecthandler.cpp.
QRectF KWin::EffectsHandler::clientArea | ( | clientAreaOption | opt, |
const QPoint & | p, | ||
const VirtualDesktop * | desktop ) const |
Definition at line 1019 of file effecthandler.cpp.
void KWin::EffectsHandler::closeTabBox | ( | ) |
Definition at line 961 of file effecthandler.cpp.
CompositingType KWin::EffectsHandler::compositingType | ( | ) | const |
Definition at line 257 of file effecthandler.cpp.
KSharedConfigPtr KWin::EffectsHandler::config | ( | ) | const |
Definition at line 1466 of file effecthandler.cpp.
|
overrideprotected |
Definition at line 1062 of file effecthandler.cpp.
QString KWin::EffectsHandler::currentActivity | ( | ) | const |
Definition at line 753 of file effecthandler.cpp.
|
signal |
This signal is emitted when the global activity is changed
id | id of the new current activity |
VirtualDesktop * KWin::EffectsHandler::currentDesktop | ( | ) | const |
Definition at line 765 of file effecthandler.cpp.
EffectWindow * KWin::EffectsHandler::currentTabBoxWindow | ( | ) | const |
Definition at line 968 of file effecthandler.cpp.
QList< EffectWindow * > KWin::EffectsHandler::currentTabBoxWindowList | ( | ) | const |
Definition at line 930 of file effecthandler.cpp.
PlatformCursorImage KWin::EffectsHandler::cursorImage | ( | ) | const |
The current cursor image of the Platform.
Definition at line 1421 of file effecthandler.cpp.
QPointF KWin::EffectsHandler::cursorPos | ( | ) | const |
Definition at line 1098 of file effecthandler.cpp.
|
signal |
Signal emitted when the cursor shape changed. You'll likely want to query the current cursor as reaction: xcb_xfixes_get_cursor_image_unchecked Connection to this signal is tracked, so if you don't need it anymore, disconnect from it to stop cursor event filtering
|
slot |
Definition at line 1381 of file effecthandler.cpp.
bool KWin::EffectsHandler::decorationsHaveAlpha | ( | ) | const |
Returns true if the window decorations use the alpha channel, and false otherwise.
Definition at line 380 of file effecthandler.cpp.
|
virtual |
Sets the cursor while the mouse is intercepted.
Reimplemented in KWin::EffectsHandlerX11.
Definition at line 1035 of file effecthandler.cpp.
VirtualDesktop * KWin::EffectsHandler::desktopAbove | ( | KWin::VirtualDesktop * | desktop = nullptr, |
bool | wrap = true ) const |
Definition at line 825 of file effecthandler.cpp.
|
signal |
VirtualDesktop * KWin::EffectsHandler::desktopAtCoords | ( | QPoint | coords | ) | const |
Definition at line 805 of file effecthandler.cpp.
VirtualDesktop * KWin::EffectsHandler::desktopBelow | ( | KWin::VirtualDesktop * | desktop = nullptr, |
bool | wrap = true ) const |
Definition at line 835 of file effecthandler.cpp.
|
signal |
Signal emitted when the current desktop changed.
oldDesktop | The previously current desktop |
newDesktop | The new current desktop |
with | The window which is taken over to the new desktop, can be NULL |
|
signal |
Signal emmitted while desktop is changing for animation.
currentDesktop | The current desktop untiotherwise. |
offset | The current desktop offset. offset.x() = .6 means 60% of the way to the desktop to the right. Positive Values means Up and Right. |
|
signal |
QPoint KWin::EffectsHandler::desktopCoords | ( | VirtualDesktop * | desktop | ) | const |
Definition at line 815 of file effecthandler.cpp.
QPoint KWin::EffectsHandler::desktopGridCoords | ( | VirtualDesktop * | desktop | ) | const |
Definition at line 810 of file effecthandler.cpp.
int KWin::EffectsHandler::desktopGridHeight | ( | ) | const |
Definition at line 790 of file effecthandler.cpp.
|
signal |
Emitted when the virtual desktop grid layout changes
height | new height |
QSize KWin::EffectsHandler::desktopGridSize | ( | ) | const |
Definition at line 780 of file effecthandler.cpp.
|
signal |
Emitted when the virtual desktop grid layout changes
size | new size |
int KWin::EffectsHandler::desktopGridWidth | ( | ) | const |
Definition at line 785 of file effecthandler.cpp.
|
signal |
Emitted when the virtual desktop grid layout changes
width | new width |
QString KWin::EffectsHandler::desktopName | ( | KWin::VirtualDesktop * | desktop | ) | const |
Definition at line 845 of file effecthandler.cpp.
|
signal |
QList< VirtualDesktop * > KWin::EffectsHandler::desktops | ( | ) | const |
Definition at line 770 of file effecthandler.cpp.
VirtualDesktop * KWin::EffectsHandler::desktopToLeft | ( | KWin::VirtualDesktop * | desktop = nullptr, |
bool | wrap = true ) const |
Definition at line 840 of file effecthandler.cpp.
VirtualDesktop * KWin::EffectsHandler::desktopToRight | ( | KWin::VirtualDesktop * | desktop = nullptr, |
bool | wrap = true ) const |
Definition at line 830 of file effecthandler.cpp.
|
protected |
Definition at line 1186 of file effecthandler.cpp.
|
overrideprotected |
Definition at line 1074 of file effecthandler.cpp.
|
protectedvirtual |
Default implementation does nothing
Reimplemented in KWin::EffectsHandlerX11.
Definition at line 1094 of file effecthandler.cpp.
|
protectedvirtual |
Default implementation does nothing and returns true
.
Reimplemented in KWin::EffectsHandlerX11.
Definition at line 436 of file effecthandler.cpp.
void KWin::EffectsHandler::doneOpenGLContextCurrent | ( | ) |
Makes a null OpenGL context current resulting in no context being current.
If the compositing backend is not OpenGL based, this method is a noop.
There is normally no reason for an Effect to call this method.
Definition at line 1397 of file effecthandler.cpp.
|
protectedvirtual |
Default implementation sets Effects override cursor on the PointerInputRedirection.
Reimplemented in KWin::EffectsHandlerX11.
Definition at line 472 of file effecthandler.cpp.
|
protectedvirtual |
Default implementation removes the Effects override cursor on the PointerInputRedirection.
Reimplemented in KWin::EffectsHandlerX11.
Definition at line 499 of file effecthandler.cpp.
|
protectedvirtual |
Default implementation does nothing.
Reimplemented in KWin::EffectsHandlerX11.
Definition at line 449 of file effecthandler.cpp.
void KWin::EffectsHandler::drawWindow | ( | const RenderTarget & | renderTarget, |
const RenderViewport & | viewport, | ||
EffectWindow * | w, | ||
int | mask, | ||
const QRegion & | region, | ||
WindowPaintData & | data ) |
Definition at line 360 of file effecthandler.cpp.
|
protected |
Definition at line 1277 of file effecthandler.cpp.
Effect * KWin::EffectsHandler::findEffect | ( | const QString & | name | ) | const |
Definition at line 1476 of file effecthandler.cpp.
Output * KWin::EffectsHandler::findScreen | ( | const QString & | name | ) | const |
Definition at line 1557 of file effecthandler.cpp.
Output * KWin::EffectsHandler::findScreen | ( | int | screenId | ) | const |
Definition at line 1568 of file effecthandler.cpp.
EffectWindow * KWin::EffectsHandler::findWindow | ( | const QUuid & | id | ) | const |
Finds the EffectWindow for the Window with KWin internal id
. If there is no such window null
is returned.
Definition at line 889 of file effecthandler.cpp.
EffectWindow * KWin::EffectsHandler::findWindow | ( | QWindow * | w | ) | const |
Finds the EffectWindow for the internal window w
. If there is no such window null
is returned.
On Wayland this returns the internal window. On X11 it returns an Unamanged with the window id matching that of the provided window w
.
Definition at line 881 of file effecthandler.cpp.
EffectWindow * KWin::EffectsHandler::findWindow | ( | SurfaceInterface * | surf | ) | const |
Definition at line 871 of file effecthandler.cpp.
EffectWindow * KWin::EffectsHandler::findWindow | ( | WId | id | ) | const |
Definition at line 860 of file effecthandler.cpp.
void KWin::EffectsHandler::grabbedKeyboardEvent | ( | QKeyEvent * | e | ) |
Definition at line 453 of file effecthandler.cpp.
bool KWin::EffectsHandler::grabKeyboard | ( | Effect * | effect | ) |
Definition at line 424 of file effecthandler.cpp.
bool KWin::EffectsHandler::hasActiveFullScreenEffect | ( | ) | const |
Returns if activeFullScreenEffect is set
Definition at line 419 of file effecthandler.cpp.
|
signal |
This signal is emitted when active fullscreen effect changed to being set or unset
bool KWin::EffectsHandler::hasDecorationShadows | ( | ) | const |
Returns true if the active window decoration has shadow API hooks.
Definition at line 375 of file effecthandler.cpp.
bool KWin::EffectsHandler::hasKeyboardGrab | ( | ) | const |
Definition at line 636 of file effecthandler.cpp.
void KWin::EffectsHandler::hideCursor | ( | ) |
The cursor image should be hidden.
Definition at line 1426 of file effecthandler.cpp.
void KWin::EffectsHandler::hideOnScreenMessage | ( | OnScreenMessageHideFlags | flags = OnScreenMessageHideFlags() | ) |
Hides a previously shown on-screen-message again.
flags | The flags for how to hide the message |
Definition at line 1457 of file effecthandler.cpp.
void KWin::EffectsHandler::highlightWindows | ( | const QList< EffectWindow * > & | windows | ) |
Definition at line 1412 of file effecthandler.cpp.
KSharedConfigPtr KWin::EffectsHandler::inputConfig | ( | ) | const |
Definition at line 1471 of file effecthandler.cpp.
KWin::EffectWindow * KWin::EffectsHandler::inputPanel | ( | ) | const |
Definition at line 1578 of file effecthandler.cpp.
|
signal |
bool KWin::EffectsHandler::isCursorHidden | ( | ) | const |
Definition at line 1573 of file effecthandler.cpp.
bool KWin::EffectsHandler::isEffectActive | ( | const QString & | pluginId | ) | const |
Definition at line 1306 of file effecthandler.cpp.
|
slot |
Definition at line 1228 of file effecthandler.cpp.
|
slot |
Definition at line 1237 of file effecthandler.cpp.
bool KWin::EffectsHandler::isInputPanelOverlay | ( | ) | const |
Definition at line 1591 of file effecthandler.cpp.
bool KWin::EffectsHandler::isMouseInterception | ( | ) | const |
Definition at line 504 of file effecthandler.cpp.
bool KWin::EffectsHandler::isOpenGLCompositing | ( | ) | const |
Whether the Compositor is OpenGL based (either GL 1 or 2).
true
in case of OpenGL based Compositor, false
otherwise Definition at line 262 of file effecthandler.cpp.
|
inline |
Definition at line 744 of file effecthandler.h.
bool KWin::EffectsHandler::isScreenLocked | ( | ) | const |
Whether the screen is currently considered as locked. Note for technical reasons this is not always possible to detect. The screen will only be considered as locked if the screen locking process implements the org.freedesktop.ScreenSaver interface.
true
if the screen is currently locked, false
otherwise Definition at line 1372 of file effecthandler.cpp.
QVariant KWin::EffectsHandler::kwinOption | ( | KWinOption | kwopt | ) |
Definition at line 1332 of file effecthandler.cpp.
QStringList KWin::EffectsHandler::listOfEffects | ( | ) | const |
Definition at line 1154 of file effecthandler.cpp.
QStringList KWin::EffectsHandler::loadedEffects | ( | ) | const |
Definition at line 1142 of file effecthandler.cpp.
|
slot |
Definition at line 1159 of file effecthandler.cpp.
bool KWin::EffectsHandler::makeOpenGLContextCurrent | ( | ) |
Makes the OpenGL compositing context current.
If the compositing backend is not using OpenGL, this method returns false
.
true
if the context became current, false
otherwise. Definition at line 1392 of file effecthandler.cpp.
|
signal |
Signal emitted when mouse changed. If an effect needs to get updated mouse positions, it needs to first call startMousePolling. For a fullscreen effect it is better to use an input window and react on windowInputMouseEvent.
pos | The new mouse position |
oldpos | The previously mouse position |
buttons | The pressed mouse buttons |
oldbuttons | The previously pressed mouse buttons |
modifiers | Pressed keyboard modifiers |
oldmodifiers | Previously pressed keyboard modifiers. |
void KWin::EffectsHandler::moveWindow | ( | KWin::EffectWindow * | w, |
const QPoint & | pos, | ||
bool | snap = false, | ||
double | snapAdjust = 1.0 ) |
Definition at line 717 of file effecthandler.cpp.
bool KWin::EffectsHandler::optionRollOverDesktops | ( | ) | const |
Definition at line 850 of file effecthandler.cpp.
void KWin::EffectsHandler::paintScreen | ( | const RenderTarget & | renderTarget, |
const RenderViewport & | viewport, | ||
int | mask, | ||
const QRegion & | region, | ||
Output * | screen ) |
Definition at line 303 of file effecthandler.cpp.
void KWin::EffectsHandler::paintWindow | ( | const RenderTarget & | renderTarget, |
const RenderViewport & | viewport, | ||
EffectWindow * | w, | ||
int | mask, | ||
const QRegion & | region, | ||
WindowPaintData & | data ) |
Definition at line 331 of file effecthandler.cpp.
void KWin::EffectsHandler::postPaintScreen | ( | ) |
Definition at line 313 of file effecthandler.cpp.
void KWin::EffectsHandler::postPaintWindow | ( | EffectWindow * | w | ) |
Definition at line 341 of file effecthandler.cpp.
void KWin::EffectsHandler::prePaintScreen | ( | ScreenPrePaintData & | data, |
std::chrono::milliseconds | presentTime ) |
Definition at line 294 of file effecthandler.cpp.
void KWin::EffectsHandler::prePaintWindow | ( | EffectWindow * | w, |
WindowPrePaintData & | data, | ||
std::chrono::milliseconds | presentTime ) |
Definition at line 322 of file effecthandler.cpp.
|
signal |
Receives events registered for using registerPropertyType. Use readProperty() to get the property data. Note that the property may be already set on the window, so doing the same processing from windowAdded() (e.g. simply calling propertyNotify() from it) is usually needed.
w | The window whose property changed, is null if it is a root window property |
atom | The property |
Effect * KWin::EffectsHandler::provides | ( | Effect::Feature | ef | ) |
Definition at line 350 of file effecthandler.cpp.
QQmlEngine * KWin::EffectsHandler::qmlEngine | ( | ) | const |
Definition at line 1604 of file effecthandler.cpp.
QByteArray KWin::EffectsHandler::readRootProperty | ( | long | atom, |
long | type, | ||
int | format ) const |
Definition at line 696 of file effecthandler.cpp.
void KWin::EffectsHandler::reconfigure | ( | ) |
Definition at line 288 of file effecthandler.cpp.
|
slot |
Definition at line 1216 of file effecthandler.cpp.
|
protected |
Definition at line 1208 of file effecthandler.cpp.
void KWin::EffectsHandler::refTabBox | ( | ) |
Definition at line 947 of file effecthandler.cpp.
void KWin::EffectsHandler::registerAxisShortcut | ( | Qt::KeyboardModifiers | modifiers, |
PointerAxisDirection | axis, | ||
QAction * | action ) |
Registers a global axis shortcut with the provided action
.
modifiers | The keyboard modifiers which need to be holded |
axis | The direction in which the axis needs to be moved |
action | The action which gets triggered when the shortcut matches |
Definition at line 602 of file effecthandler.cpp.
void KWin::EffectsHandler::registerPointerShortcut | ( | Qt::KeyboardModifiers | modifiers, |
Qt::MouseButton | pointerButtons, | ||
QAction * | action ) |
Registers a global pointer shortcut with the provided action
.
modifiers | The keyboard modifiers which need to be holded |
pointerButtons | The pointer buttons which need to be pressed |
action | The action which gets triggered when the shortcut matches |
Definition at line 597 of file effecthandler.cpp.
|
protected |
Definition at line 641 of file effecthandler.cpp.
void KWin::EffectsHandler::registerRealtimeTouchBorder | ( | ElectricBorder | border, |
QAction * | action, | ||
EffectsHandler::TouchBorderCallback | progressCallback ) |
Registers the given action
for the given border
to be activated through a touch swipe gesture.
If the border
gets triggered through a touch swipe gesture the QAction::triggered signal gets invoked.
progressCallback will be dinamically called each time the touch position is updated to show the effect "partially" activated
To unregister the touch screen action either delete the action
or invoke unregisterTouchBorder.
Definition at line 1118 of file effecthandler.cpp.
void KWin::EffectsHandler::registerTouchBorder | ( | ElectricBorder | border, |
QAction * | action ) |
Registers the given action
for the given border
to be activated through a touch swipe gesture.
If the border
gets triggered through a touch swipe gesture the QAction::triggered signal gets invoked.
To unregister the touch screen action either delete the action
or invoke unregisterTouchBorder.
Definition at line 1113 of file effecthandler.cpp.
void KWin::EffectsHandler::registerTouchpadPinchShortcut | ( | PinchDirection | dir, |
uint | fingerCount, | ||
QAction * | onUp, | ||
std::function< void(qreal)> | progressCallback = {} ) |
Definition at line 612 of file effecthandler.cpp.
void KWin::EffectsHandler::registerTouchpadSwipeShortcut | ( | SwipeDirection | dir, |
uint | fingerCount, | ||
QAction * | onUp, | ||
std::function< void(qreal)> | progressCallback = {} ) |
Registers a global touchpad swipe gesture shortcut with the provided action
.
direction | The direction for the swipe |
action | The action which gets triggered when the gesture triggers |
Definition at line 607 of file effecthandler.cpp.
void KWin::EffectsHandler::registerTouchscreenSwipeShortcut | ( | SwipeDirection | direction, |
uint | fingerCount, | ||
QAction * | action, | ||
std::function< void(qreal)> | progressCallback ) |
Registers a global touchscreen swipe gesture shortcut with the provided action
.
direction | The direction for the swipe |
action | The action which gets triggered when the gesture triggers |
Definition at line 617 of file effecthandler.cpp.
void KWin::EffectsHandler::reloadEffect | ( | Effect * | effect | ) |
Allows an effect to trigger a reload of itself. This can be used by an effect which needs to be reloaded when screen geometry changes. It is possible that the effect cannot be loaded again as it's supported method does no longer hold.
effect | The effect to reload |
Definition at line 1262 of file effecthandler.cpp.
void KWin::EffectsHandler::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.
In case the Effect had not registered support, calling this function does not change anything.
propertyName | The name of the property to remove support for |
effect | The effect which had registered the property. |
Definition at line 674 of file effecthandler.cpp.
void KWin::EffectsHandler::renderOffscreenQuickView | ( | const RenderTarget & | renderTarget, |
const RenderViewport & | viewport, | ||
OffscreenQuickView * | effectQuickView ) const |
Render the supplied OffscreenQuickView onto the scene It can be called at any point during the scene rendering
Definition at line 1487 of file effecthandler.cpp.
void KWin::EffectsHandler::renderWindow | ( | const RenderTarget & | renderTarget, |
const RenderViewport & | viewport, | ||
EffectWindow * | w, | ||
int | mask, | ||
const QRegion & | region, | ||
WindowPaintData & | data ) |
Definition at line 370 of file effecthandler.cpp.
void KWin::EffectsHandler::reserveElectricBorder | ( | ElectricBorder | border, |
Effect * | effect ) |
Definition at line 1103 of file effecthandler.cpp.
|
inline |
Definition at line 727 of file effecthandler.h.
QPainter * KWin::EffectsHandler::scenePainter | ( | ) |
Provides access to the QPainter which is rendering to the back buffer.
Only relevant for CompositingType QPainterCompositing. For all other compositing types null
is returned.
null
. Definition at line 1128 of file effecthandler.cpp.
|
signal |
This signal is emitted just before the screen locker tries to grab keys and lock the screen Effects should release any grabs immediately
|
signal |
This signal is emitted whenever a new screen is added to the system.
Output * KWin::EffectsHandler::screenAt | ( | const QPoint & | point | ) | const |
Definition at line 1552 of file effecthandler.cpp.
|
signal |
This signal is emitted when the user starts to approach the border
with the mouse. The factor
describes how far away the mouse is in a relative mean. The values are in [0.0, 1.0] with 0.0 being emitted when first entered and on leaving. The value 1.0 means that the border
is reached with the mouse. So the values are well suited for animations. The signal is always emitted when the mouse cursor position changes.
border | The screen edge which is being approached |
factor | Value in range [0.0,1.0] to describe how close the mouse is to the border |
geometry | The geometry of the edge which is being approached |
|
signal |
This signal is emitted when the screen got locked or unlocked.
locked | true if the screen is now locked, false if it is now unlocked |
|
signal |
This signal is emitted whenever a screen is removed from the system.
QList< Output * > KWin::EffectsHandler::screens | ( | ) | const |
Returns the list of all the screens connected to the system.
Definition at line 1547 of file effecthandler.cpp.
SessionState KWin::EffectsHandler::sessionState | ( | ) | const |
The status of the session i.e if the user is logging out
Definition at line 1542 of file effecthandler.cpp.
|
signal |
This signal is emitted when the session state was changed
void KWin::EffectsHandler::setActiveFullScreenEffect | ( | Effect * | e | ) |
Definition at line 400 of file effecthandler.cpp.
void KWin::EffectsHandler::setCurrentDesktop | ( | KWin::VirtualDesktop * | desktop | ) |
Set the current desktop to desktop.
Definition at line 775 of file effecthandler.cpp.
void KWin::EffectsHandler::setElevatedWindow | ( | KWin::EffectWindow * | w, |
bool | set ) |
Definition at line 909 of file effecthandler.cpp.
void KWin::EffectsHandler::setShowingDesktop | ( | bool | showing | ) |
Definition at line 748 of file effecthandler.cpp.
void KWin::EffectsHandler::setTabBoxWindow | ( | EffectWindow * | w | ) |
Definition at line 920 of file effecthandler.cpp.
|
protected |
Definition at line 279 of file effecthandler.cpp.
void KWin::EffectsHandler::showCursor | ( | ) |
The cursor image should be shown again after having been hidden.
Definition at line 1431 of file effecthandler.cpp.
|
signal |
Signal emitted when the desktop showing ("dashboard") state changed The desktop is risen to the keepAbove layer, you may want to elevate windows or such.
void KWin::EffectsHandler::showOnScreenMessage | ( | const QString & | message, |
const QString & | iconName = QString() ) |
Shows an on-screen-message. To hide it again use hideOnScreenMessage.
message | The message to show |
iconName | The optional themed icon name |
Definition at line 1452 of file effecthandler.cpp.
QList< EffectWindow * > KWin::EffectsHandler::stackingOrder | ( | ) | const |
Definition at line 897 of file effecthandler.cpp.
|
signal |
This signels is emitted when ever the stacking order is change, ie. a window is risen or lowered
void KWin::EffectsHandler::startInteractivePositionSelection | ( | std::function< void(const QPointF &)> | callback | ) |
Starts an interactive position selection process.
Once the user selected a position on the screen the callback
is invoked with the selected point as argument. In case the user cancels the interactive position selection or selecting a position is currently not possible (e.g. screen locked) the callback
is invoked with a point at -1
as x and y argument.
During the interactive window selection the cursor is turned into a crosshair cursor.
callback | The function to invoke once the interactive position selection ends |
Definition at line 1447 of file effecthandler.cpp.
void KWin::EffectsHandler::startInteractiveWindowSelection | ( | std::function< void(KWin::EffectWindow *)> | callback | ) |
Starts an interactive window selection process.
Once the user selected a window the callback
is invoked with the selected EffectWindow as argument. In case the user cancels the interactive window selection or selecting a window is currently not possible (e.g. screen locked) the callback
is invoked with a nullptr
argument.
During the interactive window selection the cursor is turned into a crosshair cursor.
callback | The function to invoke once the interactive window selection ends |
Definition at line 1436 of file effecthandler.cpp.
void KWin::EffectsHandler::startMouseInterception | ( | Effect * | effect, |
Qt::CursorShape | shape ) |
Ensures that all mouse events are sent to the effect
. No window will get the mouse events. Only fullscreen effects providing a custom user interface should be using this method. The input events are delivered to Effect::windowInputMouseEvent.
effect | The effect |
shape | Sets the cursor to be used while the mouse is intercepted |
Definition at line 460 of file effecthandler.cpp.
void KWin::EffectsHandler::startMousePolling | ( | ) |
Definition at line 622 of file effecthandler.cpp.
void KWin::EffectsHandler::startPaint | ( | ) |
Definition at line 386 of file effecthandler.cpp.
|
signal |
|
signal |
|
signal |
void KWin::EffectsHandler::stopMouseInterception | ( | Effect * | effect | ) |
Releases the hold mouse interception for effect
Definition at line 488 of file effecthandler.cpp.
void KWin::EffectsHandler::stopMousePolling | ( | ) |
Definition at line 629 of file effecthandler.cpp.
|
slot |
Definition at line 1349 of file effecthandler.cpp.
|
signal |
Signal emitted when a tabbox is added. An effect who wants to replace the tabbox with itself should use refTabBox.
mode | The TabBoxMode. |
|
signal |
Signal emitted when the TabBox was closed by KWin core. An effect which referenced the TabBox should use unrefTabBox to unref again.
|
signal |
Signal emitted when a key event, which is not handled by TabBox directly is, happens while TabBox is active. An effect might use the key event to e.g. change the selected window. An effect should only response to this signal if it referenced the TabBox with refTabBox.
event | The key event not handled by TabBox directly |
|
signal |
Signal emitted when the selected TabBox window changed or the TabBox List changed. An effect should only response to this signal if it referenced the TabBox with refTabBox.
bool KWin::EffectsHandler::tabletPadButtonEvent | ( | uint | button, |
bool | pressed, | ||
const KWin::TabletPadId & | tabletPadId, | ||
std::chrono::microseconds | time ) |
Definition at line 564 of file effecthandler.cpp.
bool KWin::EffectsHandler::tabletPadRingEvent | ( | int | number, |
int | position, | ||
bool | isFinger, | ||
const KWin::TabletPadId & | tabletPadId, | ||
std::chrono::microseconds | time ) |
Definition at line 586 of file effecthandler.cpp.
bool KWin::EffectsHandler::tabletPadStripEvent | ( | int | number, |
int | position, | ||
bool | isFinger, | ||
const KWin::TabletPadId & | tabletPadId, | ||
std::chrono::microseconds | time ) |
Definition at line 575 of file effecthandler.cpp.
bool KWin::EffectsHandler::tabletToolButtonEvent | ( | uint | button, |
bool | pressed, | ||
const KWin::TabletToolId & | tabletToolId, | ||
std::chrono::microseconds | time ) |
Definition at line 553 of file effecthandler.cpp.
bool KWin::EffectsHandler::tabletToolEvent | ( | KWin::TabletEvent * | event | ) |
Definition at line 542 of file effecthandler.cpp.
|
slot |
Definition at line 1133 of file effecthandler.cpp.
bool KWin::EffectsHandler::touchDown | ( | qint32 | id, |
const QPointF & | pos, | ||
std::chrono::microseconds | time ) |
Definition at line 509 of file effecthandler.cpp.
bool KWin::EffectsHandler::touchMotion | ( | qint32 | id, |
const QPointF & | pos, | ||
std::chrono::microseconds | time ) |
Definition at line 520 of file effecthandler.cpp.
bool KWin::EffectsHandler::touchUp | ( | qint32 | id, |
std::chrono::microseconds | time ) |
Definition at line 531 of file effecthandler.cpp.
void KWin::EffectsHandler::ungrabKeyboard | ( | ) |
Definition at line 441 of file effecthandler.cpp.
void KWin::EffectsHandler::unloadAllEffects | ( | ) |
Definition at line 267 of file effecthandler.cpp.
|
slot |
Definition at line 1167 of file effecthandler.cpp.
void KWin::EffectsHandler::unrefTabBox | ( | ) |
Definition at line 954 of file effecthandler.cpp.
void KWin::EffectsHandler::unregisterTouchBorder | ( | ElectricBorder | border, |
QAction * | action ) |
Unregisters the given action
for the given touch border
.
Definition at line 1123 of file effecthandler.cpp.
void KWin::EffectsHandler::unreserveElectricBorder | ( | ElectricBorder | border, |
Effect * | effect ) |
Definition at line 1108 of file effecthandler.cpp.
QRect KWin::EffectsHandler::virtualScreenGeometry | ( | ) | const |
The bounding geometry of all outputs combined. Always starts at (0,0) and has virtualScreenSize as it's size.
Definition at line 1025 of file effecthandler.cpp.
|
signal |
QSize KWin::EffectsHandler::virtualScreenSize | ( | ) | const |
The bounding size of all screens combined. Overlapping areas are not counted multiple times.
Definition at line 1030 of file effecthandler.cpp.
|
signal |
Display * KWin::EffectsHandler::waylandDisplay | ( | ) | const |
Interface to the Wayland display: this is relevant only on Wayland, on X11 it will be nullptr
Definition at line 1324 of file effecthandler.cpp.
|
signal |
Signal emitted when a window get's activated.
w | The new active window, or NULL if there is no active window. |
|
signal |
Signal emitted when a new window has been added to the Workspace.
w | The added window |
|
signal |
Signal emitted when a window is being removed from the Workspace. An effect which wants to animate the window closing should connect to this signal and reference the window by using refWindow
w | The window which is being closed |
|
signal |
This signal gets emitted when the data on EffectWindow w
for role
changed.
An Effect can connect to this signal to read the new value and react on it. E.g. an Effect which does not operate on windows grabbed by another Effect wants to cancel the already scheduled animation if another Effect adds a grab.
w | The EffectWindow for which the data changed |
role | The data role which changed |
|
signal |
Signal emitted when a window is deleted. This means that a closed window is not referenced any more. An effect bookkeeping the closed windows should connect to this signal to clean up the internal references.
w | The window which is going to be deleted. |
void KWin::EffectsHandler::windowToDesktops | ( | KWin::EffectWindow * | w, |
const QList< KWin::VirtualDesktop * > & | desktops ) |
Moves a window to the given desktops On X11, the window will end up on the last window in the list Setting this to an empty list will set the window on all desktops
Definition at line 731 of file effecthandler.cpp.
void KWin::EffectsHandler::windowToScreen | ( | KWin::EffectWindow * | w, |
Output * | screen ) |
Definition at line 740 of file effecthandler.cpp.
int KWin::EffectsHandler::workspaceHeight | ( | ) | const |
Definition at line 800 of file effecthandler.cpp.
int KWin::EffectsHandler::workspaceWidth | ( | ) | const |
Definition at line 795 of file effecthandler.cpp.
xcb_window_t KWin::EffectsHandler::x11RootWindow | ( | ) | const |
Definition at line 247 of file effecthandler.cpp.
xcb_connection_t * KWin::EffectsHandler::xcbConnection | ( | ) | const |
Definition at line 252 of file effecthandler.cpp.
|
signal |
The xcb connection changed, either a new xcbConnection got created or the existing one got destroyed. Effects can use this to refetch the properties they want to set.
When the xcbConnection changes also the x11RootWindow becomes invalid.
|
friend |
Definition at line 154 of file effecthandler.h.
|
protected |
Definition at line 1087 of file effecthandler.h.
|
protected |
Definition at line 1084 of file effecthandler.h.
|
protected |
Definition at line 1083 of file effecthandler.h.
|
protected |
Definition at line 1082 of file effecthandler.h.
|
protected |
Definition at line 1086 of file effecthandler.h.
|
protected |
Definition at line 1088 of file effecthandler.h.
|
protected |
Definition at line 1095 of file effecthandler.h.
|
protected |
Definition at line 1089 of file effecthandler.h.
|
protected |
Definition at line 1091 of file effecthandler.h.
|
protected |
Definition at line 1090 of file effecthandler.h.
|
protected |
Definition at line 1098 of file effecthandler.h.
|
protected |
Definition at line 1097 of file effecthandler.h.
|
protected |
Definition at line 1094 of file effecthandler.h.
|
protected |
Definition at line 1093 of file effecthandler.h.
|
protected |
Definition at line 1096 of file effecthandler.h.
|
protected |
Definition at line 1099 of file effecthandler.h.
|
protected |
Definition at line 1100 of file effecthandler.h.
|
protected |
Definition at line 1085 of file effecthandler.h.
|
read |
Definition at line 112 of file effecthandler.h.
|
read |
Definition at line 126 of file effecthandler.h.
|
readwrite |
Definition at line 118 of file effecthandler.h.
|
read |
Factor by which animation speed in the effect should be modified (multiplied). If configurable in the effect itself, the option should have also 'default' animation speed. The actual value should be determined using animationTime(). Note: The factor can be also 0, so make sure your code can cope with 0ms time if used manually.
Definition at line 134 of file effecthandler.h.
|
read |
Definition at line 140 of file effecthandler.h.
|
read |
Definition at line 117 of file effecthandler.h.
|
readwrite |
Definition at line 116 of file effecthandler.h.
|
read |
Definition at line 141 of file effecthandler.h.
|
read |
Whether window decorations use the alpha channel.
Definition at line 139 of file effecthandler.h.
|
read |
Definition at line 121 of file effecthandler.h.
|
read |
Definition at line 119 of file effecthandler.h.
|
read |
Definition at line 120 of file effecthandler.h.
|
read |
Definition at line 124 of file effecthandler.h.
|
read |
Definition at line 144 of file effecthandler.h.
|
read |
Definition at line 152 of file effecthandler.h.
|
read |
Definition at line 114 of file effecthandler.h.
|
read |
Definition at line 113 of file effecthandler.h.
|
read |
Definition at line 125 of file effecthandler.h.
|
read |
The status of the session i.e if the user is logging out
Definition at line 150 of file effecthandler.h.
|
read |
Definition at line 135 of file effecthandler.h.
|
read |
Definition at line 143 of file effecthandler.h.
|
read |
Definition at line 142 of file effecthandler.h.
|
read |
Definition at line 123 of file effecthandler.h.
|
read |
Definition at line 122 of file effecthandler.h.