|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.gui.QIconEngine
com.trolltech.qt.gui.QIconEngineV2
public abstract class QIconEngineV2
The QIconEngineV2 class provides an abstract base class for QIcon renderers.
An icon engine renders QIcons. With icon engines, you can customize icons. Qt provides a default engine that makes icons adhere to the current style by scaling the icons and providing a disabled appearance.
An engine is installed on an icon either through a QIcon constructor or through a QIconEnginePluginV2. The plugins are used by Qt if a specific engine is not given when the icon is created. See the QIconEngineV2 class description to learn how to create icon engine plugins.
An icon engine provides the rendering functions for a QIcon. Each icon has a corresponding icon engine that is responsible for drawing the icon with a requested size, mode and state.
QIconEngineV2 extends the API of QIconEngine to allow streaming of the icon engine contents, and should be used instead of QIconEngine for implementing new icon engines.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
---|
QSignalEmitter.AbstractSignal, QSignalEmitter.Signal0, QSignalEmitter.Signal1<A>, QSignalEmitter.Signal2<A,B>, QSignalEmitter.Signal3<A,B,C>, QSignalEmitter.Signal4<A,B,C,D>, QSignalEmitter.Signal5<A,B,C,D,E>, QSignalEmitter.Signal6<A,B,C,D,E,F>, QSignalEmitter.Signal7<A,B,C,D,E,F,G>, QSignalEmitter.Signal8<A,B,C,D,E,F,G,H>, QSignalEmitter.Signal9<A,B,C,D,E,F,G,H,I> |
Method Summary | |
---|---|
QIconEngineV2 |
clone()
Returns a clone of this icon engine. |
static QIconEngineV2 |
fromNativePointer(QNativePointer nativePointer)
This function returns the QIconEngineV2 instance pointed to by nativePointer |
java.lang.String |
key()
Returns a key that identifies this icon engine. |
boolean |
read(QDataStream in)
Reads icon engine contents from the QDataStream in. |
boolean |
write(QDataStream out)
Writes the contents of this engine to the QDataStream out. |
Methods inherited from class com.trolltech.qt.gui.QIconEngine |
---|
actualSize, addFile, addPixmap, paint, pixmap |
Methods inherited from class com.trolltech.qt.QtJambiObject |
---|
dispose, disposed, finalize, reassignNativeResources, tr, tr, tr |
Methods inherited from class com.trolltech.qt.QSignalEmitter |
---|
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.trolltech.qt.QtJambiInterface |
---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
Method Detail |
---|
public QIconEngineV2 clone()
Returns a clone of this icon engine.
clone
in class java.lang.Object
public java.lang.String key()
Returns a key that identifies this icon engine.
public boolean read(QDataStream in)
Reads icon engine contents from the QDataStream in. Returns true if the contents were read; otherwise returns false.
QIconEngineV2's default implementation always return false.
public boolean write(QDataStream out)
Writes the contents of this engine to the QDataStream out. Returns true if the contents were written; otherwise returns false.
QIconEngineV2's default implementation always return false.
public static QIconEngineV2 fromNativePointer(QNativePointer nativePointer)
nativePointer
- the QNativePointer of which object should be returned.
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |