• Skip to content
  • Skip to link menu
KDE 4.7 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

Plasma

  • Plasma
  • GLApplet
Public Member Functions
Plasma::GLApplet Class Reference

#include <Plasma/GLApplet>

Inheritance diagram for Plasma::GLApplet:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 GLApplet (QGraphicsItem *parent, const QString &serviceId, int appletId)
 GLApplet (QObject *parent, const QVariantList &args)
 ~GLApplet ()
GLuint bindTexture (const QImage &image, GLenum target=GL_TEXTURE_2D)
void deleteTexture (GLuint texture_id)
void makeCurrent ()
virtual void paintGLInterface (QPainter *painter, const QStyleOptionGraphicsItem *option)

Detailed Description

Plasma Applet that is fully rendered using OpengGL.

Definition at line 30 of file glapplet.h.


Constructor & Destructor Documentation

Plasma::GLApplet::GLApplet ( QGraphicsItem *  parent,
const QString &  serviceId,
int  appletId 
)
Parameters:
parentthe QGraphicsItem this applet is parented to
serviceIdthe name of the .desktop file containing the information about the widget
appletIda 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.

Parameters:
parenta QObject parent; you probably want to pass in 0
argsa 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 204 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
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs

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