Actual source code: dpause.c

petsc-3.3-p7 2013-05-11
  2: /*
  3:        Provides the calling sequences for all the basic PetscDraw routines.
  4: */
  5: #include <../src/sys/draw/drawimpl.h>  /*I "petscdraw.h" I*/

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

 13:    Collective operation on PetscDraw object.

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

 18:    Level: beginner

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

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