68 |
self.x = xywh[0] + .5 * xywh[2] |
self.x = xywh[0] + .5 * xywh[2] |
69 |
self.y = xywh[1] + .5 * xywh[3] |
self.y = xywh[1] + .5 * xywh[3] |
70 |
def renderMain(self, vs, into): |
def renderMain(self, vs, into): |
71 |
self.layout.place(vs, into, 1, 200) |
|
72 |
|
# XXX This is not right: the distortion |
73 |
|
# should be done here. |
74 |
|
unit = vs.unitSqCS(into, "UNIT") |
75 |
|
scaled = vs.scaleCS(unit, "SCALED", |
76 |
|
1.0 / self.layout.w, 1.0 / self.layout.h) |
77 |
|
self.layout.place(vs, scaled, 1, 200) |
78 |
|
|
79 |
matches = (self.nodetype.scrollBlockLinker |
matches = (self.nodetype.scrollBlockLinker |
80 |
.enfiladeOverlap.getMatches(self.enf)) |
.enfiladeOverlap.getMatches(self.enf)) |