diff --git a/devtools/src/lib.rs b/devtools/src/lib.rs
index 9a9123fb..d7d7e074 100644
--- a/devtools/src/lib.rs
+++ b/devtools/src/lib.rs
@@ -165,7 +165,7 @@ impl
DevTools
where
P: Program + 'static,
{
- fn new(state: P::State) -> (Self, Task) {
+ pub fn new(state: P::State) -> (Self, Task) {
(
Self {
state,
@@ -181,11 +181,11 @@ where
)
}
- fn title(&self, program: &P, window: window::Id) -> String {
+ pub fn title(&self, program: &P, window: window::Id) -> String {
program.title(&self.state, window)
}
- fn update(&mut self, program: &P, event: Event) -> Task> {
+ pub fn update(&mut self, program: &P, event: Event) -> Task> {
match event {
Event::Message(message) => match message {
Message::HideNotification => {
@@ -339,7 +339,7 @@ where
}
}
- fn view(
+ pub fn view(
&self,
program: &P,
window: window::Id,
@@ -434,7 +434,7 @@ where
.into()
}
- fn subscription(&self, program: &P) -> Subscription> {
+ pub fn subscription(&self, program: &P) -> Subscription> {
let subscription = match &self.mode {
Mode::Open { tester } if !tester.is_idle() => {
tester.subscription(program).map(Event::Tester)
@@ -471,15 +471,15 @@ where
Subscription::batch([subscription, hotkeys, commands])
}
- fn theme(&self, program: &P, window: window::Id) -> P::Theme {
+ pub fn theme(&self, program: &P, window: window::Id) -> P::Theme {
program.theme(self.state(), window)
}
- fn style(&self, program: &P, theme: &P::Theme) -> theme::Style {
+ pub fn style(&self, program: &P, theme: &P::Theme) -> theme::Style {
program.style(self.state(), theme)
}
- fn scale_factor(&self, program: &P, window: window::Id) -> f64 {
+ pub fn scale_factor(&self, program: &P, window: window::Id) -> f64 {
if let Mode::Open { .. } = &self.mode {
1.0
} else {
@@ -487,7 +487,7 @@ where
}
}
- fn state(&self) -> &P::State {
+ pub fn state(&self) -> &P::State {
self.time_machine.state().unwrap_or(&self.state)
}
}