Plasma
#include <Plasma/View>

Public Slots | |
| virtual void | setContainment (Plasma::Containment *containment) |
Signals | |
| void | lostContainment () |
| void | sceneRectAboutToChange () |
| void | sceneRectChanged () |
Public Member Functions | |
| View (Containment *containment, QWidget *parent=0) | |
| View (Containment *containment, int viewId, QWidget *parent=0) | |
| ~View () | |
| Containment * | containment () const |
| int | desktop () const |
| int | effectiveDesktop () const |
| int | id () const |
| bool | isWallpaperEnabled () const |
| int | screen () const |
| void | setScreen (int screen, int desktop=-1) |
| void | setTrackContainmentChanges (bool trackChanges) |
| void | setWallpaperEnabled (bool draw) |
| Containment * | swapContainment (Plasma::Containment *existing, const QString &name, const QVariantList &args=QVariantList()) |
| Containment * | swapContainment (const QString &name, const QVariantList &args=QVariantList()) |
| bool | trackContainmentChanges () |
Static Public Member Functions | |
| static View * | topLevelViewAt (const QPoint &pos) |
Protected Member Functions | |
| KConfigGroup | config () const |
| void | configNeedsSaving () const |
Detailed Description
A QGraphicsView for a single Containment.
Each View is associated with a Plasma::Containment and tracks geometry changes, maps to the current desktop (if any) among other helpful utilities. It isn't stricly required to use a Plasma::View with Plasma enabled applications, but it can make some things easier.
Constructor & Destructor Documentation
| Plasma::View::View | ( | Containment * | containment, |
| QWidget * | parent = 0 |
||
| ) | [explicit] |
| Plasma::View::View | ( | Containment * | containment, |
| int | viewId, | ||
| QWidget * | parent = 0 |
||
| ) |
Member Function Documentation
| KConfigGroup Plasma::View::config | ( | ) | const [protected] |
| void Plasma::View::configNeedsSaving | ( | ) | const [protected] |
| Containment * Plasma::View::containment | ( | ) | const |
| int Plasma::View::desktop | ( | ) | const |
| int Plasma::View::effectiveDesktop | ( | ) | const |
| int Plasma::View::id | ( | ) | const |
| bool Plasma::View::isWallpaperEnabled | ( | ) | const |
| void Plasma::View::lostContainment | ( | ) | [signal] |
This is emitted after the containment is destroyed, for views that need to do something about it (like find a new one).
| void Plasma::View::sceneRectAboutToChange | ( | ) | [signal] |
This signal is emitted whenever the containment being viewed has changed its geometry, but before the View has shifted the viewd scene rect to the new geometry.
This is useful for Views which want to keep their rect() in sync with the containment'sa
| void Plasma::View::sceneRectChanged | ( | ) | [signal] |
This signal is emitted whenever the containment being viewed has changed its geometry, and after the View has shifted the viewd scene rect to the new geometry.
This is useful for Views which want to keep their rect() in sync with the containment's.
| int Plasma::View::screen | ( | ) | const |
| void Plasma::View::setContainment | ( | Plasma::Containment * | containment | ) | [virtual, slot] |
| void Plasma::View::setScreen | ( | int | screen, |
| int | desktop = -1 |
||
| ) |
| void Plasma::View::setTrackContainmentChanges | ( | bool | trackChanges | ) |
| void Plasma::View::setWallpaperEnabled | ( | bool | draw | ) |
| Containment * Plasma::View::swapContainment | ( | Plasma::Containment * | existing, |
| const QString & | name, | ||
| const QVariantList & | args = QVariantList() |
||
| ) |
| Containment * Plasma::View::swapContainment | ( | const QString & | name, |
| const QVariantList & | args = QVariantList() |
||
| ) |
| View * Plasma::View::topLevelViewAt | ( | const QPoint & | pos | ) | [static] |
- Parameters:
-
pos the position in screen coordinates.
- Returns:
- the Plasma::View that is at position pos.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2012 The KDE developers.
Generated on Wed May 2 2012 17:36:51 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.