|  | GL Studio C++ Runtime API
    | 
#include <disti_metadata.h>
 
  
| Public Member Functions | |
| AttributeResourceCallback (T *object, const AttributeName &attributeName) | |
| void | Call (DistiAttributeBase &attr) override | 
| virtual bool | IsValid () const override | 
| virtual void | Call (DistiAttributeBase &attr)=0 | 
| virtual bool | IsValid () const =0 | 
| Protected Attributes | |
| AttributeName | _attributeName | 
| The attribute to set when invoked. | |
| WeakRef< T > | _object | 
| The object containing the attribute. | |
Template for an AttributeCallbackBase that will set another object's attribute whenever the attribute changes. The class must implement WeakReferenceable. Don't use this directly, use CreateAttributeResourceCallback instead.
| 
 | inline | 
Construct a new AttributeResourceCallback object to link an attribute to an attribute of another object.
| object | The object containing the attribute. | 
| attributeName | The attribute to set. | 
| 
 | inlineoverridevirtual | 
Call the callback with the provided display event.
| attr | The attribute associated with this callback. | 
Implements AttributeObserver.
| 
 | inlineoverridevirtual | 
When IsValid is false, then this AttributeObserver can be deleted.
Implements AttributeObserver.