GluonEngine::TextureAsset Class Reference

#include <textureasset.h>

Inheritance diagram for GluonEngine::TextureAsset:
GluonEngine::Asset GluonCore::GluonObject QObject

List of all members.

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)

Detailed Description

Definition at line 28 of file textureasset.h.


Constructor & Destructor Documentation

TextureAsset::TextureAsset ( QObject parent = 0  ) 

Definition at line 45 of file textureasset.cpp.

TextureAsset::~TextureAsset (  ) 

Definition at line 52 of file textureasset.cpp.


Member Function Documentation

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.

Note:
As always, be aware that the requested name is not always the name which is set, as two objects with the same parent cannot have the same name.
Parameters:
newName The requested new name for the asset
See also:
file, GluonCore::GluonObject::name

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.

Returns:
A list of strings each describing a mimetype the class supports

Reimplemented from GluonCore::GluonObject.

Definition at line 65 of file textureasset.cpp.


The documentation for this class was generated from the following files:
Generated on Mon Dec 27 13:13:43 2010 for Gluon by  doxygen 1.6.3