Package: pango

CStruct pango:rectangle

Declaration

(cffi:defcstruct rectangle
  (x :int)
  (y :int)
  (width :int)
  (height :int))  

Values

x
The x coordinate of the left side of the rectangle.
y
The y coordinate of the the top side of the rectangle.
width
The width of the rectangle.
height
The height of the rectangle.

Details

The pango:rectangle structure represents a rectangle. It is frequently used to represent the logical or ink extents of a single glyph or section of text. See, for example, the pango:font-glyph-extents function.

Notes

The pango:rectangle structure is implemented as a CFFI structure type. It can be created using the cffi:with-foreign-object macro and the slots can be accessed using the cffi:foreign-slot-value function. For convenience, the pango:with-rectangle and pango:with-rectangles macros create and initialize a pango:rectangle instance for use.
 

Slot Access Functions

See also

2025-1-1