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

Plasma

Plasma::GLApplet

Plasma::GLApplet Class Reference

Plasma Applet that is fully rendered using OpengGL. More...

#include <Plasma/GLApplet>

Inheritance diagram for Plasma::GLApplet:
Plasma::Applet QGraphicsWidget

List of all members.

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 ()

Detailed Description

Plasma Applet that is fully rendered using OpengGL.

Definition at line 37 of file glapplet.h.


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 105 of file glapplet.cpp.

void Plasma::GLApplet::makeCurrent (  ) 

Definition at line 208 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 111 of file glapplet.cpp.


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

Plasma

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
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