[librsvg] Length: make the length and unit fields public



commit 1d4643783c1facacfc4ba54a66b3701f36667fbe
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed May 31 16:20:18 2017 -0500

    Length: make the length and unit fields public
    
    We'll need to access them from the Rust code to validate things

 rust/src/length.rs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rust/src/length.rs b/rust/src/length.rs
index 7eb7d60..80ba16b 100644
--- a/rust/src/length.rs
+++ b/rust/src/length.rs
@@ -41,8 +41,8 @@ pub enum LengthDir {
 #[repr(C)]
 #[derive(Debug, PartialEq, Copy, Clone)]
 pub struct RsvgLength {
-    length: f64,
-    unit: LengthUnit,
+    pub length: f64,
+    pub unit: LengthUnit,
     dir: LengthDir
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]