sf.View Class Reference
This class defines a view (position, size, etc.) ; you can consider it as a 2D camera.
Methods
GetCenter()
Get the center of the view.
GetHalfSize()
Get the half-size of the view.
GetRect()
Get the bounding rectangle of the view.
Move(OffsetX, OffsetY)
Move the view.
OffsetX : Offset to move the view, on X axis
OffsetY : Offset to move the view, on Y axis
SetCenter(X, Y)
Change the center of the view.
SetFromRect(ViewRect)
Rebuild the view from a rectangle.
ViewRect : Rectangle defining the position and size of the view.
SetHalfSize(HalfWidth, HalfHeight)
Change the half-size of the view.
Zoom(Factor)
Resize the view rectangle to simulate a zoom / unzoom effect.