Lines Matching refs:Point

51 from point import Point
129 top left corner at Point(2.0 * unit, 2.0 * unit)"""
137 local_arc(top_left + Point(size.x + unit * 2.0, unit * 2.0), -0.5, 0.0)
139 local_arc(top_left + Point(size.x + unit * 2.0, size.y + unit * 2.0),
142 local_arc(top_left + Point(unit * 2.0, size.y + unit * 2.0), 0.5, 1.0)
173 def __init__(self, picChar, unit, topLeft, colour, size = Point(1,1)):
196 def __init__(self, picChar, unit, topLeft=Point(0,0),
198 size=Point(1,1)):
235 size = Point(*self.size.to_pair())
245 cr.translate(*(size - Point(1,1)).scale(0.5).to_pair())
247 translated_centre = Point(*cr.user_to_device(0.0, 0.0))
249 Point(*cr.user_to_device_distance(*size.to_pair()))
263 strip_step_base = Point(1.0,0.0)
264 block_step_base = Point(0.0,1.0)
266 strip_step_base = Point(0.0,1.0)
267 block_step_base = Point(1.0,0.0)
272 strip_centre = Point(0,0) - (strip_size *
311 text_point = Point(size.y, size.x).scale(0.5) * Point(-1, -1)
312 text_point += Point(max(0, size.y - width), 0)
313 text_point += Point(-text_comfort_space, -text_comfort_space)
316 text_point = size.scale(0.5) * Point(-1,-1)
317 text_point += Point(0.00, -text_comfort_space)
332 box_size = Point(box_size.y, box_size.x)
338 box(cr, Point(0,0), box_size)
340 open_bottom(cr, Point(0,0), box_size)
342 fifo(cr, Point(0,0), box_size)
361 size=Point(1,1)):
370 # cr.translate(*(self.size - Point(1,1)).scale(0.5).to_pair())
372 cr.translate(*(self.size - Point(1.0 + half_width,1.0)).scale(0.5).
378 blob_size = (Point(half_width,0.0) +
379 (self.size * Point(0.0,1.0 / num_colours)))
380 blob_step = Point(0.0,1.0) * blob_size
381 first_blob_centre = (Point(0.0,0.0) -
414 text_left = (centre + (Point(0.5,0.0) * blob_size) +
415 Point(0.0, height / 2.0))
423 size=Point(1.0,1.0), direc='right'):
431 cr.translate(*(self.size - Point(1,1)).scale(0.5).to_pair())