|  | GL Studio C++ Runtime API
    | 
#include <weak_reference.h>
 
  
 | Public Member Functions | |
| virtual void | AddWeakReference (WeakReference *weakRef)=0 | 
| virtual void | NotifyWeakReferenceDestroyed (WeakReference *weakReference)=0 | 
Interface for getting a weak reference to an object. To implement this class, inherit from WeakReferenceableMixin (see DisplayObject as an example)
| 
 | pure virtual | 
Add a weak reference to this object, that gets notified when this object is destroyed. Does not take ownership of weakRef.
| weakRef | the weak reference to add. | 
Implemented in WeakReferenceableMixin.
| 
 | pure virtual | 
Notify this object that its weak reference is being destroyed
Implemented in WeakReferenceableMixin.