RenderWindow.GetViewport Method

SFML.Net

RenderWindowGetViewport Method
Get the viewport of a view applied to this target

Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
public IntRect GetViewport(
	View view
)
Public Function GetViewport ( 
	view As View
) As IntRect
public:
virtual IntRect GetViewport(
	View^ view
) sealed
abstract GetViewport : 
        view : View -> IntRect 
override GetViewport : 
        view : View -> IntRect 

Parameters

view
Type: SFML.GraphicsView
Target view

Return Value

Type: IntRect
Viewport rectangle, expressed in pixels in the current target

Implements

RenderTargetGetViewport(View)
See Also