Rect

sfml.graphics.Rect
See theRect companion trait
object Rect

Attributes

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

Members list

Type members

Classlikes

object ctor

Attributes

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

Value members

Concrete methods

inline def apply[T <: Float | Int](rectLeft: T, rectTop: T, rectWidth: T, rectHeight: T): Rect[T]
inline def apply[T <: Float | Int](position: Vector2[T], size: Vector2[T]): Rect[T]
inline def apply[T <: Float | Int]()(using Numeric[T]): Rect[T]
transparent inline def unapply[T <: Float | Int](rect: Rect[T]): (Float, Float, Float, Float) | (Int, Int, Int, Int)

Givens

Givens

inline given rectFloatToRectInt: rectFloatToRectInt
inline given rectIntToRectFloat: rectIntToRectFloat
inline given tupleToImmutableRectFloat[T : Numeric]: tupleToImmutableRectFloat[T]
inline given tupleToImmutableRectInt[T : Numeric]: tupleToImmutableRectInt[T]
inline given tupleToRectFloat[T : Numeric]: tupleToRectFloat[T]
inline given tupleToRectInt[T : Numeric]: tupleToRectInt[T]

Extensions

Extensions

extension [T <: Float | Int](rect: Immutable[Rect[T]])
inline def contains(x: T, y: T): Boolean
inline def contains(point: Vector2[T]): Boolean
transparent inline def height: Float | Int
inline def intersects(rectangle: Rect[T]): Option[Rect[Float]] | Option[Rect[Int]]
transparent inline def left: Float | Int
transparent inline def top: Float | Int
transparent inline def width: Float | Int