XBOOL XXObjectRectangle::SysGetMember(int id, XSWFCONTEXT *pCnt,XXVar &var) { switch(id) { case _SYSID(bottom): var=top+height;return XTRUE; case _SYSID(bottomRight): { XXObjectPoint*pt=m_pRoot->m_pGlobal->CreatePoint(); if(pt) { pt->xPos=left+width; pt->yPos=top+height; var=pt; } } return XTRUE; case _SYSID(height): var=height;return XTRUE; case _SYSID(left): var=left;return XTRUE; case _SYSID(right): var=left+width;return XTRUE; case _SYSID(size): { XXObjectPoint*pt=m_pRoot->m_pGlobal->CreatePoint(); if(pt) { pt->xPos=width; pt->yPos=height; var=pt; } }return XTRUE; case _SYSID(top): var=top;return XTRUE; case _SYSID(topLeft): { XXObjectPoint*pt=m_pRoot->m_pGlobal->CreatePoint(); if(pt) { pt->xPos=left; pt->yPos=top; var=pt; } }return XTRUE; case _SYSID(width): var=width;return XTRUE; case _SYSID(x): var=left;return XTRUE; case _SYSID(y): var=top;return XTRUE; case _SYSID(clone): case _SYSID(contains)://CONTAINS); case _SYSID(containsPoint): case _SYSID(containsRectangle): case _SYSID(equals): case _SYSID(inflate): case _SYSID(inflatePoint): case _SYSID(intersection): case _SYSID(intersects): case _SYSID(isEmpty): case _SYSID(offset): case _SYSID(offsetPoint): case _SYSID(setEmpty): case _SYSID(union): var=this; var.ToFunction(id); return XTRUE; } return XXObject::SysGetMember(id,pCnt,var);; }
JSValue::operator JSFunction() const { return ToFunction(); }