SFML.Net
IntRect Structure |
IntRect is an utility class for manipulating 2D rectangles
with integer coordinates
Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)

The IntRect type exposes the following members.

Name | Description | |
---|---|---|
![]() | IntRect(Vector2i, Vector2i) |
Construct the rectangle from position and size
|
![]() | IntRect(Int32, Int32, Int32, Int32) |
Construct the rectangle from its coordinates
|

Name | Description | |
---|---|---|
![]() | Contains |
Check if a point is inside the rectangle's area
|
![]() | Equals(Object) |
Compare rectangle and object and checks if they are equal
(Overrides ValueTypeEquals(Object).) |
![]() | Equals(IntRect) |
Compare two rectangles and checks if they are equal
|
![]() | GetHashCode |
Provide a integer describing the object
(Overrides ValueTypeGetHashCode.) |
![]() | GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
![]() | Intersects(IntRect) |
Check intersection between two rectangles
|
![]() | Intersects(IntRect, IntRect) |
Check intersection between two rectangles
|
![]() | ToString |
Provide a string describing the object
(Overrides ValueTypeToString.) |

Name | Description | |
---|---|---|
![]() ![]() | Equality |
Operator == overload ; check rect equality
|
![]() ![]() | (IntRect to FloatRect) |
Explicit casting to another rectangle type
|
![]() ![]() | Inequality |
Operator != overload ; check rect inequality
|

Name | Description | |
---|---|---|
![]() | Height | Height of the rectangle |
![]() | Left | Left coordinate of the rectangle |
![]() | Top | Top coordinate of the rectangle |
![]() | Width | Width of the rectangle |
