View

sfml.graphics.View
See theView companion trait
object View

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
View.type

Members list

Type members

Classlikes

object ctor

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
ctor.type

Value members

Concrete methods

def apply(): View

Default constructor.

Default constructor.

This constructor creates a default view of (0, 0, 1000, 1000)

Attributes

def apply(center: Vector2[Float], size: Vector2[Float]): View

Construct the view from its center and size.

Construct the view from its center and size.

Value parameters

center

Center of the zone to display

size

Size of zone to display

Attributes

def apply(rectangle: Rect[Float]): View

Construct the view from a rectangle.

Construct the view from a rectangle.

Value parameters

rectangle

Rectangle defining the zone to display

Attributes

Extensions

Extensions

extension (view: Immutable[View])
def center: Vector2[Float]
def copy(): View
def rotation: Float
def size: Vector2[Float]
def viewport: Rect[Float]