Actual source code: dpause.c

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

  8: /*@
  9:    PetscDrawPause - Waits n seconds or until user input, depending on input 
 10:                to PetscDrawSetPause().

 12:    Collective operation on PetscDraw object.

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

 17:    Level: beginner

 19:    Concepts: waiting^for user input
 20:    Concepts: drawing^waiting
 21:    Concepts: graphics^waiting

 23: .seealso: PetscDrawSetPause(), PetscDrawGetPause()
 24: @*/
 25: PetscErrorCode PetscDrawPause(PetscDraw draw)
 26: {
 30:   if (draw->ops->pause) {
 31:     (*draw->ops->pause)(draw);
 32:   }
 33:   return(0);
 34: }