+
+
+
+/**
+ * Called by the system when the close button is pressed
+ * @param sender the sender object
+ * @param selector message type and id
+ * @param data event related data
+ * @return
+ */
+long RenderingSurface::onQuit(FXObject *sender, FXSelector selector, void *data)
+{
+ getApp()->exit(0);
+
+ return 1;
+}
+
+
+
+/**
+ * Set current L-system generator
+ * @param lsystem the L-system generator
+ */
+void RenderingSurface::setLSystem(LindenmayerSystem *lsystem)
+{
+ _lsystem = lsystem;
+}