ItemMotionHandler MasterHandler Classes Table of Contents

LayoutGeneric

typedef struct st_LWLayoutGeneric {
   int           (*saveScene) (const char *file);
   int           (*loadScene) (const char *file, const char *name);
   void          *data;
   LWCommandCode (*lookup) (void *, const char *cmdName);
   int           (*execute) (void *, LWCommandCode cmd, int argc,
                    const DynaValue *argv, DynaValue *result);
   int           (*evaluate) (void *, const char *command);
} LWLayoutGeneric;

This class is provided for general layout functionality which does not fit into any of the previous server or handler categories. Servers of this class can be activated by the user from the Layout interface to perform non-rendering functions, such as configuring external devices, performing calculations, etc. Other arbitrary scene manipulation can be done by altering the file for the current scene.

saveScene
This causes Layout to save the current scene as an LWSC file with the given filename.
loadScene
This causes Layout to replace the current scene in memory with the one given by a physical and logical file name. The `file' will be opened and loaded, but `name' will be used for display to the user and for subsequent saving.