1: /* 2: Provides the calling sequences for all the basic PetscDraw routines. 3: */ 4: #include src/sys/src/draw/drawimpl.h 8: /*@ 9: PetscDrawLineGetWidth - Gets 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 interior viewport. 13: Not collective 15: Input Parameter: 16: . draw - the drawing context 18: Output Parameter: 19: . width - the width in user coordinates 21: Level: advanced 23: Notes: 24: Not currently implemented. 26: Concepts: line^width 28: .seealso: PetscDrawLineSetWidth() 29: @*/ 30: PetscErrorCode PetscDrawLineGetWidth(PetscDraw draw,PetscReal *width) 31: { 33: PetscTruth isdrawnull; 38: PetscTypeCompare((PetscObject)draw,PETSC_DRAW_NULL,&isdrawnull); 39: if (isdrawnull) return(0); 40: if (!draw->ops->linegetwidth) SETERRQ1(PETSC_ERR_SUP,"This draw object %s does not support getting line width",draw->type_name); 41: (*draw->ops->linegetwidth)(draw,width); 42: return(0); 43: }