VDrawCenteredText
Name
VDrawCenteredText - draws a text in the center of the specified area.
Synopsis
VDrawCenteredText(win, gc, text, xloc, yloc, width, height)
Window win;
GC gc;
char *text;
int xloc, yloc, width, height;
Description
VDrawCenteredText draws a line of text in the center of the specified area.
The location and the dimension of the area is passed as arguments to
VDrawCenteredText.
Return Value
0 - work successfully.
283 - could not draw text in the specified area.
Parameters
win - the ID of the window to draw the text.
gc - the GC to be used to draw the same; if no GC is passed it is obtained
from the window ID.
xloc, yloc - the xloc,yloc of the box/button with respect to the window.
width, height - the width and height of the box/button with respect to the
window.
Side Effects
None.
Entry Conditions
VCreateColormap should be called earlier, else VDrawCenteredText prints an
error message to the standard error stream, produces a core dump file and
exits from the current process.
Related Functions
VDrawText,
VDisplayOverlayMessage,
VDisplayImageMessage,
VDisplayDialogMessage.