Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtGui.QIconEngine Class Referenceabstract

The QIconEngine class provides an abstract base class for QIcon renderers. More...

Inheritance diagram for QtGui.QIconEngine:
Collaboration diagram for QtGui.QIconEngine:

Public Member Functions

 QIconEngine ()
 
 QIconEngine (QIconEngine copy)
 
virtual void CreateProxy ()
 
virtual QSize ActualSize (QSize size, QIcon.Mode mode, QIcon.State state)
 
 
virtual void AddFile (string fileName, QSize size, QIcon.Mode mode, QIcon.State state)
 
 
virtual void AddPixmap (QPixmap pixmap, QIcon.Mode mode, QIcon.State state)
 
 
abstract void Paint (QPainter painter, QRect rect, QIcon.Mode mode, QIcon.State state)
 
 
virtual QPixmap Pixmap (QSize size, QIcon.Mode mode, QIcon.State state)
 
 
new void Dispose ()
 

Protected Member Functions

 QIconEngine (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

virtual System.IntPtr SmokeObject [get, set]
 

Detailed Description

The QIconEngine class provides an abstract base class for QIcon renderers.

Use QIconEngineV2 instead.

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.

The icon is rendered by the paint() function, and the icon can additionally be obtained as a pixmap with the pixmap() function (the default implementation simply uses paint() to achieve this). The addPixmap() function can be used to add new pixmaps to the icon engine, and is used by QIcon to add specialized custom pixmaps.

The paint(), pixmap(), and addPixmap() functions are all virtual, and can therefore be reimplemented in subclasses of QIconEngine.

See also QIconEngineV2 and QIconEnginePlugin.

Constructor & Destructor Documentation

QtGui.QIconEngine.QIconEngine ( System.Type  dummy)
protected
QtGui.QIconEngine.QIconEngine ( )
QtGui.QIconEngine.QIconEngine ( QIconEngine  copy)

Member Function Documentation

virtual QSize QtGui.QIconEngine.ActualSize ( QSize  size,
QIcon.Mode  mode,
QIcon.State  state 
)
virtual

Returns the actual size of the icon the engine provides for the requested size, mode and state. The default implementation returns the given size.

virtual void QtGui.QIconEngine.AddFile ( string  fileName,
QSize  size,
QIcon.Mode  mode,
QIcon.State  state 
)
virtual

Called by QIcon::addFile(). Adds a specialized pixmap from the file with the given fileName, size, mode and state. The default pixmap-based engine stores any supplied file names, and it loads the pixmaps on demand instead of using scaled pixmaps if the size of a pixmap matches the size of icon requested. Custom icon engines that implement scalable vector formats are free to ignores any extra files.

virtual void QtGui.QIconEngine.AddPixmap ( QPixmap  pixmap,
QIcon.Mode  mode,
QIcon.State  state 
)
virtual

Called by QIcon::addPixmap(). Adds a specialized pixmap for the given mode and state. The default pixmap-based engine stores any supplied pixmaps, and it uses them instead of scaled pixmaps if the size of a pixmap matches the size of icon requested. Custom icon engines that implement scalable vector formats are free to ignores any extra pixmaps.

virtual void QtGui.QIconEngine.CreateProxy ( )
virtual

Reimplemented in QtGui.QIconEngineV2.

new void QtGui.QIconEngine.Dispose ( )
abstract void QtGui.QIconEngine.Paint ( QPainter  painter,
QRect  rect,
QIcon.Mode  mode,
QIcon.State  state 
)
pure virtual

Uses the given painter to paint the icon with the required mode and state into the rectangle rect.

virtual QPixmap QtGui.QIconEngine.Pixmap ( QSize  size,
QIcon.Mode  mode,
QIcon.State  state 
)
virtual

Returns the icon as a pixmap with the required size, mode, and state. The default implementation creates a new pixmap and calls paint() to fill it.

Member Data Documentation

SmokeInvocation QtGui.QIconEngine.interceptor
protected

Property Documentation

virtual System.IntPtr QtGui.QIconEngine.SmokeObject
getset