Actual source code: dgcoor.c
1: /*$Id: dgcoor.c,v 1.29 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" /*I "petscdraw.h" I*/
7: /*@
8: PetscDrawGetCoordinates - Gets the application coordinates of the corners of
9: the window (or page).
11: Not Collective
13: Input Parameter:
14: . draw - the drawing object
16: Level: advanced
18: Ouput Parameters:
19: . xl,yl,xr,yr - the coordinates of the lower left corner and upper
20: right corner of the drawing region.
22: Concepts: drawing^coordinates
23: Concepts: graphics^coordinates
25: .seealso: PetscDrawSetCoordinates()
27: @*/
28: int PetscDrawGetCoordinates(PetscDraw draw,PetscReal *xl,PetscReal *yl,PetscReal *xr,PetscReal *yr)
29: {
36: *xl = draw->coor_xl; *yl = draw->coor_yl;
37: *xr = draw->coor_xr; *yr = draw->coor_yr;
38: return(0);
39: }