INNER CODE UNIT · Rust

new

toyota-connected/ivi-homescreen · templates/comp_surf/rust/context/src/lib.rs:42

    pub fn new(native: *const c_void,
           width: i32,
           height: i32,
           access_token: String,
           assets_path: String,
           cache_path: String,
           misc_path: String) -> CompSurfContext {

        println!("[comp_surf_rs]");

        let native_window: &mut NativeWindow = unsafe { &mut *(native as *mut NativeWindow) };

        CompSurfContext {
            width,
            height,
            access_token,
            assets_path,
            cache_path,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…