[librsvg: 3/15] Deprecate rsvg_handle_get_dimensions()
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 3/15] Deprecate rsvg_handle_get_dimensions()
- Date: Sat, 11 Sep 2021 01:09:42 +0000 (UTC)
commit be0f2fcb24346b20a2305ab47d69fec4f52731e6
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Jun 23 19:38:51 2021 -0500
Deprecate rsvg_handle_get_dimensions()
We now have rsvg_handle_get_intrinsic_size_in_pixels() which can
return fractional pixels. Also it will point callers in the direction
of the functions that take viewports.
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/585>
include/librsvg/rsvg.h | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/include/librsvg/rsvg.h b/include/librsvg/rsvg.h
index ae5156d1..f3f88612 100644
--- a/include/librsvg/rsvg.h
+++ b/include/librsvg/rsvg.h
@@ -417,7 +417,8 @@ struct _RsvgHandle {
* individual element from rsvg_handle_get_dimensions_sub(). Please see
* the deprecation documentation for those functions.
*
- * Deprecated: 2.46. FIXME: point to deprecation documentation.
+ * Deprecated: 2.46. Use rsvg_handle_get_intrinsic_size_in_pixels() or
+ * rsvg_handle_get_geometry_for_layer() instead.
*/
struct _RsvgDimensionData {
int width;
@@ -705,9 +706,13 @@ void rsvg_handle_set_base_uri (RsvgHandle *handle, const char *base_uri);
* This function depends on the #RsvgHandle's DPI to compute dimensions in
* pixels, so you should call rsvg_handle_set_dpi() beforehand.
*
+ * Deprecated: 2.52. Use rsvg_handle_get_intrinsic_size_in_pixels() instead. This
+ * function is deprecated because it is not able to return exact fractional dimensions,
+ * only integer pixels.
+ *
* Since: 2.14
*/
-RSVG_API
+RSVG_DEPRECATED_FOR(rsvg_handle_get_intrinsic_size_in_pixels)
void rsvg_handle_get_dimensions (RsvgHandle *handle, RsvgDimensionData *dimension_data);
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]