IRect¶
- class IRect¶
Bases:
ImpactCOMWrapperBase- Description:
Describes a rectangle.
Wraps a COM object or another wrapper instance. Accepts: - A valid impact_object - An existing impact_com_wrapper_base-derived instance
- property bottom¶
Gets Bottom.
- Description:
Represents the lowest Y coordinate of the rect.
- Returns:
The value of Bottom.
- Return type:
bottom (float)
- property bottom_left¶
Gets bottom_left.
- Description:
Represents the bottom left coordinate of the rect.
- Returns:
The value of bottom_left.
- Return type:
- property centre¶
Gets Centre.
- Description:
Gets the centre point of the rectangle.
- property height¶
Gets Height.
- Description:
The height of the rect.
- Returns:
The value of Height.
- Return type:
height (float)
- property left¶
Gets Left.
- Description:
Represents the furthest left coordinate of the rect.
- Returns:
The value of Left.
- Return type:
left (float)
- property right¶
Gets Right.
- Description:
Represents the furthest right coordinate of the rect.
- Returns:
The value of Right.
- Return type:
right (float)
- property top¶
Gets Top.
- Description:
Represents the highest Y coordinate of the rect.
- Returns:
The value of Top.
- Return type:
top (float)
- property top_right¶
Gets top_right.
- Description:
Represents the top right coordinate of the rect.
- property width¶
Gets Width.
- Description:
The width of the rect.
- Returns:
The value of Width.
- Return type:
width (float)
- assign(source)¶
- Description:
Assigns the properties of another IRect object to this one.
- Parameters:
source (IRect) – The rect from which to assign properties.
- to_string()¶
- Description:
Returns a string representation of the IRect.