Actual source code: dtext.c
1: /*$Id: dtext.c,v 1.32 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: /*@C
8: PetscDrawString - PetscDraws text onto a drawable.
10: Not Collective
12: Input Parameters:
13: + draw - the drawing context
14: . xl - the coordinates of lower left corner of text
15: . yl - the coordinates of lower left corner of text
16: . cl - the color of the text
17: - text - the text to draw
19: Level: beginner
21: Concepts: drawing^string
22: Concepts: string^drawing
24: .seealso: PetscDrawStringVertical()
26: @*/
27: int PetscDrawString(PetscDraw draw,PetscReal xl,PetscReal yl,int cl,char *text)
28: {
29: int ierr ;
30: PetscTruth isnull;
34: PetscTypeCompare((PetscObject)draw,PETSC_DRAW_NULL,&isnull);
35: if (isnull) return(0);
36: (*draw->ops->string)(draw,xl,yl,cl,text);
37: return(0);
38: }