Actual source code: dclear.c

  1: /*$Id: dclear.c,v 1.33 2001/03/23 23:20:08 balay Exp $*/
  2: /*
  3:        Provides the calling sequences for all the basic PetscDraw routines.
  4: */
 5:  #include src/sys/src/draw/drawimpl.h

  7: /*@
  8:    PetscDrawClear - Clears graphical output.

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

 12:    Input Parameter:
 13: .  draw - the drawing context

 15:    Level: beginner

 17:    Concepts: clear^window

 19: .seealso: PetscDrawBOP(), PetscDrawEOP(), PetscDrawSynchronizedClear()
 20: @*/
 21: int PetscDrawClear(PetscDraw draw)
 22: {

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

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

 36:    Collective on PetscDraw

 38:    Input Parameter:
 39: .  draw - the drawing context

 41:    Level: advanced

 43: .seealso: PetscDrawEOP(), PetscDrawClear()
 44: @*/
 45: int PetscDrawBOP(PetscDraw draw)
 46: {

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

 59:    Collective on PetscDraw

 61:    Input Parameter:
 62: .  draw - the drawing context

 64:    Level: advanced

 66: .seealso: PetscDrawBOP(), PetscDrawClear()
 67: @*/
 68: int PetscDrawEOP(PetscDraw draw)
 69: {

 74:   if (draw->ops->endpage) {
 75:      (*draw->ops->endpage)(draw);
 76:   }
 77:   return(0);
 78: }