Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Microsoft.Xna.Framework.Rectangle Struct Reference

Public Member Functions

 Rectangle (int x, int y, int width, int height)
 
void Offset (Point amount)
 
void Offset (int offsetX, int offsetY)
 
void Inflate (int horizontalAmount, int verticalAmount)
 
bool Contains (int x, int y)
 
bool Contains (Point value)
 
void Contains (ref Point value, out bool result)
 
bool Contains (Rectangle value)
 
void Contains (ref Rectangle value, out bool result)
 
bool Intersects (Rectangle value)
 
void Intersects (ref Rectangle value, out bool result)
 
bool Equals (Rectangle other)
 
override bool Equals (object obj)
 
override string ToString ()
 
override int GetHashCode ()
 
bool Equals (T? other)
 

Static Public Member Functions

static Rectangle Intersect (Rectangle value1, Rectangle value2)
 
static void Intersect (ref Rectangle value1, ref Rectangle value2, out Rectangle result)
 
static Rectangle Union (Rectangle value1, Rectangle value2)
 
static void Union (ref Rectangle value1, ref Rectangle value2, out Rectangle result)
 
static bool operator== (Rectangle a, Rectangle b)
 
static bool operator!= (Rectangle a, Rectangle b)
 

Public Attributes

int X
 
int Y
 
int Width
 
int Height
 

Properties

int Left [get]
 
int Right [get]
 
int Top [get]
 
int Bottom [get]
 
Point Location [get, set]
 
Point Center [get]
 
static Rectangle Empty [get]
 
bool IsEmpty [get]
 

Static Private Attributes

static Rectangle _empty = default(Rectangle)
 

Detailed Description

Definition at line 11 of file Rectangle.cs.


The documentation for this struct was generated from the following file: