Export rsvg_state_has_overflow() to Rust

parent e0503208
......@@ -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;
......
......@@ -253,6 +253,9 @@ void rsvg_state_reconstruct (RsvgState * state, RsvgNode * current);
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);
......
......@@ -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)) }
}
......
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