Skip to main content

rubrail/
dummy.rs

1#[allow(dead_code)]
2use super::interface::*;
3
4///
5pub struct DummyTouchbar {}
6
7#[allow(dead_code)]
8impl TTouchbar for DummyTouchbar {
9    type T = DummyTouchbar;
10    fn alloc(_title: &str) -> DummyTouchbar { DummyTouchbar {} }
11}
12
13///
14pub mod util {
15    use super::ItemId;
16    ///
17    pub fn print_nsstring(_str: *mut u64) {}
18    ///
19    pub fn nsstring_decode(_str: *mut u64) -> String { String::new() }
20    ///
21    pub fn bundled_resource_path(_name: &str, _extension: &str) -> Option<String> { None }
22    ///
23    pub unsafe fn set_bg_color(_item: &ItemId, _r: f64, _g: f64, _b: f64, _alpha: f64) { }
24    ///
25    pub unsafe fn set_text_color(_item: &ItemId, _r: f64, _g: f64, _b: f64, _alpha: f64) { }
26}