Actual source code: dcoor.c
1: /*
2: Provides the calling sequences for all the basic PetscDraw routines.
3: */
4: #include src/sys/src/draw/drawimpl.h
8: /*@
9: PetscDrawSetCoordinates - Sets the application coordinates of the corners of
10: the window (or page).
12: Not collective
14: Input Parameters:
15: + draw - the drawing object
16: - xl,yl,xr,yr - the coordinates of the lower left corner and upper
17: right corner of the drawing region.
19: Level: advanced
21: Concepts: drawing^coordinates
22: Concepts: graphics^coordinates
24: .seealso: PetscDrawGetCoordinates()
26: @*/
27: PetscErrorCode PetscDrawSetCoordinates(PetscDraw draw,PetscReal xl,PetscReal yl,PetscReal xr,PetscReal yr)
28: {
33: draw->coor_xl = xl; draw->coor_yl = yl;
34: draw->coor_xr = xr; draw->coor_yr = yr;
35: if (draw->ops->setcoordinates) {
36: (*draw->ops->setcoordinates)(draw,xl,yl,xr,yr);
37: }
38: return(0);
39: }