Enumeration

RsvgUnit

Declaration

enum Rsvg.Unit

Description [src]

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).

Members

Name Description
RSVG_UNIT_PERCENT

Percentage values; where 1.0 means 100%.

RSVG_UNIT_PX

Pixels.

RSVG_UNIT_EM

Em, or the current font size.

RSVG_UNIT_EX

X-height of the current font.

RSVG_UNIT_IN

Inches.

RSVG_UNIT_CM

Centimeters.

RSVG_UNIT_MM

Millimeters.

RSVG_UNIT_PT

Points, or 1/72 inch.

RSVG_UNIT_PC

Picas, or 1/6 inch (12 points)

RSVG_UNIT_CH

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