[librsvg] NodeStop: add get_offset() and get_rgba() functions
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] NodeStop: add get_offset() and get_rgba() functions
- Date: Fri, 2 Jun 2017 15:29:35 +0000 (UTC)
commit 660d55a5ebf2aa9324488f8e0e612b7ad60bdcf3
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Jun 2 09:18:21 2017 -0500
NodeStop: add get_offset() and get_rgba() functions
rust/src/stop.rs | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/rust/src/stop.rs b/rust/src/stop.rs
index d002c52..26763af 100644
--- a/rust/src/stop.rs
+++ b/rust/src/stop.rs
@@ -28,6 +28,14 @@ impl NodeStop {
rgba: Cell::new (0)
}
}
+
+ pub fn get_offset (&self) -> f64 {
+ self.offset.get ()
+ }
+
+ pub fn get_rgba (&self) -> u32 {
+ self.rgba.get ()
+ }
}
impl NodeTrait for NodeStop {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]