[librsvg] rsvg_state_get_stop_opacity(): New function to expose this property to Rust
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] rsvg_state_get_stop_opacity(): New function to expose this property to Rust
- Date: Wed, 31 May 2017 23:37:56 +0000 (UTC)
commit b267dca3ca927a06a37fd02b13fd1820e8adfa1c
Author: Federico Mena Quintero <federico gnome org>
Date: Wed May 31 12:58:18 2017 -0500
rsvg_state_get_stop_opacity(): New function to expose this property to Rust
rsvg-styles.c | 10 ++++++++++
rsvg-styles.h | 3 +++
2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/rsvg-styles.c b/rsvg-styles.c
index 9e7502f..e49cc2c 100644
--- a/rsvg-styles.c
+++ b/rsvg-styles.c
@@ -1746,6 +1746,16 @@ rsvg_state_get_stop_color (RsvgState *state)
}
}
+RsvgOpacitySpec *
+rsvg_state_get_stop_opacity (RsvgState *state)
+{
+ if (state->has_stop_opacity) {
+ return &state->stop_opacity;
+ } else {
+ return NULL;
+ }
+}
+
guint32
rsvg_state_get_current_color (RsvgState *state)
{
diff --git a/rsvg-styles.h b/rsvg-styles.h
index 2466ed6..45ff753 100644
--- a/rsvg-styles.h
+++ b/rsvg-styles.h
@@ -245,6 +245,9 @@ G_GNUC_INTERNAL
RsvgCssColorSpec *rsvg_state_get_stop_color (RsvgState *state);
G_GNUC_INTERNAL
+RsvgOpacitySpec *rsvg_state_get_stop_opacity (RsvgState *state);
+
+G_GNUC_INTERNAL
guint32 rsvg_state_get_current_color (RsvgState *state);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]