void
PySurfaceAttributes_StartUp(SurfaceAttributes *subj, void *data)
{
    if(subj == 0)
        return;

    currentAtts = subj;
    PySurfaceAttributes_SetDefaults(subj);

    //
    // Create the observer that will be notified when the attributes change.
    //
    if(SurfaceAttributesObserver == 0)
    {
        SurfaceAttributesObserver = new ObserverToCallback(subj,
            PySurfaceAttributes_CallLogRoutine, (void *)data);
    }

}
Example #2
0
void
SurfaceScriptingPluginInfo::SetDefaults(const AttributeSubject *atts)
{
    PySurfaceAttributes_SetDefaults((const SurfaceAttributes *)atts);
}