Add a C getter for rsvg_state_get_cond_true()

... and wrap it in Rust; we'll need it there.
parent 88ce4366
......@@ -1805,3 +1805,8 @@ gboolean rsvg_state_is_overflow (RsvgState *state)
{
return state->overflow;
}
gboolean rsvg_state_get_cond_true (RsvgState *state)
{
return state->cond_true;
}
......@@ -252,6 +252,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_get_cond_true (RsvgState *state);
G_END_DECLS
#endif /* RSVG_STYLES_H */
......@@ -59,6 +59,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) -> bool;
fn rsvg_state_get_cond_true (state: *const RsvgState) -> bool;
fn rsvg_state_push (draw_ctx: *const RsvgDrawingCtx);
fn rsvg_state_pop (draw_ctx: *const RsvgDrawingCtx);
......@@ -210,6 +211,10 @@ pub fn state_is_overflow (state: *const RsvgState) -> bool {
unsafe { rsvg_state_is_overflow (state) }
}
pub fn state_get_cond_true (state: *const RsvgState) -> bool {
unsafe { rsvg_state_get_cond_true (state) }
}
pub fn state_push (draw_ctx: *const RsvgDrawingCtx) {
unsafe {
rsvg_state_push (draw_ctx);
......
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