Plasma
Public Slots |
Signals |
Public Member Functions |
Static Public Member Functions |
Protected Member Functions |
List of all members
Plasma::View Class Reference
#include <Plasma/View>
Inheritance diagram for Plasma::View:

Public Slots | |
virtual void | setContainment (Plasma::Containment *containment) |
Signals | |
void | lostContainment () |
void | sceneRectAboutToChange () |
void | sceneRectChanged () |
Public Member Functions | |
View (Containment *containment, int viewId, QWidget *parent=0) | |
View (Containment *containment, 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 (const QString &name, const QVariantList &args=QVariantList()) |
Containment * | swapContainment (Plasma::Containment *existing, 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
◆ View() [1/2]
|
explicit |
◆ View() [2/2]
Plasma::View::View | ( | Containment * | containment, |
int | viewId, | ||
QWidget * | parent = 0 ) |
◆ ~View()
Member Function Documentation
◆ config()
|
protected |
◆ configNeedsSaving()
|
protected |
◆ containment()
Containment * Plasma::View::containment | ( | ) | const |
◆ desktop()
int Plasma::View::desktop | ( | ) | const |
◆ effectiveDesktop()
int Plasma::View::effectiveDesktop | ( | ) | const |
◆ id()
int Plasma::View::id | ( | ) | const |
◆ isWallpaperEnabled()
bool Plasma::View::isWallpaperEnabled | ( | ) | const |
◆ lostContainment
|
signal |
This is emitted after the containment is destroyed, for views that need to do something about it (like find a new one).
◆ sceneRectAboutToChange
|
signal |
◆ sceneRectChanged
|
signal |
◆ screen()
int Plasma::View::screen | ( | ) | const |
◆ setContainment
|
virtualslot |
◆ setScreen()
void Plasma::View::setScreen | ( | int | screen, |
int | desktop = -1 ) |
◆ setTrackContainmentChanges()
void Plasma::View::setTrackContainmentChanges | ( | bool | trackChanges | ) |
◆ setWallpaperEnabled()
void Plasma::View::setWallpaperEnabled | ( | bool | draw | ) |
◆ swapContainment() [1/2]
Containment * Plasma::View::swapContainment | ( | const QString & | name, |
const QVariantList & | args = QVariantList() ) |
◆ swapContainment() [2/2]
Containment * Plasma::View::swapContainment | ( | Plasma::Containment * | existing, |
const QString & | name, | ||
const QVariantList & | args = QVariantList() ) |
◆ topLevelViewAt()
- Parameters
-
pos the position in screen coordinates.
- Returns
- the Plasma::View that is at position pos.
◆ trackContainmentChanges()
bool Plasma::View::trackContainmentChanges | ( | ) |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.