Online Help for Chasys Draw IES: SDK - Layer Attachments - HOTS

SDK - Layer Attachments - HOTS

Using the HOTS meta-type

The HOTS attachment defines the hot-spot associated with the image as would be the case for a cursor or a pinned texture. This replaces image hot-spot mark-up and can be edited directly in the Layer Properties window in the user interface for Chasys Draw IES. The metadata consists of a host-defined structure of a fixed length:

#define META_HOTS_VERSION           1

struct meta_tag_HOTS
    unsigned short  version;        //HOTS version
    unsigned short  unused_1;       //unused, set to 0
    long            x;              //hotspot, x
    long            y;              //hotspot, y
    unsigned long   unused_2;       //unused, set to 0

The plug-in requests metadata of size sizeof(meta_tag_HOTS). The plug-in then proceeds to fill the structure with the hot-spot position and the version of the structure.