KWin
|
#include <highlightwindow.h>
Public Slots | |
void | slotWindowAdded (KWin::EffectWindow *w) |
void | slotWindowClosed (KWin::EffectWindow *w) |
void | slotWindowDeleted (KWin::EffectWindow *w) |
void | slotPropertyNotify (KWin::EffectWindow *w, long atom, EffectWindow *addedWindow=nullptr) |
![]() | |
virtual bool | borderActivated (ElectricBorder border) |
Public Member Functions | |
HighlightWindowEffect () | |
~HighlightWindowEffect () override | |
int | requestedEffectChainPosition () const override |
bool | provides (Feature feature) override |
bool | perform (Feature feature, const QVariantList &arguments) override |
Q_SCRIPTABLE void | highlightWindows (const QStringList &windows) |
![]() | |
AnimationEffect () | |
~AnimationEffect () override | |
bool | isActive () const override |
QString | debug (const QString ¶meter) const override |
void | prePaintWindow (EffectWindow *w, WindowPrePaintData &data, std::chrono::milliseconds presentTime) override |
void | paintWindow (const RenderTarget &renderTarget, const RenderViewport &viewport, EffectWindow *w, int mask, QRegion region, WindowPaintData &data) override |
void | postPaintScreen () override |
![]() | |
CrossFadeEffect (QObject *parent=nullptr) | |
~CrossFadeEffect () override | |
void | drawWindow (const RenderTarget &renderTarget, const RenderViewport &viewport, EffectWindow *window, int mask, const QRegion ®ion, WindowPaintData &data) override |
void | redirect (EffectWindow *window) |
void | unredirect (EffectWindow *window) |
void | setShader (EffectWindow *window, GLShader *shader) |
![]() | |
Effect (QObject *parent=nullptr) | |
~Effect () override | |
virtual void | reconfigure (ReconfigureFlags flags) |
virtual void | prePaintScreen (ScreenPrePaintData &data, std::chrono::milliseconds presentTime) |
virtual void | paintScreen (const RenderTarget &renderTarget, const RenderViewport &viewport, int mask, const QRegion ®ion, Output *screen) |
virtual void | postPaintWindow (EffectWindow *w) |
virtual void | windowInputMouseEvent (QEvent *e) |
virtual void | grabbedKeyboardEvent (QKeyEvent *e) |
virtual bool | touchDown (qint32 id, const QPointF &pos, std::chrono::microseconds time) |
virtual bool | touchMotion (qint32 id, const QPointF &pos, std::chrono::microseconds time) |
virtual bool | touchUp (qint32 id, std::chrono::microseconds time) |
virtual bool | tabletToolEvent (QTabletEvent *event) |
virtual bool | tabletToolButtonEvent (uint button, bool pressed, quint64 tabletToolId) |
virtual bool | tabletPadButtonEvent (uint button, bool pressed, void *tabletPadId) |
virtual bool | tabletPadStripEvent (int number, int position, bool isFinger, void *tabletPadId) |
virtual bool | tabletPadRingEvent (int number, int position, bool isFinger, void *tabletPadId) |
template<typename T > | |
int | animationTime (int defaultDuration) |
virtual bool | blocksDirectScanout () const |
Additional Inherited Members | |
![]() | |
enum | Anchor { Left = 1 << 0 , Top = 1 << 1 , Right = 1 << 2 , Bottom = 1 << 3 , Horizontal = Left | Right , Vertical = Top | Bottom , Mouse = 1 << 4 } |
enum | Attribute { Opacity = 0 , Brightness , Saturation , Scale , Rotation , Position , Size , Translation , Clip , Generic , CrossFadePrevious , Shader , ShaderUniform , NonFloatBase = Position } |
enum | MetaType { SourceAnchor , TargetAnchor , RelativeSourceX , RelativeSourceY , RelativeTargetX , RelativeTargetY , Axis } |
enum | Direction { Forward , Backward } |
enum | TerminationFlag { DontTerminate = 0x00 , TerminateAtSource = 0x01 , TerminateAtTarget = 0x02 } |
![]() | |
enum | { PAINT_WINDOW_OPAQUE = 1 << 0 , PAINT_WINDOW_TRANSLUCENT = 1 << 1 , PAINT_WINDOW_TRANSFORMED = 1 << 2 , PAINT_SCREEN_REGION = 1 << 3 , PAINT_SCREEN_TRANSFORMED = 1 << 4 , PAINT_SCREEN_WITH_TRANSFORMED_WINDOWS = 1 << 5 , PAINT_SCREEN_BACKGROUND_FIRST = 1 << 6 } |
enum | Feature { Nothing = 0 , ScreenInversion , Blur , Contrast , HighlightWindows } |
enum | ReconfigureFlag { ReconfigureAll = 1 << 0 } |
![]() | |
static int | metaData (MetaType type, uint meta) |
static void | setMetaData (MetaType type, uint value, uint &meta) |
static qreal | qecGaussian (qreal progress) |
static qint64 | clock () |
![]() | |
static bool | supported () |
![]() | |
static QPointF | cursorPos () |
static double | animationTime (const KConfigGroup &cfg, const QString &key, int defaultTime) |
static double | animationTime (int defaultTime) |
static double | interpolate (double x, double y, double a) |
static void | setPositionTransformations (WindowPaintData &data, QRect ®ion, EffectWindow *w, const QRect &r, Qt::AspectRatioMode aspect) |
![]() | |
typedef QMap< EffectWindow *, QPair< QList< AniData >, QRect > > | AniMap |
![]() | |
quint64 | animate (EffectWindow *w, Attribute a, uint meta, int ms, const FPx2 &to, const QEasingCurve &curve=QEasingCurve(), int delay=0, const FPx2 &from=FPx2(), bool fullScreen=false, bool keepAlive=true, GLShader *shader=nullptr) |
quint64 | set (EffectWindow *w, Attribute a, uint meta, int ms, const FPx2 &to, const QEasingCurve &curve=QEasingCurve(), int delay=0, const FPx2 &from=FPx2(), bool fullScreen=false, bool keepAlive=true, GLShader *shader=nullptr) |
bool | retarget (quint64 animationId, FPx2 newTarget, int newRemainingTime=-1) |
bool | freezeInTime (quint64 animationId, qint64 frozenTime) |
bool | redirect (quint64 animationId, Direction direction, TerminationFlags terminationFlags=TerminateAtSource) |
bool | complete (quint64 animationId) |
virtual void | animationEnded (EffectWindow *w, Attribute a, uint meta) |
bool | cancel (quint64 animationId) |
virtual void | genericAnimation (EffectWindow *w, WindowPaintData &data, float progress, uint meta) |
AniMap | state () const |
Definition at line 17 of file highlightwindow.h.
KWin::HighlightWindowEffect::HighlightWindowEffect | ( | ) |
Definition at line 21 of file highlightwindow.cpp.
|
override |
Definition at line 45 of file highlightwindow.cpp.
void KWin::HighlightWindowEffect::highlightWindows | ( | const QStringList & | windows | ) |
Definition at line 61 of file highlightwindow.cpp.
|
overridevirtual |
Performs the feature
with the arguments
.
This allows to have specific protocols between KWin core and an Effect.
The method is supposed to return true
if it performed the features, false
otherwise.
The default implementation returns false
.
Reimplemented from KWin::Effect.
Definition at line 265 of file highlightwindow.cpp.
|
overridevirtual |
Called on Transparent resizes. return true if your effect substitutes questioned feature
Reimplemented from KWin::Effect.
Definition at line 255 of file highlightwindow.cpp.
|
inlineoverridevirtual |
Reimplement this method to indicate where in the Effect chain the Effect should be placed.
A low number indicates early chain position, thus before other Effects got called, a high number indicates a late position. The returned number should be in the interval [0, 100]. The default value is 0.
In KWin4 this information was provided in the Effect's desktop file as property X-KDE-Ordering. In the case of Scripted Effects this property is still used.
Reimplemented from KWin::Effect.
Definition at line 25 of file highlightwindow.h.
|
slot |
Definition at line 111 of file highlightwindow.cpp.
|
slot |
Definition at line 75 of file highlightwindow.cpp.
|
slot |
Definition at line 99 of file highlightwindow.cpp.
|
slot |
Definition at line 106 of file highlightwindow.cpp.