Plasma
Background Class Reference
#include <backgroundpackage.h>

Detailed Description
Definition at line 32 of file backgroundpackage.h.
Public Types | |
| enum | ResizeMethod { Scale, Center, ScaleCrop, Tiled, CenterTiled } |
Public Member Functions | |
| virtual | ~Background () |
| virtual QString | path () const =0 |
| virtual QString | findBackground (const QSize &resolution, ResizeMethod method) const =0 |
| virtual QPixmap | screenshot () const =0 |
| virtual bool | screenshotGenerationStarted () const =0 |
| virtual void | generateScreenshot (QPersistentModelIndex index) const =0 |
| virtual QString | title () const =0 |
| virtual QString | author () const =0 |
| virtual QString | email () const =0 |
| virtual QString | license () const =0 |
| virtual bool | isValid () const =0 |
Static Public Attributes | |
| static const int | SCREENSHOT_HEIGHT = 60 |
Static Protected Member Functions | |
| static QImage | defaultScreenshot () |
| static QImage | createScreenshot (const QString &path, float ratio) |
Friends | |
| class | ResizeThread |
Member Enumeration Documentation
Definition at line 36 of file backgroundpackage.h.
Constructor & Destructor Documentation
| Background::~Background | ( | ) | [virtual] |
Definition at line 78 of file backgroundpackage.cpp.
Member Function Documentation
| virtual QString Background::path | ( | ) | 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 QPixmap Background::screenshot | ( | ) | const [pure virtual] |
Implemented in BackgroundPackage, and BackgroundFile.
| virtual bool Background::screenshotGenerationStarted | ( | ) | const [pure virtual] |
Implemented in BackgroundPackage, and BackgroundFile.
| virtual void Background::generateScreenshot | ( | QPersistentModelIndex | index | ) | const [pure virtual] |
Implemented in BackgroundPackage, and BackgroundFile.
| virtual QString Background::title | ( | ) | const [pure virtual] |
Implemented in BackgroundPackage, and BackgroundFile.
| virtual QString Background::author | ( | ) | const [pure virtual] |
Implemented in BackgroundPackage, and BackgroundFile.
| virtual QString Background::email | ( | ) | const [pure virtual] |
Implemented in BackgroundPackage, and BackgroundFile.
| virtual QString Background::license | ( | ) | const [pure virtual] |
Implemented in BackgroundPackage, and BackgroundFile.
| virtual bool Background::isValid | ( | ) | const [pure virtual] |
Implemented in BackgroundPackage, and BackgroundFile.
| QImage Background::defaultScreenshot | ( | ) | [static, protected] |
Definition at line 107 of file backgroundpackage.cpp.
Definition at line 82 of file backgroundpackage.cpp.
Friends And Related Function Documentation
friend class ResizeThread [friend] |
Definition at line 64 of file backgroundpackage.h.
Member Data Documentation
const int Background::SCREENSHOT_HEIGHT = 60 [static] |
Definition at line 44 of file backgroundpackage.h.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference