rsvg_state_get_stop_opacity(): New function to expose this property to Rust

parent edb8827d
......@@ -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)
{
......
......@@ -244,6 +244,9 @@ gboolean rsvg_state_get_cond_true (RsvgState *state);
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment