MGL_underScoreLocation

Returns the location to begin drawing an underscore for the font.

Declaration

void MGLAPI MGL_underScoreLocation(
    int *x,
    int *y,
    const char *str)

Prototype In

mgraph.h

Parameters

x

x coordinate to be passed to MGL_drawStrXY

y

y coordinate to be passed to MGL_drawStrXY

str

String to measure

 

Description

This function takes an (x,y) location that would normally be used to draw a string with MGL_drawStrXY, and adjusts the coordinates to begin at the under score location for the current font, in the current drawing attributes. Thus the entire character string can be underlined by drawing a line starting at the computed underscore location and extending for MGL_textWidth pixels in length.

See Also

MGL_underScoreLocation_W, MGL_drawStrXY, MGL_textWidth

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com