#include <nnsys/g2d/g2d_TextCanvas.h>
typedef struct NNSG2dTagCallbackInfo
{
NNSG2dTextCanvas txn;
const NNSG2dChar* str;
int x;
int y;
int clr;
void* cbParam;
}
NNSG2dTagCallbackInfo;
This is the drawing information of NNS_G2dTextCanvasDrawTaggedText
that gets passed to NNSG2dTagCallback
. You can control the text-character drawing done by NNS_G2dTextCanvasDrawTaggedText
by rewriting this structure.
txn |
The TextCanvas being used for drawing. This is simply a shallow copy of the TextCanvas indicated in the first argument of NNS_G2dTextCanvasDrawTaggedText . Thus, even if you alter TextCanvas here, the TextCanvas that is indicated in the first argument of NNS_G2dTextCanvasDrawTaggedText will not get changed.
|
str |
The pointer to the text character being processed. This refers to the next character after the character that gets passed as the first agument of NNSG2dTagCallback .
|
x | The drawing position of the next text character (in the CharCanvas coordinate system). |
y | The drawing position of the next text character (in the CharCanvas coordinate system). |
clr | The color No. being used for drawing. |
cbParam |
User data. This value gets passed to the seventh argument of NNS_G2dTextCanvasDrawTaggedText .
|
NNSG2dTagCallback,
NNS_G2dTextCanvasDrawTaggedText
2005/05/25 Initial version.
CONFIDENTIAL