ZoomableView¶
-
class
guerilla.ZoomableView¶ Bases:
guerilla.WindowA zoomable layout
-
getzoompos()¶ Get the zoom and display origin of the ZoomableView
Returns: The current zoom and origin of the ZoomableView Return type: number,number,number
-
setzoompos(zoom, x, y)¶ Change the zoom and display origin of the ZoomableView
Parameters: - zoom (number) – the new zoom
- x (number) – the X coordinate of the left border of the ZoomableView
- y (number) – the Y coordinate of the top border of the ZoomableView
-
tozoomable(x, y)¶ Transform a couple of window coordinates to the ZoomableView internal coordinates
Parameters: - x (number) – The window X coordinate
- y (number) – The window Y coordinate
Returns: The input coordinates in ZoomableView space
Return type: number,number
-