Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Drawing.Rectangle Struct Reference

Public Member Functions

 Rectangle (int x, int y, int width, int height)
 
 Rectangle (Point location, Size size)
 
override readonly bool Equals ([NotNullWhen(true)] object? obj)
 
readonly bool Equals (Rectangle other)
 
readonly bool Contains (int x, int y)
 
readonly bool Contains (Point pt)
 
readonly bool Contains (Rectangle rect)
 
override readonly int GetHashCode ()
 
void Inflate (int width, int height)
 
void Inflate (Size size)
 
void Intersect (Rectangle rect)
 
readonly bool IntersectsWith (Rectangle rect)
 
void Offset (Point pos)
 
void Offset (int x, int y)
 
override readonly string ToString ()
 
bool Equals (T? other)
 

Static Public Member Functions

static Rectangle FromLTRB (int left, int top, int right, int bottom)
 
static bool operator== (Rectangle left, Rectangle right)
 
static bool operator!= (Rectangle left, Rectangle right)
 
static Rectangle Ceiling (RectangleF value)
 
static Rectangle Truncate (RectangleF value)
 
static Rectangle Round (RectangleF value)
 
static Rectangle Inflate (Rectangle rect, int x, int y)
 
static Rectangle Intersect (Rectangle a, Rectangle b)
 
static Rectangle Union (Rectangle a, Rectangle b)
 

Static Public Attributes

static readonly Rectangle Empty
 

Properties

Point Location [get, set]
 
Size Size [get, set]
 
int X [get, set]
 
int Y [get, set]
 
int Width [get, set]
 
int Height [get, set]
 
readonly int Left [get]
 
readonly int Top [get]
 
readonly int Right [get]
 
readonly int Bottom [get]
 
readonly bool IsEmpty [get]
 

Private Attributes

int x
 
int y
 
int width
 
int height
 

Detailed Description

Definition at line 10 of file Rectangle.cs.


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