Resource Class Reference
The Resource class provides access to named resources.
More...
#include <qtopia/resource.h>
List of all member functions.
Static Public Members
Detailed Description
The Resource class provides access to named resources.
The resources may be provided from files or other sources.
The allSounds() function returns a list of all the sounds available.
A particular sound can be searched for using findSound().
Images can be loaded with loadImage(), loadPixmap(), loadBitmap()
and loadIconSet().
See also Qtopia Classes.
Member Function Documentation
QStringList Resource::allSounds () [static]
Returns a list of all sound names.
QString Resource::findPixmap ( const QString & pix ) [static]
Returns the filename of a pixmap called pix. You should avoid including
any filename type extension (e.g. .png, .xpm).
Normally you will use loadPixmap() rather than this function.
QString Resource::findSound ( const QString & name ) [static]
Returns a sound file for a sound called name.
You should avoid including any filename type extension (e.g. .wav),
as the system will search for only those fileformats which are supported
by the library.
Currently, only WAV files are supported.
QBitmap Resource::loadBitmap ( const QString & pix ) [static]
Returns the QBitmap called pix. You should avoid including
any filename type extension (e.g. .png, .xpm).
QIconSet Resource::loadIconSet ( const QString & pix ) [static]
Returns a QIconSet for the pixmap named pix.
You should avoid including any filename type extension (eg. .png, .xpm).
The icon size is determined by the Qtopia font setting.
QImage Resource::loadImage ( const QString & name ) [static]
Returns the QImage called name. You should avoid including
any filename type extension (e.g. .png, .xpm).
For performance reasons, names ending in "_disabled" are only
supported as XPM or PNG files.
QPixmap Resource::loadPixmap ( const QString & pix ) [static]
Returns the QPixmap called pix. You should avoid including
any filename type extension (e.g. .png, .xpm).
This file is part of the Qtopia ,
copyright © 1995-2002
Trolltech, all rights reserved.
Copyright © 2001-2002 Trolltech | Trademarks
| Qtopia version 1.7.0
|