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: /*@ 8: PetscDrawLineGetWidth - Gets 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 interior viewport. 12: Not collective 14: Input Parameter: 15: . draw - the drawing context 17: Output Parameter: 18: . width - the width in user coordinates 20: Level: advanced 22: Notes: 23: Not currently implemented. 25: Concepts: line^width 27: .seealso: PetscDrawLineSetWidth() 28: @*/ 29: int PetscDrawLineGetWidth(PetscDraw draw,PetscReal *width) 30: { 31: int ierr; 32: PetscTruth isdrawnull; 36: PetscTypeCompare((PetscObject)draw,PETSC_DRAW_NULL,&isdrawnull); 37: if (isdrawnull) return(0); 38: if (!draw->ops->linegetwidth) SETERRQ(PETSC_ERR_SUP," "); 39: (*draw->ops->linegetwidth)(draw,width); 40: return(0); 41: }