Actual source code: dpause.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:    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 PETSC_DLLEXPORT PetscDrawPause(PetscDraw draw)
     27: {
     31:   if (draw->ops->pause) {
     32:     (*draw->ops->pause)(draw);
     33:   }
     34:   return(0);
     35: }