Graphics (MC_GRP)#

Display information, frame buffers, drawing contexts, images, fonts, and repaint operations.

This WIPI-C 1.2.1 family contains 39 cataloged APIs; 4 currently have reviewed or draft semantic notes.

Symbol

Prototype

Documentation

MC_grpGetImageProperty

M_Int32 MC_grpGetImageProperty(MC_GrpImage img, M_Int32 index)

cataloged

MC_grpGetImageFrameBuffer

MC_GrpFrameBuffer MC_grpGetImageFrameBuffer(MC_GrpImage img)

cataloged

MC_grpGetScreenFrameBuffer

MC_GrpFrameBuffer MC_grpGetScreenFrameBuffer(M_Int32 i)

reviewed

MC_grpDestroyOffScreenFrameBuffer

void MC_grpDestroyOffScreenFrameBuffer(MC_GrpFrameBuffer fb)

cataloged

MC_grpCreateOffScreenFrameBuffer

MC_GrpFrameBuffer MC_grpCreateOffScreenFrameBuffer(M_Int32 w, M_Int32 h)

cataloged

MC_grpInitContext

void MC_grpInitContext(MC_GrpContext *pgc)

reviewed

MC_grpSetContext

void MC_grpSetContext(MC_GrpContext *pgc, M_Int32 index, void *pv)

cataloged

MC_grpGetContext

void MC_grpGetContext(MC_GrpContext *pgc, M_Int32 index, void *pv)

cataloged

MC_grpPutPixel

void MC_grpPutPixel(MC_GrpFrameBuffer dst, M_Int32 x, M_Int32 y, MC_GrpContext *pgc)

cataloged

MC_grpDrawLine

void MC_grpDrawLine(MC_GrpFrameBuffer dst, M_Int32 x1, M_Int32 y1, M_Int32 x2, M_Int32 y2, MC_GrpContext *pgc)

cataloged

MC_grpDrawRect

void MC_grpDrawRect(MC_GrpFrameBuffer dst, M_Int32 x, M_Int32 y, M_Int32 w, M_Int32 h, MC_GrpContext *pgc)

cataloged

MC_grpFillRect

void MC_grpFillRect(MC_GrpFrameBuffer dst, M_Int32 x, M_Int32 y, M_Int32 w, M_Int32 h, MC_GrpContext *pgc)

cataloged

MC_grpCopyFrameBuffer

void MC_grpCopyFrameBuffer(MC_GrpFrameBuffer dst, M_Int32 dx, M_Int32 dy, M_Int32 w, M_Int32 h, MC_GrpFrameBuffer src, M_Int32 sx, M_Int32 sy, MC_GrpContext *pgc)

cataloged

MC_grpDrawImage

void MC_grpDrawImage(MC_GrpFrameBuffer dst, M_Int32 dx, M_Int32 dy, M_Int32 w, M_Int32 h, MC_GrpImage src, M_Int32 sx, M_Int32 sy, MC_GrpContext *pgc)

cataloged

MC_grpCopyArea

void MC_grpCopyArea(MC_GrpFrameBuffer dst, M_Int32 dx, M_Int32 dy, M_Int32 w, M_Int32 h, M_Int32 x, M_Int32 y, MC_GrpContext *pgc)

cataloged

MC_grpDrawArc

void MC_grpDrawArc(MC_GrpFrameBuffer dst, M_Int32 x, M_Int32 y, M_Int32 w, M_Int32 h, M_Int32 s, M_Int32 e, MC_GrpContext *pgc)

cataloged

MC_grpFillArc

void MC_grpFillArc(MC_GrpFrameBuffer dst, M_Int32 x, M_Int32 y, M_Int32 w, M_Int32 h, M_Int32 s, M_Int32 e, MC_GrpContext *pgc)

cataloged

MC_grpDrawString

void MC_grpDrawString(MC_GrpFrameBuffer dst, M_Int32 x, M_Int32 y, const M_Char *str, M_Int32 len, MC_GrpContext *pgc)

cataloged

MC_grpDrawUnicodeString

void MC_grpDrawUnicodeString(MC_GrpFrameBuffer dst, M_Int32 x, M_Int32 y, const M_UCode *str, M_Int32 len, MC_GrpContext *pgc)

cataloged

MC_grpGetRGBPixels

void MC_grpGetRGBPixels(MC_GrpFrameBuffer dst, M_Int32 x, M_Int32 y, M_Int32 w, M_Int32 h, M_Uint32 *pd, M_Int32 ipl)

cataloged

MC_grpSetRGBPixels

void MC_grpSetRGBPixels(MC_GrpFrameBuffer dst, M_Int32 x, M_Int32 y, M_Int32 w, M_Int32 h, const M_Uint32 *psrc, M_Int32 ibpl, MC_GrpContext *pgc)

cataloged

MC_grpFlushLcd

void MC_grpFlushLcd(M_Int32 i, MC_GrpFrameBuffer frm, M_Int32 x, M_Int32 y, M_Int32 w, M_Int32 h)

reviewed

MC_grpGetPixelFromRGB

M_Int32 MC_grpGetPixelFromRGB(M_Int32 r, M_Int32 g, M_Int32 b)

cataloged

MC_grpGetDisplayInfo

M_Int32 MC_grpGetDisplayInfo(M_Int32 i, MC_GrpDisplayInfo *pi)

reviewed

MC_grpRepaint

void MC_grpRepaint(M_Int32 lcd, M_Int32 x, M_Int32 y, M_Int32 w, M_Int32 h)

cataloged

MC_grpGetFont

M_Int32 MC_grpGetFont(M_Int32 face, M_Int32 size, M_Int32 style)

cataloged

MC_grpGetFontHeight

M_Int32 MC_grpGetFontHeight(M_Int32 font)

cataloged

MC_grpGetFontAscent

M_Int32 MC_grpGetFontAscent(M_Int32 font)

cataloged

MC_grpGetFontDescent

M_Int32 MC_grpGetFontDescent(M_Int32 font)

cataloged

MC_grpGetStringWidth

M_Int32 MC_grpGetStringWidth(M_Int32 font, const M_Uint8 *str, M_Int32 len)

cataloged

MC_grpGetUnicodeStringWidth

M_Int32 MC_grpGetUnicodeStringWidth(M_Int32 font, const M_UCode *str, M_Int32 len)

cataloged

MC_grpCreateImage

M_Int32 MC_grpCreateImage(MC_GrpImage *newImg, M_Uint32 bufID, M_Int32 off, M_Int32 len)

cataloged

MC_grpDestroyImage

void MC_grpDestroyImage(MC_GrpImage img)

cataloged

MC_grpDecodeNextImage

M_Int32 MC_grpDecodeNextImage(MC_GrpImage dst)

cataloged

MC_grpEncodeImage

M_Int16 MC_grpEncodeImage(MC_GrpFrameBuffer src, M_Int32 x, M_Int32 y, M_Int32 w, M_Int32 h, M_Int32 *len)

cataloged

MC_grpPostEvent

M_Int32 MC_grpPostEvent(M_Int32 id, M_Int32 type, M_Int32 param1, M_Int32 param2)

cataloged

MC_grpDrawPolygon

void MC_grpDrawPolygon(MC_GrpFrameBuffer dst, M_Int32 *xPoints, M_Int32 *yPoints, M_Int32 nPoints, MC_GrpContext *pgc)

cataloged

MC_grpDrawFillPolygon

void MC_grpDrawFillPolygon(MC_GrpFrameBuffer dst, M_Int32 *xPoints, M_Int32 *yPoints, M_Int32 nPoints, MC_GrpContext *pgc)

cataloged

MC_grpGetRGBFromPixel

M_Int32 MC_grpGetRGBFromPixel(M_Int32 pixel, M_Int32 *r, M_Int32 *g, M_Int32 *b)

cataloged