|
| virtual float | asFloat (bool *const ok=0, Layer layer=LAYER_CURRENT) const |
| | Converts the target object to a floating point number. More... |
| |
| virtual int | asInt (bool *const ok=0, Layer layer=LAYER_CURRENT) const |
| | Converts the target object to an integer. More... |
| |
| virtual QString | asString (bool *const ok=0, Layer layer=LAYER_CURRENT) const |
| | Converts the target value to a string. More... |
| |
|
Attribute * | attribute () const |
| | Get the target Attribute where this class points to. |
| |
| virtual Attribute * | attribute (const QByteArray &name) const |
| | Gets an Attribute with the given name. More... |
| |
|
| AttributeAlias (Node *host, const QByteArray &name, Attribute *attribute) |
| |
| virtual void | clearValue (Layer layout) |
| | Unsets the value from a specific layer. More... |
| |
| virtual bool | deserialize (const ArchiveElement &element) |
| | Deserializes (reads) this object from serializer element. More... |
| |
|
virtual void | eventProcess (const QByteArray &id, Radiant::BinaryData &data) |
| | Calls the target eventProcess-function. |
| |
| virtual bool | handleShorthand (const StyleValue &value, Radiant::ArrayMap< Attribute *, StyleValue > &expanded) |
| | If attribute supports shorthand properties, this should be used to parse those. More... |
| |
|
virtual bool | isChanged () const |
| | Returns true if the current value of the target object is different from the original value. |
| |
| virtual bool | isValueDefinedOnLayer (Layer layer) const |
| | Check if the given layer defines a value. More... |
| |
| virtual ArchiveElement | serialize (Archive &archive) const |
| | The object is serialized using its name as a tag name. More... |
| |
|
virtual bool | set (float v, Layer layer=USER, ValueUnit unit=VU_UNKNOWN) |
| | Sets the value of the target object. |
| |
|
virtual bool | set (int v, Layer layer=USER, ValueUnit unit=VU_UNKNOWN) |
| | Sets the value of the target object. |
| |
|
virtual bool | set (const QString &v, Layer layer=USER, ValueUnit unit=VU_UNKNOWN) |
| | Sets the value of the target object. |
| |
|
virtual bool | set (const Nimble::Vector2f &v, Layer layer=USER, QList< ValueUnit > units=QList< ValueUnit >()) |
| | Sets the value of the target object. |
| |
|
virtual bool | set (const Nimble::Vector3f &v, Layer layer=USER, QList< ValueUnit > units=QList< ValueUnit >()) |
| | Sets the value of the target object. |
| |
|
virtual bool | set (const Nimble::Vector4f &v, Layer layer=USER, QList< ValueUnit > units=QList< ValueUnit >()) |
| | Sets the value of the target object. |
| |
|
virtual bool | set (const StyleValue &v, Layer layer=USER) |
| | Sets the value of the target object. |
| |
| virtual void | setAsDefaults () |
| | Sets the current USER attribute value as the default value and clears the USER value. More... |
| |
|
void | setAttribute (Attribute *attribute) |
| | Set the target Attribute where this class points to. |
| |
| virtual QByteArray | type () const |
| | Get the type id of the attribute. More... |
| |
| long | addListener (ListenerFunc func, int role=CHANGE_ROLE) |
| | Adds a listener that is invoked whenever the value is changed. More... |
| |
| long | addListener (Node *listener, ListenerFunc func, int role=CHANGE_ROLE) |
| | Adds a listener that is invoked whenever the value is changed. More... |
| |
| long | addListener (v8::Persistent< v8::Function > func, int role=CHANGE_ROLE) |
| | Adds a JavaScript listener that is invoked whenever the value is changed. More... |
| |
| | Attribute (const Attribute &o) |
| | Create a copy of the given Attribute WITHOUT the link to host, listeners, or the attribute name. More... |
| |
| | Attribute (Node *host, const QByteArray &name, bool transit=false) |
| | Constructs a new value object and attaches it to its host. More... |
| |
|
virtual void | emitChange () |
| | Invokes the change valueChanged function of all listeners. |
| |
|
void | eventProcessFloat (const char *id, float v) |
| | Utility function for sending a float message to the object. |
| |
|
void | eventProcessInt (const char *id, int v) |
| | Utility function for sending an int message to the object. |
| |
|
void | eventProcessString (const char *id, const QString &str) |
| | Utility function for sending string message to the object. |
| |
|
void | eventProcessString (const char *id, const char *str) |
| | Utility function for sending string message to the object. |
| |
|
void | eventProcessVector2 (const char *id, Nimble::Vector2) |
| | Utility function for sending a Nimble::Vector2f message to the object. |
| |
|
void | eventProcessVector3 (const char *id, Nimble::Vector3) |
| | Utility function for sending a Vector3 message to the object. |
| |
|
void | eventProcessVector4 (const char *id, Nimble::Vector4) |
| | Utility function for sending a Vector4 message to the object. |
| |
| Node * | host () const |
| | The host object of the value object (is any). More... |
| |
|
bool | layerForSerialization (SerializationOptions flags, Layer &layer) const |
| |
|
const QByteArray & | name () const |
| | Returns the name of the object. |
| |
| const Attribute & | operator= (const Attribute &) |
| | Create a copy of the given Attribute WITHOUT the link to host, listeners, or the attribute name. More... |
| |
|
Attribute * | ownerShorthand () const |
| |
|
QByteArray | path () const |
| | Returns the path (separated by '/'s) from the root. |
| |
| void | removeHost () |
| | Sets the host pointer to zero and removes this object from the host. More... |
| |
| bool | removeListener (Node *listener, int role=ALL_ROLES) |
| | Removes a listener from the listener list. More... |
| |
| bool | removeListener (long id) |
| | Removes a listener from the listener list. More... |
| |
|
void | removeListeners (int role=ALL_ROLES) |
| | Removes listeners from the listener list. |
| |
|
void | setName (const QByteArray &s) |
| | Sets the name of the object. |
| |
|
void | setOwnerShorthand (Attribute *owner) |
| |
| virtual bool | deserializeXML (const DOMElement &element) |
| | Deserializes (reads) this object from an XML element. More... |
| |
| bool | isSerializable () const |
| |
| void | setSerializable (bool v) |
| |
Alias to another Attribute object.