UniversalUI_Native 0.1.1

Native platform functionality for the UniversalUI framework. Examples include windowing and events, file management and notifications.
Documentation
//  UniversalUI_Native - event.rs
//  created by sebhall on 28/07/2023
//  
//  UniversalUI_Native contains native platform functionality
//  for the UniversalUI framework, such as windowing, events
//  and file management.
//
//  event.rs declares functions for handling window events.

use crate::UniversalUI_Base::general::*;
use crate::UniversalUI_Base::debug::*;
use crate::UniversalUI_Base::geometry::*;

use crate::libc::*;


// Conditionally include the platform-specific modules
#[cfg(target_os = "windows")]
pub mod native_event {
    include!("win32/event.rs");
}

#[cfg(target_os = "linux")]
pub mod native_event {
    include!("x11/event.rs");
}



#[no_mangle]
pub extern "C" fn get_events() { 

    native_event::get_events();

}

#[no_mangle]
pub extern "C" fn registerWindowEventCallback(callback: native_event::WindowEventCallback) { 

    println!("register callback");

    native_event::set_global_callback(callback);

    //

}