#include <textureasset.h>
Classes | |
class | TextureAssetPrivate |
Public Member Functions | |
Q_INVOKABLE | TextureAsset (QObject *parent=0) |
~TextureAsset () | |
virtual QIcon | icon () const |
void | load () |
virtual const QStringList | supportedMimeTypes () const |
virtual void | setName (const QString &newName) |
Definition at line 28 of file textureasset.h.
TextureAsset::TextureAsset | ( | QObject * | parent = 0 |
) |
Definition at line 45 of file textureasset.cpp.
TextureAsset::~TextureAsset | ( | ) |
Definition at line 52 of file textureasset.cpp.
QIcon TextureAsset::icon | ( | ) | const [virtual] |
An icon to represent the asset. Think of it as a thumbnail representation of the contents of the asset. The default implementation returns a null icon
Reimplemented from GluonEngine::Asset.
Definition at line 57 of file textureasset.cpp.
void TextureAsset::load | ( | ) | [virtual] |
Reimplemented from GluonEngine::Asset.
Definition at line 78 of file textureasset.cpp.
void TextureAsset::setName | ( | const QString & | newName | ) | [virtual] |
An extension on the GluonCore::GluonObject::setName function which changes the file name of the Asset when setting a new name for the Asset.
newName | The requested new name for the asset |
Reimplemented from GluonEngine::Asset.
Definition at line 94 of file textureasset.cpp.
const QStringList TextureAsset::supportedMimeTypes | ( | ) | const [virtual] |
Used by GluonObjectFactory when requesting an object which supports a specific mimetype. The default implementation returns an empty list.
This is primarily useful for GluonEngine::Asset but other classes can potentially use it as well.
Reimplemented from GluonCore::GluonObject.
Definition at line 65 of file textureasset.cpp.