Permalink
Browse files

[DisplayObject] Stub transform setter

  • Loading branch information...
1 parent e1e6d14 commit da9c9ff1955f4e490aa4ef7eb512e1b46b251010 @aajanki aajanki committed Mar 7, 2013
Showing with 8 additions and 0 deletions.
  1. +7 −0 src/scripting/flash/display/DisplayObject.cpp
  2. +1 −0 src/scripting/flash/display/DisplayObject.h
@@ -161,6 +161,7 @@ void DisplayObject::sinit(Class_base* c)
c->setDeclaredMethodByQName("hitTestObject","",Class<IFunction>::getFunction(hitTestObject),NORMAL_METHOD,true);
c->setDeclaredMethodByQName("hitTestPoint","",Class<IFunction>::getFunction(hitTestPoint),NORMAL_METHOD,true);
c->setDeclaredMethodByQName("transform","",Class<IFunction>::getFunction(_getTransform),GETTER_METHOD,true);
+ c->setDeclaredMethodByQName("transform","",Class<IFunction>::getFunction(_setTransform),SETTER_METHOD,true);
REGISTER_GETTER_SETTER(c,accessibilityProperties);
REGISTER_GETTER_SETTER(c,cacheAsBitmap);
REGISTER_GETTER_SETTER(c,filters);
@@ -192,6 +193,12 @@ ASFUNCTIONBODY(DisplayObject,_getTransform)
return Class<Transform>::getInstanceS(_MR(th));
}
+ASFUNCTIONBODY(DisplayObject,_setTransform)
+{
+ LOG(LOG_NOT_IMPLEMENTED, "DisplayObject::transform is a stub");
+ return NULL;
+}
+
void DisplayObject::buildTraits(ASObject* o)
{
}
@@ -212,6 +212,7 @@ friend std::ostream& operator<<(std::ostream& s, const DisplayObject& r);
ASFUNCTION(_getMouseX);
ASFUNCTION(_getMouseY);
ASFUNCTION(_getTransform);
+ ASFUNCTION(_setTransform);
ASFUNCTION(localToGlobal);
ASFUNCTION(globalToLocal);
ASFUNCTION(hitTestObject);

0 comments on commit da9c9ff

Please sign in to comment.