Rect Class

Definition

Line 73 of System.Screen/Primitive.cm

Constructors & Destructor

public nothrow Rect()
public nothrow Rect(const Point& location_, const Size& size_)

Member Functions

public inline nothrow int Bottom() const
public inline nothrow bool Contains(const Point& p)
public static nothrow Rect Default()
public inline nothrow void Inflate(int dx, int dy)
public static nothrow Rect Intersection(const Rect& a, const Rect& b)
public nothrow bool IntersectsWith(const Rect& that) const
public nothrow bool IsDefault() const
public nothrow bool IsEmpty() const
public inline nothrow int Left() const
public inline nothrow void Offset(int dx, int dy)
public inline nothrow int Right() const
public String<char> ToString() const
public inline nothrow int Top() const
public static nothrow Rect Union(const Rect& a, const Rect& b)

Member Variables

public Point location
public Size size

Constructor& Destructor Details

Rect Constructor

public nothrow Rect()

Definition
Line 75 of System.Screen/Primitive.cm


Rect Constructor

public nothrow Rect(const Point& location_, const Size& size_)

Definition
Line 78 of System.Screen/Primitive.cm


Member Function Details

Bottom Member Function

public inline nothrow int Bottom()

Definition
Line 105 of System.Screen/Primitive.cm


Contains Member Function

public inline nothrow bool Contains(const Point& p)

Definition
Line 109 of System.Screen/Primitive.cm


Default Static Member Function

public static nothrow Rect Default()

Definition
Line 81 of System.Screen/Primitive.cm


Inflate Member Function

public inline nothrow void Inflate(int dx, int dy)

Definition
Line 113 of System.Screen/Primitive.cm


Intersection Static Member Function

public static nothrow Rect Intersection(const Rect& a, const Rect& b)

Definition
Line 136 of System.Screen/Primitive.cm


IntersectsWith Member Function

public nothrow bool IntersectsWith(const Rect& that)

Definition
Line 124 of System.Screen/Primitive.cm


IsDefault Member Function

public nothrow bool IsDefault()

Definition
Line 85 of System.Screen/Primitive.cm


IsEmpty Member Function

public nothrow bool IsEmpty()

Definition
Line 89 of System.Screen/Primitive.cm


Left Member Function

public inline nothrow int Left()

Definition
Line 93 of System.Screen/Primitive.cm


Offset Member Function

public inline nothrow void Offset(int dx, int dy)

Definition
Line 120 of System.Screen/Primitive.cm


Right Member Function

public inline nothrow int Right()

Definition
Line 97 of System.Screen/Primitive.cm


ToString Member Function

public String<char> ToString()

Definition
Line 144 of System.Screen/Primitive.cm


Top Member Function

public inline nothrow int Top()

Definition
Line 101 of System.Screen/Primitive.cm


Union Static Member Function

public static nothrow Rect Union(const Rect& a, const Rect& b)

Definition
Line 128 of System.Screen/Primitive.cm