Rsvg.Length¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
length |
r/w |
numeric part of the length |
|
unit |
r/w |
unit part of the length |
Methods¶
None
Details¶
- class Rsvg.Length¶
RsvgLengthvalues are used in [method`Rsvg`.Handle.get_intrinsic_dimensions], for example, to return the CSS length values of thewidthandheightattributes of an<svg>element.This is equivalent to CSS lengths.
It is up to the calling application to convert lengths in non-pixel units (i.e. those where the unit field is not
RSVG_UNIT_PX) into something meaningful to the application. For example, if your application knows the dots-per-inch (DPI) it is using, it can convert lengths with unit inRSVG_UNIT_INor other physical units.