MCPcopy Create free account
hub / github.com/BerkeleyAutomation/meshrender / on_resize

Method on_resize

meshrender/viewer.py:242–248  ·  view source on GitHub ↗

Resize the camera and trackball when the window is resized.

(self, width, height)

Source from the content-addressed store, hash-verified

240
241
242 def on_resize(self, width, height):
243 """Resize the camera and trackball when the window is resized.
244 """
245 self._size = (width, height)
246 self._camera.resize(width, height)
247 self._trackball.resize(self._size)
248 self.on_draw()
249
250
251 def on_mouse_press(self, x, y, buttons, modifiers):

Callers

nothing calls this directly

Calls 2

on_drawMethod · 0.95
resizeMethod · 0.45

Tested by

no test coverage detected