#![allow( dead_code, improper_ctypes_definitions, non_camel_case_types, unused_variables, clippy::not_unsafe_ptr_arg_deref, clippy::too_many_arguments )] use crate::rc::{ConvertParam, ConvertReturnValue, Rc, RcImpl, RefGuard, WrapParamRef}; use cef_dll_sys::*; /// Perform the conversion between CEF and Rust types in field initializers. fn init_array_field(mut value: [U; N]) -> [T; N] where T: Sized, U: Sized + Into, { std::array::from_fn(move |i| { let mut elem = unsafe { std::mem::zeroed() }; std::mem::swap(&mut value[i], &mut elem); elem.into() }) } /// See [`cef_string_wide_t`] for more documentation. pub use crate::string::CefStringUserfreeWide; /// See [`cef_string_utf8_t`] for more documentation. pub use crate::string::CefStringUserfreeUtf8; /// See [`cef_string_utf16_t`] for more documentation. pub use crate::string::CefStringUserfreeUtf16; /// See [`char16_t`] for more documentation. pub type Char = char16_t; /// See [`cef_string_userfree_utf16_t`] for more documentation. pub type CefStringUserfree = CefStringUserfreeUtf16; /// See [`cef_string_utf16_t`] for more documentation. pub type CefString = CefStringUtf16; /// See [`u32`] for more documentation. pub type Color = u32; /// See [`_cef_string_wide_t`] for more documentation. pub use crate::string::CefStringWide; /// See [`_cef_string_utf8_t`] for more documentation. pub use crate::string::CefStringUtf8; /// See [`_cef_string_utf16_t`] for more documentation. pub use crate::string::CefStringUtf16; /// See [`_cef_string_list_t`] for more documentation. pub use crate::string::CefStringList; /// See [`_cef_string_map_t`] for more documentation. pub use crate::string::CefStringMap; /// See [`_cef_string_multimap_t`] for more documentation. pub use crate::string::CefStringMultimap; /// See [`_cef_basetime_t`] for more documentation. #[derive(Clone)] pub struct Basetime { pub val: i64, } impl From<_cef_basetime_t> for Basetime { fn from(value: _cef_basetime_t) -> Self { Self { val: value.val } } } impl From for _cef_basetime_t { fn from(value: Basetime) -> Self { Self { val: value.val } } } impl Default for Basetime { fn default() -> Self { unsafe { std::mem::zeroed() } } } /// See [`_cef_time_t`] for more documentation. #[derive(Clone)] pub struct Time { pub year: ::std::os::raw::c_int, pub month: ::std::os::raw::c_int, pub day_of_week: ::std::os::raw::c_int, pub day_of_month: ::std::os::raw::c_int, pub hour: ::std::os::raw::c_int, pub minute: ::std::os::raw::c_int, pub second: ::std::os::raw::c_int, pub millisecond: ::std::os::raw::c_int, } impl From<_cef_time_t> for Time { fn from(value: _cef_time_t) -> Self { Self { year: value.year, month: value.month, day_of_week: value.day_of_week, day_of_month: value.day_of_month, hour: value.hour, minute: value.minute, second: value.second, millisecond: value.millisecond, } } } impl From