C# Class Microsoft.Xna.Framework.Rectangle

Datei anzeigen Open project: DeathCradle/Open-Terraria-API Class Usage Examples

Public Properties

Property Type Description
Array Microsoft.Xna.Framework.Rectangle[]
Height int
Width int
X int
Y int

Public Methods

Method Description
Contains ( Point value ) : bool
Contains ( Rectangle value ) : bool
Contains ( int x, int y ) : bool
Contains ( Point &value, bool &result ) : void
Contains ( Rectangle &value, bool &result ) : void
Equals ( Rectangle other ) : bool
Equals ( object obj ) : bool
GetHashCode ( ) : int
Inflate ( int width, int height ) : void
Intersect ( Rectangle &value1, Rectangle &value2, Rectangle &result ) : void
Intersects ( Rectangle value ) : bool
Intersects ( Rectangle &value, bool &result ) : void
Offset ( Point value ) : void
Offset ( int x, int y ) : void
Rectangle ( int x, int y, int width, int height )
Union ( Rectangle r1, Rectangle r2 ) : Rectangle
operator ( ) : bool

Method Details

Contains() public method

public Contains ( Point value ) : bool
value Point
return bool

Contains() public method

public Contains ( Rectangle value ) : bool
value Rectangle
return bool

Contains() public method

public Contains ( int x, int y ) : bool
x int
y int
return bool

Contains() public method

public Contains ( Point &value, bool &result ) : void
value Point
result bool
return void

Contains() public method

public Contains ( Rectangle &value, bool &result ) : void
value Rectangle
result bool
return void

Equals() public method

public Equals ( Rectangle other ) : bool
other Rectangle
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

Inflate() public method

public Inflate ( int width, int height ) : void
width int
height int
return void

Intersect() public static method

public static Intersect ( Rectangle &value1, Rectangle &value2, Rectangle &result ) : void
value1 Rectangle
value2 Rectangle
result Rectangle
return void

Intersects() public method

public Intersects ( Rectangle value ) : bool
value Rectangle
return bool

Intersects() public method

public Intersects ( Rectangle &value, bool &result ) : void
value Rectangle
result bool
return void

Offset() public method

public Offset ( Point value ) : void
value Point
return void

Offset() public method

public Offset ( int x, int y ) : void
x int
y int
return void

Rectangle() public method

public Rectangle ( int x, int y, int width, int height )
x int
y int
width int
height int

Union() public static method

public static Union ( Rectangle r1, Rectangle r2 ) : Rectangle
r1 Rectangle
r2 Rectangle
return Rectangle

operator() public static method

public static operator ( ) : bool
return bool

Property Details

Array public_oe static_oe property

public static Rectangle[],Microsoft.Xna.Framework Array
return Microsoft.Xna.Framework.Rectangle[]

Height public_oe property

public int Height
return int

Width public_oe property

public int Width
return int

X public_oe property

public int X
return int

Y public_oe property

public int Y
return int