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: /*@
  8:    PetscDrawLineSetWidth - Sets the line width for future draws.  The width is
  9:    relative to the user coordinates of the window; 0.0 denotes the natural
 10:    width; 1.0 denotes the entire viewport. 

 12:    Not collective

 14:    Input Parameters:
 15: +  draw - the drawing context
 16: -  width - the width in user coordinates

 18:    Level: advanced

 20:    Concepts: line^width

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

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