Actual source code: dpause.c

  1: /*$Id: dpause.c,v 1.28 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: #undef __FUNCT__  
  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: int PetscDrawPause(PetscDraw draw)
 27: {
 31:   if (draw->ops->pause) {
 32:     (*draw->ops->pause)(draw);
 33:   }
 34:   return(0);
 35: }