Skip to content

API Reference / @gtkx/cairo / Status

Enumeration: Status ​

Defined in: packages/cairo/src/enums.ts:2

The result a cairo object or operation reports; anything but SUCCESS marks the object as errored.

Enumeration Members ​

CLIP_NOT_REPRESENTABLE ​

CLIP_NOT_REPRESENTABLE: 22

Defined in: packages/cairo/src/enums.ts:96

The clip region is not representable in the desired format.


DEVICE_ERROR ​

DEVICE_ERROR: 35

Defined in: packages/cairo/src/enums.ts:122

An operation on the device caused an unspecified error.


DEVICE_FINISHED ​

DEVICE_FINISHED: 37

Defined in: packages/cairo/src/enums.ts:126

The target device has been finished.


DEVICE_TYPE_MISMATCH ​

DEVICE_TYPE_MISMATCH: 34

Defined in: packages/cairo/src/enums.ts:120

The device type is not appropriate for the operation.


DWRITE_ERROR ​

DWRITE_ERROR: 43

Defined in: packages/cairo/src/enums.ts:133


FILE_NOT_FOUND ​

FILE_NOT_FOUND: 18

Defined in: packages/cairo/src/enums.ts:88

The file was not found.


FONT_TYPE_MISMATCH ​

FONT_TYPE_MISMATCH: 25

Defined in: packages/cairo/src/enums.ts:102

The font type is not appropriate for the operation.


FREETYPE_ERROR ​

FREETYPE_ERROR: 40

Defined in: packages/cairo/src/enums.ts:130


INVALID_CLUSTERS ​

INVALID_CLUSTERS: 29

Defined in: packages/cairo/src/enums.ts:110

The input clusters do not represent the accompanying text and glyph arrays.


INVALID_CONTENT ​

INVALID_CONTENT: 15

Defined in: packages/cairo/src/enums.ts:82

The content value is invalid.


INVALID_DASH ​

INVALID_DASH: 19

Defined in: packages/cairo/src/enums.ts:90

The dash setting is invalid.


INVALID_DSC_COMMENT ​

INVALID_DSC_COMMENT: 20

Defined in: packages/cairo/src/enums.ts:92

The DSC comment is invalid.


INVALID_FORMAT ​

INVALID_FORMAT: 16

Defined in: packages/cairo/src/enums.ts:84

The format value is invalid.


INVALID_INDEX ​

INVALID_INDEX: 21

Defined in: packages/cairo/src/enums.ts:94

The index passed to a getter is out of range.


INVALID_MATRIX ​

INVALID_MATRIX: 5

Defined in: packages/cairo/src/enums.ts:62

The matrix is invalid, such as one that is not invertible.


INVALID_MESH_CONSTRUCTION ​

INVALID_MESH_CONSTRUCTION: 36

Defined in: packages/cairo/src/enums.ts:124

A mesh pattern construction operation was used outside a beginPatch/endPatch pair.


INVALID_PATH_DATA ​

INVALID_PATH_DATA: 9

Defined in: packages/cairo/src/enums.ts:70

The path data is not valid.


INVALID_POP_GROUP ​

INVALID_POP_GROUP: 3

Defined in: packages/cairo/src/enums.ts:58

popGroup was called without a matching pushGroup.


INVALID_RESTORE ​

INVALID_RESTORE: 2

Defined in: packages/cairo/src/enums.ts:56

restore was called without a matching save.


INVALID_SIZE ​

INVALID_SIZE: 32

Defined in: packages/cairo/src/enums.ts:116

The size value, such as a negative width, is invalid.


INVALID_SLANT ​

INVALID_SLANT: 30

Defined in: packages/cairo/src/enums.ts:112

The font slant value is invalid.


INVALID_STATUS ​

INVALID_STATUS: 6

Defined in: packages/cairo/src/enums.ts:64

The status value is invalid.


INVALID_STRIDE ​

INVALID_STRIDE: 24

Defined in: packages/cairo/src/enums.ts:100

The stride value is invalid.


INVALID_STRING ​

INVALID_STRING: 8

Defined in: packages/cairo/src/enums.ts:68

The string is invalid, such as malformed UTF-8.


INVALID_VISUAL ​

INVALID_VISUAL: 17

Defined in: packages/cairo/src/enums.ts:86

The visual value is invalid.


INVALID_WEIGHT ​

INVALID_WEIGHT: 31

Defined in: packages/cairo/src/enums.ts:114

The font weight value is invalid.


JBIG2_GLOBAL_MISSING ​

JBIG2_GLOBAL_MISSING: 38

Defined in: packages/cairo/src/enums.ts:128

A JBIG2 global data stream was attached without its global identifier.


NEGATIVE_COUNT ​

NEGATIVE_COUNT: 28

Defined in: packages/cairo/src/enums.ts:108

A negative number was used where it is not allowed.


NO_CURRENT_POINT ​

NO_CURRENT_POINT: 4

Defined in: packages/cairo/src/enums.ts:60

No current point is defined.


NO_MEMORY ​

NO_MEMORY: 1

Defined in: packages/cairo/src/enums.ts:54

Out of memory.


NULL_POINTER ​

NULL_POINTER: 7

Defined in: packages/cairo/src/enums.ts:66

A null pointer was passed.


PATTERN_TYPE_MISMATCH ​

PATTERN_TYPE_MISMATCH: 14

Defined in: packages/cairo/src/enums.ts:80

The pattern type is not appropriate for the operation.


PNG_ERROR ​

PNG_ERROR: 39

Defined in: packages/cairo/src/enums.ts:129


READ_ERROR ​

READ_ERROR: 10

Defined in: packages/cairo/src/enums.ts:72

An error occurred while reading from an input stream.


SUCCESS ​

SUCCESS: 0

Defined in: packages/cairo/src/enums.ts:52

No error has occurred.


SURFACE_FINISHED ​

SURFACE_FINISHED: 12

Defined in: packages/cairo/src/enums.ts:76

The target surface has been finished.


SURFACE_TYPE_MISMATCH ​

SURFACE_TYPE_MISMATCH: 13

Defined in: packages/cairo/src/enums.ts:78

The surface type is not appropriate for the operation.


SVG_FONT_ERROR ​

SVG_FONT_ERROR: 44

Defined in: packages/cairo/src/enums.ts:134


TAG_ERROR ​

TAG_ERROR: 42

Defined in: packages/cairo/src/enums.ts:132


TEMP_FILE_ERROR ​

TEMP_FILE_ERROR: 23

Defined in: packages/cairo/src/enums.ts:98

An error occurred while creating a temporary file.


USER_FONT_ERROR ​

USER_FONT_ERROR: 27

Defined in: packages/cairo/src/enums.ts:106

An error occurred in a user font callback.


USER_FONT_IMMUTABLE ​

USER_FONT_IMMUTABLE: 26

Defined in: packages/cairo/src/enums.ts:104

The user font is immutable.


USER_FONT_NOT_IMPLEMENTED ​

USER_FONT_NOT_IMPLEMENTED: 33

Defined in: packages/cairo/src/enums.ts:118

The user font method is not implemented.


WIN32_GDI_ERROR ​

WIN32_GDI_ERROR: 41

Defined in: packages/cairo/src/enums.ts:131


WRITE_ERROR ​

WRITE_ERROR: 11

Defined in: packages/cairo/src/enums.ts:74

An error occurred while writing to an output stream.