[librsvg] New helper function rsvg_state_is_overflow()



commit c73e54122b94e73bf7e4bf2eba405a88ff85501e
Author: Federico Mena Quintero <federico gnome org>
Date:   Mon Feb 27 12:43:40 2017 -0600

    New helper function rsvg_state_is_overflow()
    
    To be used from the Rust code.

 rsvg-styles.c |    5 +++++
 rsvg-styles.h |    3 +++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/rsvg-styles.c b/rsvg-styles.c
index a7e1559..6cdf3a8 100644
--- a/rsvg-styles.c
+++ b/rsvg-styles.c
@@ -1774,3 +1774,8 @@ rsvg_state_reconstruct (RsvgState *state, RsvgNode *current)
 
     rsvg_state_inherit (state, rsvg_node_get_state (current));
 }
+
+gboolean rsvg_state_is_overflow (RsvgState *state)
+{
+    return state->overflow;
+}
diff --git a/rsvg-styles.h b/rsvg-styles.h
index 8205d99..1cfa825 100644
--- a/rsvg-styles.h
+++ b/rsvg-styles.h
@@ -249,6 +249,9 @@ void rsvg_state_reinherit_top       (RsvgDrawingCtx * ctx, RsvgState * state, int domi
 G_GNUC_INTERNAL
 void rsvg_state_reconstruct    (RsvgState * state, RsvgNode * current);
 
+G_GNUC_INTERNAL
+gboolean rsvg_state_is_overflow (RsvgState *state);
+
 G_END_DECLS
 
 #endif                          /* RSVG_STYLES_H */


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