Dokumentaro de Gambaso
Compilation & Installation
Components
gb
gb.crypt
gb.qt4
Documents
Indekso de Lingvo
Language Overviews
LeguMin
Lexicon
Registro

Cairo.Rectangle (gb.cairo)

Static Sub Rectangle ( X As Float, Y As Float, Width As Float, Height As Float )

Adds a closed sub-path rectangle of the given size to the current path at position (X, Y) in user-space coordinates.

  • X : the X coordinate of the top left corner of the rectangle.

  • Y : the Y coordinate to the top left corner of the rectangle.

  • Width : the width of the rectangle.

  • Height : the height of the rectangle.

This function is logically equivalent to:

Cairo.MoveTo(X, Y)
Cairo.RelLineTo(Width, 0)
Cairo.RelLineTo(0, Height)
Cairo.RelLineTo(- Width, 0)
Cairo.ClosePath()