AttributeBinding.js 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. function AttributeBinding() {
  2. if(arguments[0] != "__skip_ptr__") {
  3. this.__ptr = Polycode.AttributeBinding()
  4. }
  5. Object.defineProperties(this, {
  6. 'name': { enumerable: true, configurable: true, get: AttributeBinding.prototype.__get_name, set: AttributeBinding.prototype.__set_name},
  7. 'enabled': { enumerable: true, configurable: true, get: AttributeBinding.prototype.__get_enabled, set: AttributeBinding.prototype.__set_enabled}
  8. })
  9. }
  10. AttributeBinding.prototype.__get_name = function() {
  11. return Polycode.AttributeBinding__get_name(this.__ptr)
  12. }
  13. AttributeBinding.prototype.__set_name = function(val) {
  14. Polycode.AttributeBinding__set_name(this.__ptr, val)
  15. }
  16. AttributeBinding.prototype.__get_enabled = function() {
  17. return Polycode.AttributeBinding__get_enabled(this.__ptr)
  18. }
  19. AttributeBinding.prototype.__set_enabled = function(val) {
  20. Polycode.AttributeBinding__set_enabled(this.__ptr, val)
  21. }
  22. Duktape.fin(AttributeBinding.prototype, function (x) {
  23. if (x === AttributeBinding.prototype) {
  24. return;
  25. }
  26. Polycode.AttributeBinding__delete(x.__ptr)
  27. })