Files
sword_rs/src/module.rs
T
Greg Hellings 2a890a53cb Setting verse key by text
Add the ability to set a very key by text
Make the main.rs iterate random verses in John 3
2025-02-25 00:06:12 -06:00

25 lines
501 B
Rust

use crate::cxx::ffi;
use cxx::UniquePtr;
pub struct Module {
module: UniquePtr<ffi::Module>,
}
impl Module {
pub fn new(module: UniquePtr<ffi::Module>) -> Self {
Self { module: module }
}
pub fn get_name(&self) -> String {
self.module.get_name()
}
pub fn strip_text(&mut self) -> String {
self.module.pin_mut().strip_text()
}
pub fn set_key_text(&mut self, key_text: &String) {
self.module.pin_mut().set_key_text(key_text);
}
}