get_dimensions_sub


Description:

[ Version ( deprecated = true , deprecated_since = "2.46." , since = "2.22" ) ]
public bool get_dimensions_sub (out DimensionData dimension_data, string? id)

Warning: get_dimensions_sub is deprecated since 2.46..

Get the size of a subelement of the SVG file.

Note:

Use [[email protected]_geometry_for_layer] instead.

Do not call from within the size_func callback, because an infinite loop will occur.

This function depends on the [[email protected]]'s DPI to compute dimensions in pixels, so you should call [[email protected]_dpi] beforehand.

Element IDs should look like an URL fragment identifier; for example, pass `foo` (hash `foo`) to get the geometry of the element that has an `id="foo"` attribute.

Parameters:

this

A [[email protected]]

dimension_data

A place to store the SVG's size

id

An element's id within the SVG, starting with "#" (a single hash character), for example, `layer1`. This notation corresponds to a URL's fragment ID. Alternatively, pass `NULL` to use the whole SVG.

Returns:

`TRUE` if the dimensions could be obtained, `FALSE` if there was an error.




2022 vala-language.org