29 #ifndef TOON_HOTSPOT_H 30 #define TOON_HOTSPOT_H 32 #include "toon/toon.h" 33 #include "toon/tools.h" 39 int16 getX1()
const {
return READ_LE_INT16(_data + 0); }
40 int16 getY1()
const {
return READ_LE_INT16(_data + 1); }
41 int16 getX2()
const {
return READ_LE_INT16(_data + 2); }
42 int16 getY2()
const {
return READ_LE_INT16(_data + 3); }
43 int16 getMode()
const {
return READ_LE_INT16(_data + 4); }
44 int16 getRef()
const {
return READ_LE_INT16(_data + 5); }
45 int16 getPriority()
const {
return READ_LE_INT16(_data + 7); }
46 int16 getType()
const {
return READ_LE_INT16(_data + 8); }
47 int16 getData(int32
id)
const {
return READ_LE_INT16(_data +
id); }
48 void setData(int32
id, int16 val) { WRITE_LE_UINT16(&_data[
id], val); }
60 int32
find(int16 x, int16 y);
61 int32 findBasedOnCorner(int16 x, int16 y);
63 int32 getCount()
const {
return _numItems; }
In find(In first, In last, const T &v)
Definition: algorithm.h:225