MCPcopy Index your code
hub / github.com/JacquesLucke/code_autocomplete / get_inset_rectangle

Method get_inset_rectangle

graphics.py:99–100  ·  view source on GitHub ↗
(self, border)

Source from the content-addressed store, hash-verified

97 return self.left <= x <= self.right and self.top >= y >= self.bottom
98
99 def get_inset_rectangle(self, border):
100 return Rectangle(self.left + border, self.top - border, self.width - 2*border, self.height - 2*border)
101
102 def __repr__(self):
103 return "(Left: "+str(self.left)+", Right: "+str(self.right)+", Top: "+str(self.top)+", Bottom: "+str(self.bottom)+")"

Callers 1

draw_operator_boxMethod · 0.95

Calls 1

RectangleClass · 0.85

Tested by

no test coverage detected