#[repr(C)]pub struct OsDialogsApi {
pub open: Option<unsafe extern "C" fn(s: *const OsDialogsOpenT, ta: *mut TempAllocatorI) -> OsDialogsOpenResT>,
pub open_folder: Option<unsafe extern "C" fn(ta: *mut TempAllocatorI) -> *mut c_char>,
pub save: Option<unsafe extern "C" fn(s: *const OsDialogsSaveT, ta: *mut TempAllocatorI) -> *mut c_char>,
pub message_box: Option<unsafe extern "C" fn(title: *const c_char, text: *const c_char)>,
pub show_count: Option<unsafe extern "C" fn() -> u64>,
}
Fields§
§open: Option<unsafe extern "C" fn(s: *const OsDialogsOpenT, ta: *mut TempAllocatorI) -> OsDialogsOpenResT>
§open_folder: Option<unsafe extern "C" fn(ta: *mut TempAllocatorI) -> *mut c_char>
§save: Option<unsafe extern "C" fn(s: *const OsDialogsSaveT, ta: *mut TempAllocatorI) -> *mut c_char>
§message_box: Option<unsafe extern "C" fn(title: *const c_char, text: *const c_char)>
§show_count: Option<unsafe extern "C" fn() -> u64>
Implementations§
Source§impl OsDialogsApi
impl OsDialogsApi
pub unsafe fn open( &self, s: *const OsDialogsOpenT, ta: *mut TempAllocatorI, ) -> OsDialogsOpenResT
pub unsafe fn open_folder(&self, ta: *mut TempAllocatorI) -> *mut c_char
pub unsafe fn save( &self, s: *const OsDialogsSaveT, ta: *mut TempAllocatorI, ) -> *mut c_char
pub unsafe fn message_box(&self, title: *const c_char, text: *const c_char)
pub unsafe fn show_count(&self) -> u64
Trait Implementations§
Source§impl Clone for OsDialogsApi
impl Clone for OsDialogsApi
Source§fn clone(&self) -> OsDialogsApi
fn clone(&self) -> OsDialogsApi
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for OsDialogsApi
impl Default for OsDialogsApi
Source§fn default() -> OsDialogsApi
fn default() -> OsDialogsApi
Returns the “default value” for a type. Read more
impl Copy for OsDialogsApi
Auto Trait Implementations§
impl Freeze for OsDialogsApi
impl RefUnwindSafe for OsDialogsApi
impl Send for OsDialogsApi
impl Sync for OsDialogsApi
impl Unpin for OsDialogsApi
impl UnwindSafe for OsDialogsApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more