DestroyObjects.h

Go to the documentation of this file.
00001 /*------------------------------------------------------------------------
00002  *    Graphic library 
00003  *    Copyright INRIA
00004  *    newGraph Library header
00005  *    Matthieu PHILIPPE, INRIA 2001-2002
00006  *    Djalel ABDEMOUCHE, INRIA 2002-2004
00007  *    Fabrice Leray,     INRIA 2004-xxxx
00008  *    Comment:
00009  *    This file contains all functions used to BUILD new objects : 
00010  - break the binding between the deleted object and its parent in the 
00011  existing hierarchy
00012  - freeing memory
00013  --------------------------------------------------------------------------*/
00014 
00015 #include "ObjectStructure.h"
00016 #include "HandleManagement.h"
00017 
00018 
00019 #ifndef __SCI_DESTROY__
00020 #define __SCI_DESTROY__
00021 
00022 
00023 
00024 extern int DestroyAllGraphicsSons (sciPointObj * pthis); /* DESTROY */
00025 void AllGraphWinDelete( void ) ;
00026 
00027 #define SciGerase() { if( C2F(scigerase)() !=0 ) { Scierror(999,"%s :Requested figure cannot be created \r\n",fname) ; return 0 ; } }
00028 int C2F(scigerase)( void ) ;
00029 
00030 extern int DestroyFigure (sciPointObj * pthis); /* DESTROY */
00031 extern int DestroyStatusBar (sciPointObj * pthis); /* DESTROY */
00032 extern int DestroySubWin (sciPointObj * pthis); /* DESTROY */
00033 extern int DestroyScrollV (sciPointObj * pthis); /* DESTROY */
00034 extern int DestroyScrollH (sciPointObj * pthis); /* DESTROY */
00035 extern int deallocateText( sciPointObj * pthis ) ;
00036 extern int DestroyText (sciPointObj * pthis); /* DESTROY */
00037 extern int DestroyTitle (sciPointObj * pthis); /* DESTROY */
00038 extern int DestroyLegend (sciPointObj * pthis); /* DESTROY */
00039 extern int DestroyPolyline (sciPointObj * pthis); /* DESTROY */
00040 extern int DestroyArc (sciPointObj * pthis); /* DESTROY */
00041 extern int DestroyRectangle (sciPointObj * pthis); /* DESTROY */
00042 extern int DestroySurface (sciPointObj * pthis); /* DESTROY */
00043 extern int DestroyMerge (sciPointObj * pthis); /* DESTROY */
00044 extern int DestroyGrayplot (sciPointObj * pthis); /* DESTROY */
00045 extern int DestroyAxes (sciPointObj * pthis); /* DESTROY */
00046 extern int DestroyFec (sciPointObj * pthis); /* DESTROY */
00047 extern int DestroySegs (sciPointObj * pthis); /* DESTROY */
00048 extern int DestroyCompound (sciPointObj * pthis);
00049 
00050 extern void DeleteObjs(int win); /* DESTROY */
00051 extern int sciUnCompound (sciPointObj * pobj); /* DESTROY */
00052 
00053 extern int sciDelGraphicObj (sciPointObj * pthis); /* DESTROY */
00054 
00055 extern int DestroyLabel (sciPointObj * pthis); /* DESTROY */
00056 extern int DestroyUimenu (sciPointObj * pthis); /* DESTROY */
00057 int sciDestroyConsole(     sciPointObj * pthis ) ; /* DESTROY */
00058 int sciDestroyFrame(       sciPointObj * pThis ) ;
00059 int sciDestroyWindow(      sciPointObj * pThis ) ;
00060 int sciDestroyWindowFrame( sciPointObj * pThis ) ;
00061 int sciDestroyScreen(      sciPointObj * pThis ) ;
00062 /* UNUSED : */
00063 
00064 extern int sciDelLabelsMenu (sciPointObj * pthis);
00065 extern int DestroyMenuContext (sciPointObj * pthis);
00066 extern int DestroySciMenu (sciPointObj * pthis);
00067 
00068 /* ADDED */
00069 
00070 extern void delete_sgwin_entities(int win_num);
00071 
00072 /* free the user_data */
00073 extern void clearUserData( sciPointObj * pObj ) ;
00074 
00075 extern void sciDeleteWindow( int winNum ) ;
00076 
00077 extern int updateMerge( sciPointObj * pSubwin ) ;
00078 
00079 void CleanPlots(char *unused, integer *winnumber, integer *v3, integer *v4, integer *v5, integer *v6, integer *v7, double *dx1, double *dx2, double *dx3, double *dx4) ;
00080 
00081 int sciStandardDestroyOperations( sciPointObj * pThis ) ;
00082 
00083 #endif /* __SCI_DESTROY__ */

Generated on Sun Mar 4 15:03:49 2007 for Scilab [trunk] by  doxygen 1.5.1