Enums¶
Details¶
- class Rsvg.Error(value)¶
Bases:
GObject.GEnumAn enumeration representing possible errors
- FAILED = 0¶
the request failed
- class Rsvg.Unit(value)¶
Bases:
GLib.EnumUnits for the
RsvgLengthstruct. 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
defaultcase in aswitch()statement).- PERCENT = 0¶
percentage values; where
1.0means 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)
New in version 2.58.