Actual source code: dlinew.c

petsc-3.5.1 2014-08-06
Report Typos and Errors
  2: /*
  3:        Provides the calling sequences for all the basic PetscDraw routines.
  4: */
  5: #include <petsc-private/drawimpl.h>  /*I "petscdraw.h" I*/

  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  PetscDrawLineSetWidth(PetscDraw draw,PetscReal width)
 27: {
 29:   PetscBool      isdrawnull;

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