.. _legacy_constants:

================
Legacy Constants
================

These constants are aliases for enum attributes in newer versions of Pycairo.
They might still be useful if you need to support Pycairo versions older than
1.13.

.. currentmodule:: cairo

.. data:: ANTIALIAS_DEFAULT

    See :attr:`Antialias.DEFAULT`

.. data:: ANTIALIAS_NONE

    See :attr:`Antialias.NONE`

.. data:: ANTIALIAS_GRAY

    See :attr:`Antialias.GRAY`

.. data:: ANTIALIAS_SUBPIXEL

    See :attr:`Antialias.SUBPIXEL`

.. data:: ANTIALIAS_FAST

    See :attr:`Antialias.FAST`

    .. versionadded:: 1.12.0

.. data:: ANTIALIAS_GOOD

    See :attr:`Antialias.GOOD`

    .. versionadded:: 1.12.0

.. data:: ANTIALIAS_BEST

    See :attr:`Antialias.BEST`

    .. versionadded:: 1.12.0

.. data:: CONTENT_COLOR

    See :attr:`Content.COLOR`

.. data:: CONTENT_ALPHA

    See :attr:`Content.ALPHA`

.. data:: CONTENT_COLOR_ALPHA

    See :attr:`Content.COLOR_ALPHA`

.. data:: EXTEND_NONE

    See :attr:`Extend.NONE`

.. data:: EXTEND_REPEAT

    See :attr:`Extend.REPEAT`

.. data:: EXTEND_REFLECT

    See :attr:`Extend.REFLECT`

.. data:: EXTEND_PAD

    See :attr:`Extend.PAD`

.. data:: FILL_RULE_WINDING

    See :attr:`FillRule.WINDING`

.. data:: FILL_RULE_EVEN_ODD

    See :attr:`FillRule.EVEN_ODD`

.. data:: FILTER_FAST

    See :attr:`Filter.FAST`

.. data:: FILTER_GOOD

    See :attr:`Filter.GOOD`

.. data:: FILTER_BEST

    See :attr:`Filter.BEST`

.. data:: FILTER_NEAREST

    See :attr:`Filter.NEAREST`

.. data:: FILTER_BILINEAR

    See :attr:`Filter.BILINEAR`

.. data:: FILTER_GAUSSIAN

    See :attr:`Filter.GAUSSIAN`

.. data:: FONT_SLANT_NORMAL

    See :attr:`FontSlant.NORMAL`

.. data:: FONT_SLANT_ITALIC

    See :attr:`FontSlant.ITALIC`

.. data:: FONT_SLANT_OBLIQUE

    See :attr:`FontSlant.OBLIQUE`

.. data:: FONT_WEIGHT_NORMAL

    See :attr:`FontWeight.NORMAL`

.. data:: FONT_WEIGHT_BOLD

    See :attr:`FontWeight.BOLD`

.. data:: FORMAT_INVALID

    See :attr:`Format.INVALID`

    .. versionadded:: 1.12.0

.. data:: FORMAT_ARGB32

    See :attr:`Format.ARGB32`

.. data:: FORMAT_RGB24

    See :attr:`Format.RGB24`

.. data:: FORMAT_A8

    See :attr:`Format.A8`

.. data:: FORMAT_A1

    See :attr:`Format.A1`

.. data:: FORMAT_RGB16_565

    See :attr:`Format.RGB16_565`

.. data:: FORMAT_RGB30

    See :attr:`Format.RGB30`

    .. versionadded:: 1.12.0

.. data:: HINT_METRICS_DEFAULT

    See :attr:`HintMetrics.DEFAULT`

.. data:: HINT_METRICS_OFF

    See :attr:`HintMetrics.OFF`

.. data:: HINT_METRICS_ON

    See :attr:`HintMetrics.ON`


.. data:: HINT_STYLE_DEFAULT

    See :attr:`HintStyle.DEFAULT`

.. data:: HINT_STYLE_NONE

    See :attr:`HintStyle.NONE`

.. data:: HINT_STYLE_SLIGHT

    See :attr:`HintStyle.SLIGHT`

.. data:: HINT_STYLE_MEDIUM

    See :attr:`HintStyle.MEDIUM`

.. data:: HINT_STYLE_FULL

    See :attr:`HintStyle.FULL`

.. data:: LINE_CAP_BUTT

    See :attr:`LineCap.BUTT`

.. data:: LINE_CAP_ROUND

    See :attr:`LineCap.ROUND`

.. data:: LINE_CAP_SQUARE

    See :attr:`LineCap.SQUARE`

.. data:: LINE_JOIN_MITER

    See :attr:`LineJoin.MITER`

.. data:: LINE_JOIN_ROUND

    See :attr:`LineJoin.ROUND`

.. data:: LINE_JOIN_BEVEL

    See :attr:`LineJoin.BEVEL`

.. data:: OPERATOR_CLEAR

    See :attr:`Operator.CLEAR`

.. data:: OPERATOR_SOURCE

    See :attr:`Operator.SOURCE`

.. data:: OPERATOR_OVER

    See :attr:`Operator.OVER`

.. data:: OPERATOR_IN

    See :attr:`Operator.IN`

.. data:: OPERATOR_OUT

    See :attr:`Operator.OUT`

.. data:: OPERATOR_ATOP

    See :attr:`Operator.ATOP`

.. data:: OPERATOR_DEST

    See :attr:`Operator.DEST`

.. data:: OPERATOR_DEST_OVER

    See :attr:`Operator.DEST_OVER`

.. data:: OPERATOR_DEST_IN

    See :attr:`Operator.DEST_IN`

.. data:: OPERATOR_DEST_OUT

    See :attr:`Operator.DEST_OUT`

.. data:: OPERATOR_DEST_ATOP

    See :attr:`Operator.DEST_ATOP`

.. data:: OPERATOR_XOR

    See :attr:`Operator.XOR`

.. data:: OPERATOR_ADD

    See :attr:`Operator.ADD`

.. data:: OPERATOR_SATURATE

    See :attr:`Operator.SATURATE`

.. data:: OPERATOR_MULTIPLY

    See :attr:`Operator.MULTIPLY`

    .. versionadded:: 1.12.0

.. data:: OPERATOR_SCREEN

    See :attr:`Operator.SCREEN`

    .. versionadded:: 1.12.0

.. data:: OPERATOR_OVERLAY

    See :attr:`Operator.OVERLAY`

    .. versionadded:: 1.12.0

.. data:: OPERATOR_DARKEN

    See :attr:`Operator.DARKEN`

    .. versionadded:: 1.12.0

.. data:: OPERATOR_LIGHTEN

    See :attr:`Operator.LIGHTEN`

    .. versionadded:: 1.12.0

.. data:: OPERATOR_COLOR_DODGE

    See :attr:`Operator.COLOR_DODGE`

    .. versionadded:: 1.12.0

.. data:: OPERATOR_COLOR_BURN

    See :attr:`Operator.COLOR_BURN`

    .. versionadded:: 1.12.0

.. data:: OPERATOR_HARD_LIGHT

    See :attr:`Operator.HARD_LIGHT`

    .. versionadded:: 1.12.0

.. data:: OPERATOR_SOFT_LIGHT

    See :attr:`Operator.SOFT_LIGHT`

    .. versionadded:: 1.12.0

.. data:: OPERATOR_DIFFERENCE

    See :attr:`Operator.DIFFERENCE`

    .. versionadded:: 1.12.0

.. data:: OPERATOR_EXCLUSION

    See :attr:`Operator.EXCLUSION`

    .. versionadded:: 1.12.0

.. data:: OPERATOR_HSL_HUE

    See :attr:`Operator.HSL_HUE`

    .. versionadded:: 1.12.0

.. data:: OPERATOR_HSL_SATURATION

    See :attr:`Operator.HSL_SATURATION`

    .. versionadded:: 1.12.0

.. data:: OPERATOR_HSL_COLOR

    See :attr:`Operator.HSL_COLOR`

    .. versionadded:: 1.12.0

.. data:: OPERATOR_HSL_LUMINOSITY

    See :attr:`Operator.HSL_LUMINOSITY`

    .. versionadded:: 1.12.0

.. data:: PATH_MOVE_TO

    See :attr:`PathDataType.MOVE_TO`

.. data:: PATH_LINE_TO

    See :attr:`PathDataType.LINE_TO`

.. data:: PATH_CURVE_TO

    See :attr:`PathDataType.CURVE_TO`

.. data:: PATH_CLOSE_PATH

    See :attr:`PathDataType.CLOSE_PATH`

.. data:: PS_LEVEL_2

    See :attr:`PSLevel.LEVEL_2`

.. data:: PS_LEVEL_3

    See :attr:`PSLevel.LEVEL_3`

.. data:: PDF_VERSION_1_4

    See :attr:`PDFVersion.VERSION_1_4`

    .. versionadded:: 1.12.0

.. data:: PDF_VERSION_1_5

    See :attr:`PDFVersion.VERSION_1_5`

    .. versionadded:: 1.12.0

.. data:: SVG_VERSION_1_1

    See :attr:`SVGVersion.VERSION_1_1`

    .. versionadded:: 1.12.0

.. data:: SVG_VERSION_1_2

    See :attr:`SVGVersion.VERSION_1_2`

    .. versionadded:: 1.12.0

.. data:: SUBPIXEL_ORDER_DEFAULT

    See :attr:`SubpixelOrder.DEFAULT`

.. data:: SUBPIXEL_ORDER_RGB

    See :attr:`SubpixelOrder.RGB`

.. data:: SUBPIXEL_ORDER_BGR

    See :attr:`SubpixelOrder.BGR`

.. data:: SUBPIXEL_ORDER_VRGB

    See :attr:`SubpixelOrder.VRGB`

.. data:: SUBPIXEL_ORDER_VBGR

    See :attr:`SubpixelOrder.VBGR`

.. data:: REGION_OVERLAP_IN

    See :attr:`RegionOverlap.IN`

    .. versionadded:: 1.11

.. data:: REGION_OVERLAP_OUT

    See :attr:`RegionOverlap.OUT`

    .. versionadded:: 1.11

.. data:: REGION_OVERLAP_PART

    See :attr:`RegionOverlap.PART`

    .. versionadded:: 1.11

.. data:: STATUS_SUCCESS
    STATUS_NO_MEMORY
    STATUS_INVALID_RESTORE
    STATUS_INVALID_POP_GROUP
    STATUS_NO_CURRENT_POINT
    STATUS_INVALID_MATRIX
    STATUS_INVALID_STATUS
    STATUS_NULL_POINTER
    STATUS_INVALID_STRING
    STATUS_INVALID_PATH_DATA
    STATUS_READ_ERROR
    STATUS_WRITE_ERROR
    STATUS_SURFACE_FINISHED
    STATUS_SURFACE_TYPE_MISMATCH
    STATUS_PATTERN_TYPE_MISMATCH
    STATUS_INVALID_CONTENT
    STATUS_INVALID_FORMAT
    STATUS_INVALID_VISUAL
    STATUS_FILE_NOT_FOUND
    STATUS_INVALID_DASH
    STATUS_INVALID_DSC_COMMENT
    STATUS_INVALID_INDEX
    STATUS_CLIP_NOT_REPRESENTABLE
    STATUS_TEMP_FILE_ERROR
    STATUS_INVALID_STRIDE
    STATUS_FONT_TYPE_MISMATCH
    STATUS_USER_FONT_IMMUTABLE
    STATUS_USER_FONT_ERROR
    STATUS_NEGATIVE_COUNT
    STATUS_INVALID_CLUSTERS
    STATUS_INVALID_SLANT
    STATUS_INVALID_WEIGHT
    STATUS_INVALID_SIZE
    STATUS_USER_FONT_NOT_IMPLEMENTED
    STATUS_DEVICE_TYPE_MISMATCH
    STATUS_DEVICE_ERROR
    STATUS_INVALID_MESH_CONSTRUCTION
    STATUS_DEVICE_FINISHED
    STATUS_LAST_STATUS

    See :class:`Status`

    .. versionadded:: 1.12
