Skip to content

API Reference / @gtkx/cairo / RectangleInt

Class: RectangleInt

Defined in: structs.d.ts:63

A rectangle with integer edges, as regions and Surface.mapToImage use.

Constructors

Constructor

new RectangleInt(props?): RectangleInt

Defined in: structs.d.ts:67

Allocates a rectangle, writing the given fields and leaving the others at zero.

Parameters

props?

RectangleIntConstructorProps

Returns

RectangleInt

Properties

__type__

__type__: bigint

Defined in: structs.d.ts:65

GType of CairoRectangleInt, the boxed type this struct is registered under.

Accessors

height

Get Signature

get height(): number

Defined in: structs.d.ts:81

Height of the rectangle.

Returns

number

Set Signature

set height(value): void

Defined in: structs.d.ts:83

Height of the rectangle.

Parameters
value

number

Returns

void


width

Get Signature

get width(): number

Defined in: structs.d.ts:77

Width of the rectangle.

Returns

number

Set Signature

set width(value): void

Defined in: structs.d.ts:79

Width of the rectangle.

Parameters
value

number

Returns

void


x

Get Signature

get x(): number

Defined in: structs.d.ts:69

Horizontal position of the left edge.

Returns

number

Set Signature

set x(value): void

Defined in: structs.d.ts:71

Horizontal position of the left edge.

Parameters
value

number

Returns

void


y

Get Signature

get y(): number

Defined in: structs.d.ts:73

Vertical position of the top edge.

Returns

number

Set Signature

set y(value): void

Defined in: structs.d.ts:75

Vertical position of the top edge.

Parameters
value

number

Returns

void

Released under the MPL-2.0 License.