[librsvg] Export rsvg_state_has_overflow() to Rust
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] Export rsvg_state_has_overflow() to Rust
- Date: Tue, 16 May 2017 23:02:07 +0000 (UTC)
commit 573a3ee75630936a8a0f91fb4757cf7af10708a2
Author: Federico Mena Quintero <federico gnome org>
Date: Tue May 16 14:36:02 2017 -0500
Export rsvg_state_has_overflow() to Rust
rsvg-styles.c | 5 +++++
rsvg-styles.h | 3 +++
rust/src/drawing_ctx.rs | 5 +++++
3 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/rsvg-styles.c b/rsvg-styles.c
index ceeabce..ef32d63 100644
--- a/rsvg-styles.c
+++ b/rsvg-styles.c
@@ -1648,6 +1648,11 @@ gboolean rsvg_state_is_overflow (RsvgState *state)
return state->overflow;
}
+gboolean rsvg_state_has_overflow (RsvgState *state)
+{
+ return state->has_overflow;
+}
+
gboolean rsvg_state_get_cond_true (RsvgState *state)
{
return state->cond_true;
diff --git a/rsvg-styles.h b/rsvg-styles.h
index 44c991a..be59544 100644
--- a/rsvg-styles.h
+++ b/rsvg-styles.h
@@ -254,6 +254,9 @@ G_GNUC_INTERNAL
gboolean rsvg_state_is_overflow (RsvgState *state);
G_GNUC_INTERNAL
+gboolean rsvg_state_has_overflow (RsvgState *state);
+
+G_GNUC_INTERNAL
gboolean rsvg_state_get_cond_true (RsvgState *state);
G_END_DECLS
diff --git a/rust/src/drawing_ctx.rs b/rust/src/drawing_ctx.rs
index a96286a..77ebd96 100644
--- a/rust/src/drawing_ctx.rs
+++ b/rust/src/drawing_ctx.rs
@@ -60,6 +60,7 @@ extern "C" {
fn rsvg_state_reinit (state: *mut RsvgState);
fn rsvg_state_reconstruct (state: *mut RsvgState, node: *const RsvgNode);
fn rsvg_state_is_overflow (state: *const RsvgState) -> glib_sys::gboolean;
+ fn rsvg_state_has_overflow (state: *const RsvgState) -> glib_sys::gboolean;
fn rsvg_state_get_cond_true (state: *const RsvgState) -> glib_sys::gboolean;
fn rsvg_state_push (draw_ctx: *const RsvgDrawingCtx);
@@ -212,6 +213,10 @@ pub fn state_is_overflow (state: *const RsvgState) -> bool {
unsafe { from_glib (rsvg_state_is_overflow (state)) }
}
+pub fn state_has_overflow (state: *const RsvgState) -> bool {
+ unsafe { from_glib (rsvg_state_has_overflow (state)) }
+}
+
pub fn state_get_cond_true (state: *const RsvgState) -> bool {
unsafe { from_glib (rsvg_state_get_cond_true (state)) }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]