Actual source code: dlinew.c

  1: /*
  2:        Provides the calling sequences for all the basic PetscDraw routines.
  3: */
 4:  #include src/sys/src/draw/drawimpl.h

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

 13:    Not collective

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

 19:    Level: advanced

 21:    Concepts: line^width

 23: .seealso:  PetscDrawLineGetWidth()
 24: @*/
 25: PetscErrorCode PetscDrawLineSetWidth(PetscDraw draw,PetscReal width)
 26: {
 28:   PetscTruth isdrawnull;

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