Actual source code: dlinegw.c

  1: /*$Id: dlinegw.c,v 1.34 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:    PetscDrawLineGetWidth - Gets 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 interior viewport. 

 14:    Not collective

 16:    Input Parameter:
 17: .  draw - the drawing context

 19:    Output Parameter:
 20: .  width - the width in user coordinates

 22:    Level: advanced

 24:    Notes:
 25:    Not currently implemented.

 27:    Concepts: line^width

 29: .seealso:  PetscDrawLineSetWidth()
 30: @*/
 31: int PetscDrawLineGetWidth(PetscDraw draw,PetscReal *width)
 32: {
 33:   int        ierr;
 34:   PetscTruth isdrawnull;

 38:   PetscTypeCompare((PetscObject)draw,PETSC_DRAW_NULL,&isdrawnull);
 39:   if (isdrawnull) return(0);
 40:   if (!draw->ops->linegetwidth) SETERRQ(PETSC_ERR_SUP," ");
 41:   (*draw->ops->linegetwidth)(draw,width);
 42:   return(0);
 43: }