• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libplasma

Plasma::View

Plasma::View Class Reference

#include <view.h>

Inheritance diagram for Plasma::View:

Inheritance graph
[legend]

List of all members.


Detailed Description

A QGraphicsScene for Plasma::Applets.

Definition at line 36 of file view.h.


Public Member Functions

 View (int screen, Corona *corona, QWidget *parent=0)
 View (Containment *containment, QWidget *parent=0)
 ~View ()
void setDrawWallpaper (bool draw)
bool drawWallpaper () const
void setScreen (int screen)
int screen () const
void setContainment (Containment *containment)
Containment * containment () const

Protected Slots

void updateSceneRect ()

Constructor & Destructor Documentation

Plasma::View::View ( int  screen,
Corona *  corona,
QWidget *  parent = 0 
)

Definition at line 48 of file view.cpp.

Plasma::View::View ( Containment *  containment,
QWidget *  parent = 0 
) [explicit]

Definition at line 57 of file view.cpp.

Plasma::View::~View (  ) 

Definition at line 79 of file view.cpp.


Member Function Documentation

void Plasma::View::setDrawWallpaper ( bool  draw  ) 

Sets whether or not to draw the containment wallpaper when painting on this item.

Definition at line 126 of file view.cpp.

bool Plasma::View::drawWallpaper (  )  const

Returns:
whether or not containments should draw wallpaper

Definition at line 131 of file view.cpp.

void Plasma::View::setScreen ( int  screen  ) 

Sets which screen this view is associated with, if any.

This will also set the containment if a valid screen is specified

  • screen the xinerama screen number; -1 for no screen

Definition at line 84 of file view.cpp.

int Plasma::View::screen (  )  const

Returns the screen this view is associated with.

Returns:
the xinerama screen number, or -1 for none

Definition at line 100 of file view.cpp.

void Plasma::View::setContainment ( Containment *  containment  ) 

Sets the containment for this view, which will also cause the view to track the geometry of the containment.

  • containment the containment to center the view on

Definition at line 105 of file view.cpp.

Containment * Plasma::View::containment (  )  const

Returns:
the containment associated with this view, or 0 if none is

Definition at line 121 of file view.cpp.

void Plasma::View::updateSceneRect (  )  [protected, slot]

Definition at line 136 of file view.cpp.


The documentation for this class was generated from the following files:
  • view.h
  • view.cpp

libplasma

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

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal