Enums

Details

class Rsvg.Error(value)

Bases: GObject.GEnum

An enumeration representing possible errors

classmethod quark()
Returns:

The error domain

Return type:

int

The error domain for RSVG

FAILED = 0

the request failed

class Rsvg.Unit(value)

Bases: GLib.Enum

Units for the RsvgLength struct. These have the same meaning as CSS length units.

If you test for the values of this enum, please note that librsvg may add other units in the future as its support for CSS improves. Please make your code handle unknown units gracefully (e.g. with a default case in a switch() statement).

PERCENT = 0

percentage values; where 1.0 means 100%.

PX = 1

pixels

EM = 2

em, or the current font size

EX = 3

x-height of the current font

IN = 4

inches

CM = 5

centimeters

MM = 6

millimeters

PT = 7

points, or 1/72 inch

PC = 8

picas, or 1/6 inch (12 points)

CH = 9

advance measure of a ‘0’ character (depends on the text orientation)