IRect

class IRect

Bases: ImpactCOMWrapperBase

Summary:

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.

Summary:

Represents the lowest Y coordinate of the rect.

Returns:

The value of Bottom.

Return type:

bottom (float)

property bottom_left

Gets bottom_left.

Summary:

Represents the bottom left coordinate of the rect.

Returns:

The value of bottom_left.

Return type:

bottom_left (IVector)

property centre

Gets Centre.

Summary:

Gets the centre point of the rectangle.

Returns:

The value of Centre.

Return type:

centre (IVector)

property height

Gets Height.

Summary:

The height of the rect.

Returns:

The value of Height.

Return type:

height (float)

property left

Gets Left.

Summary:

Represents the furthest left coordinate of the rect.

Returns:

The value of Left.

Return type:

left (float)

property right

Gets Right.

Summary:

Represents the furthest right coordinate of the rect.

Returns:

The value of Right.

Return type:

right (float)

property top

Gets Top.

Summary:

Represents the highest Y coordinate of the rect.

Returns:

The value of Top.

Return type:

top (float)

property top_right

Gets top_right.

Summary:

Represents the top right coordinate of the rect.

Returns:

The value of top_right.

Return type:

top_right (IVector)

property width

Gets Width.

Summary:

The width of the rect.

Returns:

The value of Width.

Return type:

width (float)

assign(source)
Summary:

Assigns the properties of another IRect object to this one.

Parameters:

source (IRect) – The rect from which to assign properties.

isNone()

Checks if the COM object is None. This is useful for determining if the wrapper has been initialized with a valid COM object.

to_string()
Summary:

Returns a string representation of the IRect.