• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

Plasma

  • Plasma
  • WindowEffects
Enumerations | Functions
Plasma::WindowEffects Namespace Reference

Enumerations

enum  Effect {
  Slide = 1, WindowPreview = 2, PresentWindows = 3, PresentWindowsGroup = 4,
  HighlightWindows = 5, OverrideShadow = 6, BlurBehind = 7, Dashboard = 8
}
 

Functions

void enableBlurBehind (WId window, bool enable=true, const QRegion &region=QRegion())
 
void highlightWindows (WId controller, const QList< WId > &ids)
 
bool isEffectAvailable (Effect effect)
 
void markAsDashboard (WId window)
 
void overrideShadow (WId window, bool override)
 
void presentWindows (WId controller, const QList< WId > &ids)
 
void presentWindows (WId controller, int desktop=-1)
 
void showWindowThumbnails (WId parent, const QList< WId > &windows=QList< WId >(), const QList< QRect > &rects=QList< QRect >())
 
void slideWindow (WId id, Plasma::Location location, int offset)
 
void slideWindow (QWidget *widget, Plasma::Location location)
 
QList< QSize > windowSizes (const QList< WId > &ids)
 

Detailed Description

Namespace for all window effects for Plasma/KWin interaction.

Since
4.4

Enumeration Type Documentation

enum Plasma::WindowEffects::Effect
Enumerator
Slide 
WindowPreview 
PresentWindows 
PresentWindowsGroup 
HighlightWindows 
OverrideShadow 
BlurBehind 
Dashboard 

Definition at line 38 of file windoweffects.h.

Function Documentation

void Plasma::WindowEffects::enableBlurBehind ( WId  window,
bool  enable = true,
const QRegion &  region = QRegion() 
)

Instructs the window manager to blur the background in the specified region behind the given window.

Passing a null region will enable the blur effect for the whole window. The region is relative to the top-left corner of the client area.

Note that you will usually want to set the region to the shape of the window, excluding any shadow or halo.

Parameters
windowThe window for which to enable the blur effect
enableEnable the effect if true, disable it if
regionThe region within the window where the background will be blurred
Since
4.5

Definition at line 310 of file windoweffects.cpp.

void Plasma::WindowEffects::highlightWindows ( WId  controller,
const QList< WId > &  ids 
)

Highlight the selected windows, making all the others translucent.

Parameters
controllerThe window which is the controller of this effect. The property will be set on this window. It will be removed by the effect
idsall the windows which should be highlighted.
Since
4.4

Definition at line 262 of file windoweffects.cpp.

bool Plasma::WindowEffects::isEffectAvailable ( Effect  effect)
Returns
if an atom property is available
Parameters
effectthe effect we want to check
Since
4.4

Definition at line 44 of file windoweffects.cpp.

void Plasma::WindowEffects::markAsDashboard ( WId  window)

Instructs the window manager to handle the given window as dashboard window as Dashboard windows should be handled diffrently and may have special effects applied to them.

Parameters
windowThe window for which to enable the blur effect
Since
4.6

Definition at line 331 of file windoweffects.cpp.

void Plasma::WindowEffects::overrideShadow ( WId  window,
bool  override 
)

Forbid te windowmanager to automatically generate a shadow for this window.

Parameters
windowthe window that won't have shadow
overridetrue if it won't have shadow, false enables it again
Since
4.4

Definition at line 294 of file windoweffects.cpp.

void Plasma::WindowEffects::presentWindows ( WId  controller,
const QList< WId > &  ids 
)

Activate the Present Windows effect for the given groups of windows.

Parameters
controllerThe window which is the controller of this effect. The property will be set on this window. It will be removed by the effect
idsall the windows which should be presented.
Since
4.4

Definition at line 224 of file windoweffects.cpp.

void Plasma::WindowEffects::presentWindows ( WId  controller,
int  desktop = -1 
)

Activate the Present Windows effect for the windows of the given desktop.

Parameters
controllerThe window which is the controller of this effect. The property will be set on this window. It will be removed by the effect
desktopThe desktop whose windows should be presented. -1 for all desktops
Since
4.4

Definition at line 250 of file windoweffects.cpp.

void Plasma::WindowEffects::showWindowThumbnails ( WId  parent,
const QList< WId > &  windows = QList< WId >(),
const QList< QRect > &  rects = QList< QRect >() 
)

Paint inside the window parent the thumbnails of the windows list in the respective rectangles of the rects list.

Parameters
parentwindow where we should paint
windowswindows we want a thumbnail of. If it is empty any thumbnail will be deleted
rectsrectangles in parent coordinates where to paint the window thumbnails. If it is empty any thumbnail will be deleted
Since
4.4

Definition at line 182 of file windoweffects.cpp.

void Plasma::WindowEffects::slideWindow ( WId  id,
Plasma::Location  location,
int  offset 
)

Mark a window as sliding from screen edge.

Parameters
idof the window on which we want to apply the effect
locationedge of the screen from which we want the sliding effect. Desktop and Floating won't have effect.
offsetdistance in pixels from the screen edge defined by location
Since
4.4

Definition at line 97 of file windoweffects.cpp.

void Plasma::WindowEffects::slideWindow ( QWidget *  widget,
Plasma::Location  location 
)

Mark a window as sliding from screen edge This is an overloaded member function provided for convenience.

Parameters
widgetQWidget corresponding to the top level window we want to animate
locationedge of the screen from which we want the sliding effect. Desktop and Floating won't have effect.
Since
4.4

Definition at line 131 of file windoweffects.cpp.

QList< QSize > Plasma::WindowEffects::windowSizes ( const QList< WId > &  ids)
Returns
dimension of all the windows passed as parameter
Parameters
idsall the windows we want the size
Since
4.4

Definition at line 164 of file windoweffects.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Plasma

Skip menu "Plasma"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal