The ``halign`` parameter determines the horizontal alignment (0.0 is left
aligned, 0.5 is in the center, 1.0 is right aligned). Similarly, ``valign``
determines vertical alignment (0.0 is top, 0.5 is middle, 1.0 is bottom).
- There are constant values provided in the HAlignment and VAlignment enum
- which should be used to improve readability.
+ There are constant values provided in the :class:`HAlignment` and
+ :class:`VAlignment` enum which should be used to improve readability.
:param ctx: the Cairo context to draw on
:param layout: the text layout to draw
:type layout: Pango.Layout
:param halign: how the layout should be horizontally aligned
- :type halign: float or HAlignment
+ :type halign: float or HAlignment
:param valign: how the layout should be vertically aligned
- :type valign: float or VAlignment
+ :type valign: float or VAlignment
:param scaling_mode: how to resize the text to fit the given box
- :type scaling_mode:
+ :type scaling_mode: ScalingMode