OrthographicSize class sealed Scene graph

How an OrthographicProjection sizes its view volume against the render target's aspect ratio. Sizes are full world-unit extents, not half extents.

Implementers

Constructors

OrthographicSize.contain(double width, double height)
Shows at least width by height world units, growing one axis to match the aspect ratio so the whole area stays visible.
const
factory
OrthographicSize.cover(double width, double height)
Shows at most width by height world units, cropping one axis to match the aspect ratio so the view is filled.
const
factory
OrthographicSize.height(double height)
Shows height world units vertically; the width follows the aspect ratio.
const
factory
OrthographicSize.pixelsPerUnit(double pixelsPerUnit)
Shows one world unit per pixelsPerUnit logical pixels of the view, so on-screen size stays constant as the view resizes (more of the world shows in a bigger view).
const
factory
OrthographicSize.stretch(double width, double height)
Shows exactly width by height world units, stretching the image when the aspect ratio differs.
const
factory
OrthographicSize.width(double width)
Shows width world units horizontally; the height follows the aspect ratio.
const
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
visibleSize(Size viewportSize) → Vector2
The visible (width, height) in world units for a view of viewportSize logical pixels.

Operators

operator ==(Object other) → bool
The equality operator.
inherited