API Reference / @gtkx/cairo / RectangleInt
Class: RectangleInt
Defined in: packages/cairo/src/structs.ts:151
A rectangle with integer edges, as Cairo regions use.
Constructors
Constructor
new RectangleInt(
props?):RectangleInt
Defined in: packages/cairo/src/structs.ts:160
Allocates a rectangle, writing the given fields and leaving the others at zero.
Parameters
props?
RectangleIntConstructorProps = {}
Returns
RectangleInt
Properties
__type__
__type__:
bigint
Defined in: packages/cairo/src/structs.ts:157
GType of CairoRectangleInt, the boxed type this struct is registered under.
Accessors
height
Get Signature
get height():
number
Defined in: packages/cairo/src/structs.ts:200
Height of the rectangle.
Returns
number
Set Signature
set height(
value):void
Defined in: packages/cairo/src/structs.ts:205
Height of the rectangle.
Parameters
value
number
Returns
void
width
Get Signature
get width():
number
Defined in: packages/cairo/src/structs.ts:190
Width of the rectangle.
Returns
number
Set Signature
set width(
value):void
Defined in: packages/cairo/src/structs.ts:195
Width of the rectangle.
Parameters
value
number
Returns
void
x
Get Signature
get x():
number
Defined in: packages/cairo/src/structs.ts:170
Horizontal position of the left edge.
Returns
number
Set Signature
set x(
value):void
Defined in: packages/cairo/src/structs.ts:175
Horizontal position of the left edge.
Parameters
value
number
Returns
void
y
Get Signature
get y():
number
Defined in: packages/cairo/src/structs.ts:180
Vertical position of the top edge.
Returns
number
Set Signature
set y(
value):void
Defined in: packages/cairo/src/structs.ts:185
Vertical position of the top edge.
Parameters
value
number
Returns
void