|  | GL Studio C++ Runtime API
    | 
#include <disti_metadata.h>
 
  
| Public Types | |
| typedef void(T::* | Callback) (DistiAttributeBase &attr) | 
| Typedef for the callback function pointer. | |
| Public Member Functions | |
| AttributeMethodCallback (T *object, Callback method) | |
| void | Call (DistiAttributeBase &ev) override | 
| virtual bool | IsValid () const override | 
| virtual void | Call (DistiAttributeBase &attr)=0 | 
| virtual bool | IsValid () const =0 | 
| Protected Attributes | |
| Callback | _method | 
| Method to call back when invoked. | |
| WeakRef< T > | _object | 
| The underlying object containing the callback method. | |
Template for an AttributeCallbackBase that will call a class method whenever the attribute changes. The class must implement WeakReferenceable. Don't use this directly, use CreateAttributeMethodCallback instead.
| 
 | inline | 
Construct a new AttributeMethodCallback object to link the callback and the class containing it.
| object | The object containing the callback method. | 
| method | The method to call back. | 
| 
 | 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.