About all my projects
NO_TITLE

NO_TITLE

Gnome::Graphene::T-rect

Class initialization

new

Initialization of a type class is simple and only needed when the standalone functions are used.

method new ( )

Record N-Rect

class N-Rect:auth<github:MARTIMM>:api<2> is export is repr('CStruct') {

  has N-Point $.origin;
  has N-Size $.size;
}
  • origin; the coordinates of the origin of the rectangle

  • size; the size of the rectangle

Standalone Functions

rect-alloc

Allocates a new Gnome::Graphene::T-rect.

The contents of the returned rectangle are undefined.

method rect-alloc (--> CArray[N-Rect] )

Return value; the newly allocated rectangle.

rect-zero

Returns a degenerate rectangle with origin fixed at (0, 0) and a size of 0, 0.

method rect-zero (--> CArray[N-Rect] )

Return value; a fixed rectangle.