Actual source code: dlinew.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:    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: PetscErrorCode PETSC_DLLEXPORT PetscDrawLineSetWidth(PetscDraw draw,PetscReal width)
     27: {
     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: }