Actual source code: dlinew.c

  1: /*$Id: dlinew.c,v 1.32 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:    PetscDrawLineSetWidth - Sets the line width for future draws.  The width is
 11:    relative to the user coordinates of the window; 0.0 denotes the natural
 12:    width; 1.0 denotes the entire viewport. 

 14:    Not collective

 16:    Input Parameters:
 17: +  draw - the drawing context
 18: -  width - the width in user coordinates

 20:    Level: advanced

 22:    Concepts: line^width

 24: .seealso:  PetscDrawLineGetWidth()
 25: @*/
 26: int PetscDrawLineSetWidth(PetscDraw draw,PetscReal width)
 27: {
 28:   int        ierr;
 29:   PetscTruth isdrawnull;

 33:   PetscTypeCompare((PetscObject)draw,PETSC_DRAW_NULL,&isdrawnull);
 34:   if (isdrawnull) return(0);
 35:   (*draw->ops->linesetwidth)(draw,width);
 36:   return(0);
 37: }