Actual source code: dclear.c

      1: #define PETSC_DLL
      2: /*
      3:        Provides the calling sequences for all the basic PetscDraw routines.
      4: */
     5:  #include src/sys/src/draw/drawimpl.h

      9: /*@
     10:    PetscDrawClear - Clears graphical output.

     12:    Not collective (Use PetscDrawSynchronizedClear() for collective)

     14:    Input Parameter:
     15: .  draw - the drawing context

     17:    Level: beginner

     19:    Concepts: clear^window

     21: .seealso: PetscDrawBOP(), PetscDrawEOP(), PetscDrawSynchronizedClear()
     22: @*/
     23: PetscErrorCode PETSC_DLLEXPORT PetscDrawClear(PetscDraw draw)
     24: {

     29:   if (draw->ops->clear) {
     30:     (*draw->ops->clear)(draw);
     31:   }
     32:   return(0);
     33: }

     37: /*@
     38:    PetscDrawBOP - Begins a new page or frame on the selected graphical device.

     40:    Collective on PetscDraw

     42:    Input Parameter:
     43: .  draw - the drawing context

     45:    Level: advanced

     47: .seealso: PetscDrawEOP(), PetscDrawClear()
     48: @*/
     49: PetscErrorCode PETSC_DLLEXPORT PetscDrawBOP(PetscDraw draw)
     50: {

     55:   if (draw->ops->beginpage) {
     56:     (*draw->ops->beginpage)(draw);
     57:   }
     58:   return(0);
     59: }
     62: /*@
     63:    PetscDrawEOP - Ends a page or frame on the selected graphical device.

     65:    Collective on PetscDraw

     67:    Input Parameter:
     68: .  draw - the drawing context

     70:    Level: advanced

     72: .seealso: PetscDrawBOP(), PetscDrawClear()
     73: @*/
     74: PetscErrorCode PETSC_DLLEXPORT PetscDrawEOP(PetscDraw draw)
     75: {

     80:   if (draw->ops->endpage) {
     81:      (*draw->ops->endpage)(draw);
     82:   }
     83:   return(0);
     84: }