#include <nnsys/g2d/g2d_TextCanvas.h>
NNSG2dTextRect NNS_G2dTextCanvasGetTextRect(
const NNSG2dTextCanvas* pTxn,
const NNSG2dChar* txt
);
| pTxn | [IN] Pointer to TextCanvas |
| txt | [IN] Pointer to text string |
Returns the width and height that the text string has when drawn
The NNSG2dTextRect struct definition follows:
typedef struct NNSG2dTextRect
{
int width; // Rectangle width
int height; // Rectangle height
}
NNSG2dTextRect;
Calculates the height and width that text string txt has when drawn.
NNS_G2dFontGetTextRect, NNS_G2dTextCanvasGetStringWidth, NNS_G2dTextCanvasGetTextWidth, NNS_G2dTextCanvasGetTextHeight
05/25/2005 Initial version.
CONFIDENTIAL