libplasma
Plasma::GLApplet Class Reference
#include <glapplet.h>

Detailed Description
Plasma Applet that is fully rendered using OpengGL.Definition at line 36 of file glapplet.h.
Public Member Functions | |
GLuint | bindTexture (const QImage &image, GLenum target=GL_TEXTURE_2D) |
void | deleteTexture (GLuint texture_id) |
GLApplet (QObject *parent, const QVariantList &args) | |
GLApplet (QGraphicsItem *parent, const QString &serviceId, int appletId) | |
void | makeCurrent () |
virtual void | paintGLInterface (QPainter *painter, const QStyleOptionGraphicsItem *option) |
~GLApplet () |
Constructor & Destructor Documentation
Plasma::GLApplet::GLApplet | ( | QGraphicsItem * | parent, | |
const QString & | serviceId, | |||
int | appletId | |||
) |
- parent the QGraphicsItem this applet is parented to
- serviceId the name of the .desktop file containing the information about the widget
- appletId a unique id used to differentiate between multiple instances of the same Applet type
Definition at line 67 of file glapplet.cpp.
Plasma::GLApplet::GLApplet | ( | QObject * | parent, | |
const QVariantList & | args | |||
) |
This constructor is to be used with the plugin loading systems found in KPluginInfo and KService.
The argument list is expected to have two elements: the KService service ID for the desktop entry and an applet ID which must be a base 10 number.
- parent a QObject parent; you probably want to pass in 0
- args a list of strings containing two entries: the service id and the applet id
Definition at line 80 of file glapplet.cpp.
Plasma::GLApplet::~GLApplet | ( | ) |
Definition at line 91 of file glapplet.cpp.
Member Function Documentation
GLuint Plasma::GLApplet::bindTexture | ( | const QImage & | image, | |
GLenum | target = GL_TEXTURE_2D | |||
) |
Definition at line 96 of file glapplet.cpp.
void Plasma::GLApplet::deleteTexture | ( | GLuint | texture_id | ) |
Definition at line 104 of file glapplet.cpp.
void Plasma::GLApplet::makeCurrent | ( | ) |
Definition at line 201 of file glapplet.cpp.
void Plasma::GLApplet::paintGLInterface | ( | QPainter * | painter, | |
const QStyleOptionGraphicsItem * | option | |||
) | [virtual] |
Reimplement this method to render using OpenGL.
QPainter passed to this method will always use OpenGL engine and rendering using OpenGL api directly is supported.
Definition at line 110 of file glapplet.cpp.
The documentation for this class was generated from the following files: