ProcUnit::AddFigureData
Adds a figure
int AddFigureData(
int figureNo,
FIG_TYPE *type,
void *data
);
Parameters
figureNo
|
Figure number to be added
|
*type
|
Pointer to the memory space for storing figure data to be added
|
*data
|
Pointer to the memory space for storing figure information to be added
|
Return Value
Returns 0 when the figure is successfully added.
Otherwise returns a non-zero value.
Description
Adds the specified figure to the figure of the specified number.
If a figure has been already added and you execute this method, the specified figure is added after the existing figure.
Example
int Sample::AssignProc(ProcUnit *ptrProcUnit)
{
FIG_HEADER fig;
ptrProcUnit->SetFigureType(0, T_BOX);
FIG_TYPE type;
FIG_BOX box;
type.type = T_BOX;
type.mode = DRAW_OR;
box.x1 = 100;
box.y1 = 100;
box.x2 = 200;
box.y2 = 200;
// Add a figure
ptrProcUnit->AddFigureData(figureNo, &type, &box);
// Add a figure
}