MCPcopy Create free account
hub / github.com/JacquesLucke/code_autocomplete / draw

Method draw

graphics.py:115–119  ·  view source on GitHub ↗
(self, position)

Source from the content-addressed store, hash-verified

113 self.font_id = 0
114
115 def draw(self, position):
116 lines = self.get_draw_lines()
117 for i, line in enumerate(lines):
118 line_start_position = (position[0], position[1] - i * self.line_height)
119 draw_text(line, line_start_position, size = self.text_size, color = self.color, font_id = self.font_id)
120
121 def get_draw_dimensions(self):
122 lines = self.get_draw_lines()

Callers 6

draw_operator_boxMethod · 0.95
draw_description_boxMethod · 0.95
draw_textFunction · 0.45

Calls 2

get_draw_linesMethod · 0.95
draw_textFunction · 0.85

Tested by

no test coverage detected