Overlay image element.
typedef struct ImageElem { uint sig; byte wobj[96]; } ImageElem;
Get frame dimensions.
API S2i ImageElemGetFrameDims(ImageElem *imageElem);
imageElem: Image element.
returns: Frame dimensions.
Get element rectangle.
API B2i ImageElemGetRect(ImageElem *imageElem, B2i pRect);
imageElem: Image element
pRect: Parent rect.
returns: Boundary rect.
Get meta position.
API MetaPos ImageElemGetMetaPos(ImageElem *imageElem);
colorElem: Color element.
returns: Meta position.
Draw image element.
API void ImageElemDraw(ImageElem *imageElem, B2i pRect, Color stateColor);
imageElem: Image element.
pRect: Parent uiEvents rect.
stateColor: State color.
Show/hide element.
API void ImageElemShow(ImageElem *imageElem, bool show);
imageElem: Image element.
show: True to show, false to hide.
Set frame.
API void ImageElemSetFrame(ImageElem *imageElem, uint f);
imageElem: Image element.
f: Frame number.
Set frame color.
API void ImageElemSetColor(ImageElem *imageElem, Color color);
imageElem: Image element.
color: Color.
Set meta position.
API void ImageElemSetMetaPos(ImageElem *imageElem, MetaPos metaPos);
imageElem: Image element.
metaPos: Meta position.
Initialize image element.
API void ImageElemInit(ImageElem *imageElem, wcstr name, uint z, B2i baseFrame, uint cols, uint frameCount);
imageElem: Image element.
name: Name of image asset.
z: Z order.
baseFrame: Rect of first animation frame in image.
cols: Number of animation frame columns.
frameCount: Total number of frames.
Release image element.
API void ImageElemRel(ImageElem *imageElem);
imageElem: Image element.