[librsvg: 15/38] handle.rs: Make some fields/methods public so c_api.rs can use them
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 15/38] handle.rs: Make some fields/methods public so c_api.rs can use them
- Date: Fri, 25 Jan 2019 19:38:37 +0000 (UTC)
commit aa25818739736f0d8e7e3714f879903f4fe0cccb
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Jan 23 10:49:54 2019 -0600
handle.rs: Make some fields/methods public so c_api.rs can use them
rsvg_internals/src/handle.rs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/rsvg_internals/src/handle.rs b/rsvg_internals/src/handle.rs
index e15d306d..95f80ff7 100644
--- a/rsvg_internals/src/handle.rs
+++ b/rsvg_internals/src/handle.rs
@@ -144,11 +144,11 @@ impl Drop for SizeCallback {
}
pub struct Handle {
- dpi: Cell<Dpi>,
- base_url: RefCell<Option<Url>>,
+ pub dpi: Cell<Dpi>,
+ pub base_url: RefCell<Option<Url>>,
base_url_cstring: RefCell<Option<CString>>, // needed because the C api returns *const char
svg: RefCell<Option<Rc<Svg>>>,
- load_flags: Cell<LoadFlags>,
+ pub load_flags: Cell<LoadFlags>,
load_state: Cell<LoadState>,
buffer: Vec<u8>, // used by the legacy write() api
size_callback: RefCell<SizeCallback>,
@@ -648,7 +648,7 @@ impl LoadFlags {
}
}
- fn to_flags(&self) -> u32 {
+ pub fn to_flags(&self) -> u32 {
let mut flags = 0;
if self.unlimited_size {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]