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
object rectFloatToRectInt extends Conversion[Rect[Float], Rect[Int]]

Attributes

Supertypes
class Conversion[Rect[Float], Rect[Int]]
trait Rect[Float] => Rect[Int]
class Object
trait Matchable
class Any
Self type
object rectIntToRectFloat extends Conversion[Rect[Int], Rect[Float]]

Attributes

Supertypes
class Conversion[Rect[Int], Rect[Float]]
trait Rect[Int] => Rect[Float]
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

inline def apply[T <: Float | Int]()(using Numeric[T])(using ClassTag[T]): Rect[T]
inline def apply[T <: Float | Int](position: Vector2[T], size: Vector2[T])(using ClassTag[T]): Rect[T]

Givens

Givens

given tupleToImmutableRectFloat[T : Numeric]: tupleToImmutableRectFloat[T]
given tupleToImmutableRectInt[T : Numeric]: tupleToImmutableRectInt[T]
given tupleToRectFloat[T : Numeric]: tupleToRectFloat[T]
given tupleToRectInt[T : Numeric]: tupleToRectInt[T]

Extensions

Extensions

extension [T <: Float | Int](rect: Immutable[Rect[T]])
transparent inline def center: Vector2[Float] | Vector2[Int]
inline def contains(point: Immutable[Vector2[T]]): Boolean
transparent inline def findIntersection(rectangle: Immutable[Rect[T]]): Option[Rect[Float]] | Option[Rect[Int]]
transparent inline def position: Vector2[Float] | Vector2[Int]
transparent inline def size: Vector2[Float] | Vector2[Int]