/*------------------------------------------------------------------------
 *    Graphic library 
 *    Copyright INRIA
 *    newGraph Library header
 *    Matthieu PHILIPPE, INRIA 2001-2002
 *    Djalel ABDEMOUCHE, INRIA 2002-2004
 *    Fabrice Leray,     INRIA 2004-xxxx
 *    Comment:
 *    This file contains all functions used to BUILD new objects : 
        - break the binding between the deleted object and its parent in the 
          existing hierarchy
        - freeing memory
  --------------------------------------------------------------------------*/

#include "ObjectStructure.h"
#include "HandleManagement.h"


#ifndef __SCI_DESTROY__
#define __SCI_DESTROY__



extern int DestroyAllGraphicsSons (sciPointObj * pthis); /* DESTROY */

extern int DestroyFigure (sciPointObj * pthis); /* DESTROY */
extern int DestroyStatusBar (sciPointObj * pthis); /* DESTROY */
extern int DestroySubWin (sciPointObj * pthis); /* DESTROY */
extern int DestroyScrollV (sciPointObj * pthis); /* DESTROY */
extern int DestroyScrollH (sciPointObj * pthis); /* DESTROY */
extern int DestroyText (sciPointObj * pthis); /* DESTROY */
extern int DestroyTitle (sciPointObj * pthis); /* DESTROY */
extern int DestroyLegend (sciPointObj * pthis); /* DESTROY */
extern int DestroyPolyline (sciPointObj * pthis); /* DESTROY */
extern int DestroyArc (sciPointObj * pthis); /* DESTROY */
extern int DestroyRectangle (sciPointObj * pthis); /* DESTROY */
extern int DestroySurface (sciPointObj * pthis); /* DESTROY */
extern int DestroyMerge (sciPointObj * pthis); /* DESTROY */
extern int DestroyGrayplot (sciPointObj * pthis); /* DESTROY */
extern int DestroyAxes (sciPointObj * pthis); /* DESTROY */
extern int DestroyFec (sciPointObj * pthis); /* DESTROY */
extern int DestroySegs (sciPointObj * pthis); /* DESTROY */
extern int DestroyAgregation (sciPointObj * pthis);

extern void DeleteObjs(int win); /* DESTROY */
extern int sciUnAgregation (sciPointObj * pobj); /* DESTROY */

extern int sciDelGraphicObj (sciPointObj * pthis); /* DESTROY */

extern int DestroyLabel (sciPointObj * pthis); /* DESTROY */

/* UNUSED : */

extern int sciDelLabelsMenu (sciPointObj * pthis);
extern int DestroyMenuContext (sciPointObj * pthis);
extern int DestroySciMenu (sciPointObj * pthis);


/* ADDED */

extern void delete_sgwin_entities(int win_num,int v_flag);


#endif /* __SCI_DESTROY__ */
