def __init__(self, rectShape=None): ShapeData.__init__(self); if (rectShape == None): self.setValue(RectI()); self.setX(0); self.setY(0); self.setWidth(0); self.setHeight(0); else: self.setValue(rectShape);
def rectangle(): o = RectI() populate_shape(o) o.x = rdouble(1.0) o.y = rdouble(2.0) o.width = rdouble(3.0) o.height = rdouble(4.0) o.id = rlong(2L) return o
def rectangle(): o = RectangleI() populate_shape(o) o.x = rdouble(1.0) o.y = rdouble(2.0) o.width = rdouble(3.0) o.height = rdouble(4.0) o.id = rlong(2L) return o
def rectangle(identity_transform): o = RectangleI() populate_shape(o, identity_transform) o.x = rdouble(1.0) o.y = rdouble(2.0) o.width = rdouble(3.0) o.height = rdouble(4.0) o.id = rlong(2) return o
def createBaseType(self): return RectI()