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

Plasma

Background Class Reference

#include <backgroundpackage.h>

Inheritance diagram for Background:

Inheritance graph
[legend]

List of all members.


Public Types

enum  ResizeMethod {
  Scale, Center, ScaleCrop, Tiled,
  CenterTiled, Maxpect
}

Public Member Functions

virtual QString author () const =0
virtual QString email () const =0
virtual QString findBackground (const QSize &resolution, ResizeMethod method) const =0
virtual void generateScreenshot (QPersistentModelIndex index) const =0
virtual bool isValid () const =0
virtual QString license () const =0
virtual QString path () const =0
virtual QPixmap screenshot () const =0
virtual bool screenshotGenerationStarted () const =0
virtual QString title () const =0
virtual ~Background ()

Static Public Attributes

static const int SCREENSHOT_HEIGHT = 60

Static Protected Member Functions

static QImage createScreenshot (const QString &path, float ratio)
static QImage defaultScreenshot ()

Detailed Description

Definition at line 41 of file backgroundpackage.h.


Member Enumeration Documentation

enum Background::ResizeMethod

Enumerator:
Scale 
Center 
ScaleCrop 
Tiled 
CenterTiled 
Maxpect 

Definition at line 45 of file backgroundpackage.h.


Constructor & Destructor Documentation

Background::~Background (  )  [virtual]

Definition at line 97 of file backgroundpackage.cpp.


Member Function Documentation

virtual QString Background::author (  )  const [pure virtual]

Implemented in BackgroundPackage, and BackgroundFile.

QImage Background::createScreenshot ( const QString &  path,
float  ratio 
) [static, protected]

Definition at line 101 of file backgroundpackage.cpp.

QImage Background::defaultScreenshot (  )  [static, protected]

Definition at line 126 of file backgroundpackage.cpp.

virtual QString Background::email (  )  const [pure virtual]

Implemented in BackgroundPackage, and BackgroundFile.

virtual QString Background::findBackground ( const QSize &  resolution,
ResizeMethod  method 
) const [pure virtual]

Implemented in BackgroundPackage, and BackgroundFile.

virtual void Background::generateScreenshot ( QPersistentModelIndex  index  )  const [pure virtual]

Implemented in BackgroundPackage, and BackgroundFile.

virtual bool Background::isValid (  )  const [pure virtual]

Implemented in BackgroundPackage, and BackgroundFile.

virtual QString Background::license (  )  const [pure virtual]

Implemented in BackgroundPackage, and BackgroundFile.

virtual QString Background::path (  )  const [pure virtual]

Implemented in BackgroundPackage, and BackgroundFile.

virtual QPixmap Background::screenshot (  )  const [pure virtual]

Implemented in BackgroundPackage, and BackgroundFile.

virtual bool Background::screenshotGenerationStarted (  )  const [pure virtual]

Implemented in BackgroundPackage, and BackgroundFile.

virtual QString Background::title (  )  const [pure virtual]

Implemented in BackgroundPackage, and BackgroundFile.


Member Data Documentation

const int Background::SCREENSHOT_HEIGHT = 60 [static]

Definition at line 54 of file backgroundpackage.h.


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

Plasma

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

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
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