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

Method get_draw_dimensions

graphics.py:121–127  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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()
123 width = 0
124 for line in lines:
125 width = max(width, self.get_text_width(line))
126 height = len(lines) * self.line_height
127 return width, height
128
129 def get_draw_lines(self):
130 text_lines = self.get_wrapped_lines()

Callers 5

draw_operator_boxMethod · 0.95
draw_description_boxMethod · 0.95

Calls 2

get_draw_linesMethod · 0.95
get_text_widthMethod · 0.95

Tested by

no test coverage detected