ScreenRect class final

A rectangle of a render target, in pixels.

One type for both the viewport and the scissor, because every site in this engine sets them to the same rectangle — with one exception, the composite's overlay loop, which re-aims the viewport per view inside a scissor that already covers the whole frame. That exception is why they are still two methods and not one.

Constructors

ScreenRect({int x = 0, int y = 0, required int width, required int height})
const
ScreenRect.of(TextureHandle texture)
The whole of a texture.
factory

Properties

hashCode → int
The hash code for this object.
no setteroverride
height → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width → int
final
x → int
final
y → int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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