func init // adds using namespace sys.add_use('System.Drawing') // initialize instance params = '' + d("x", 107, 0) + ', ' + d("y", 107, 0) sys.add_object(this.codename, 'PointF', params) // makes implementation methods for properties sys._prop_init('IsEmpty', 1, 0, 104) sys._prop_init('.X', 1, 1, 107) sys._prop_init('.Y', 1, 1, 107) // makes implementation of methods as properties sys._mtd_as_prop_init('GetHashCode()') sys._mtd_as_prop_init('ToString()') sys._mtd_as_prop_init('PointF') end func doConstructor(data) blk.println(this.codename, ' = new PointF(', d("x", 107, data), ', ', d("y", 107, data), ');') end func doPoint(data) blk.println(this.codename, ' = ', d("pt"), ';') end func Empty return('PointF.Empty') end func doAdd(data) if(sys.is_linked(3)) blk.println(this.codename, ' = PointF.Add(', d("pt"), ', ', d("sz"), ');') event("onAdd", this.codename) else event("onAdd", 'PointF.Add(' + d("pt") + ', ' + d("sz") + ')') end end func doEquals(data) if(linked("onEquals")) event("onEquals", this.codename + '.Equals(' + d("obj") + ')') else blk.println(this.codename, '.Equals(', d("obj"), ');') end end func doSubtract(data) if(sys.is_linked(3)) blk.println(this.codename, ' = PointF.Subtract(', d("pt"), ', ', d("sz"), ');') event("onSubtract", this.codename) else event("onSubtract", 'PointF.Subtract(' + d("pt") + ', ' + d("sz") + ')') end end