Public Member Functions | Static Public Attributes | Properties | List of all members
Rectangle Struct Reference

Defines a rectangle shape. More...

Inheritance diagram for Rectangle:

Public Member Functions

 Rectangle (float x, float y, float width, float height)
 
override string ToString ()
 Obtains a string representation of the current instance. More...
 
internal int GetChecksum ()
 
internal bool OverlapsWithRect (Tobii.InteractionLib.Rectangle second)
 Checks whether or not two Tobii.InteractionLib.Rectangle overlaps. More...
 
internal bool OverlapsWithRect (Rectangle second)
 
bool Equals (Rectangle other)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Static Public Attributes

static Rectangle Empty = new Rectangle(0, 0, 0, 0)
 

Properties

float X [get, set]
 Gets or sets the X component of the rectangle. More...
 
float Y [get, set]
 Gets or sets the Y component of the rectangle. More...
 
float Width [get, set]
 Gets or sets the Width component of the rectangle. More...
 
float Height [get, set]
 Gets or sets the Height component of the rectangle. More...
 

Detailed Description

Defines a rectangle shape.

Constructor & Destructor Documentation

◆ Rectangle()

Rectangle ( float  x,
float  y,
float  width,
float  height 
)
inline

Member Function Documentation

◆ ToString()

override string ToString ( )
inline

Obtains a string representation of the current instance.

Returns
String that represents the object.

◆ GetChecksum()

internal int GetChecksum ( )
inline

◆ OverlapsWithRect() [1/2]

internal bool OverlapsWithRect ( Tobii.InteractionLib.Rectangle  second)
inline

Checks whether or not two Tobii.InteractionLib.Rectangle overlaps.

Parameters
secondThe rectangle to check against.
Returns
Whether or not the two rectangles overlap.

◆ OverlapsWithRect() [2/2]

internal bool OverlapsWithRect ( Rectangle  second)
inline

◆ Equals() [1/2]

bool Equals ( Rectangle  other)
inline

◆ Equals() [2/2]

override bool Equals ( object  obj)
inline

◆ GetHashCode()

override int GetHashCode ( )
inline

Member Data Documentation

◆ Empty

Rectangle Empty = new Rectangle(0, 0, 0, 0)
static

Property Documentation

◆ X

float X
getset

Gets or sets the X component of the rectangle.

◆ Y

float Y
getset

Gets or sets the Y component of the rectangle.

◆ Width

float Width
getset

Gets or sets the Width component of the rectangle.

◆ Height

float Height
getset

Gets or sets the Height component of the rectangle.


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