示例#1
0
 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);
示例#2
0
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
示例#3
0
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
示例#4
0
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
示例#5
0
 def createBaseType(self):
     return RectI()