Struct machinery_api::plugins::ui::UiModalApi[][src]

#[repr(C)]
pub struct UiModalApi { pub message_box: Option<unsafe extern "C" fn(title: *const c_char, text: *const c_char, buttons: *mut *const c_char, num_buttons: u32) -> u32>, pub message_box_with_checkboxes: Option<unsafe extern "C" fn(title: *const c_char, text: *const c_char, checkboxes: *mut *const c_char, checkbox_values: *mut bool, num_checkboxes: u32, buttons: *mut *const c_char, num_buttons: u32) -> u32>, pub progress_box: Option<unsafe extern "C" fn(title: *const c_char, text: *const c_char, buttons: *mut *const c_char, num_buttons: u32, callback: Option<unsafe extern "C" fn(data: *mut c_void) -> f32>, callback_data: *mut c_void) -> u32>, pub infinite_progress_box: Option<unsafe extern "C" fn(title: *const c_char, text: *const c_char, callback: Option<unsafe extern "C" fn(data: *mut c_void) -> f32>, callback_data: *mut c_void)>, pub textinput_box: Option<unsafe extern "C" fn(title: *const c_char, text: *const c_char, buttons: *mut *const c_char, num_buttons: u32, output_text: *mut c_char, output_text_bytes: u32) -> u32>, }

Fields

message_box: Option<unsafe extern "C" fn(title: *const c_char, text: *const c_char, buttons: *mut *const c_char, num_buttons: u32) -> u32>message_box_with_checkboxes: Option<unsafe extern "C" fn(title: *const c_char, text: *const c_char, checkboxes: *mut *const c_char, checkbox_values: *mut bool, num_checkboxes: u32, buttons: *mut *const c_char, num_buttons: u32) -> u32>progress_box: Option<unsafe extern "C" fn(title: *const c_char, text: *const c_char, buttons: *mut *const c_char, num_buttons: u32, callback: Option<unsafe extern "C" fn(data: *mut c_void) -> f32>, callback_data: *mut c_void) -> u32>infinite_progress_box: Option<unsafe extern "C" fn(title: *const c_char, text: *const c_char, callback: Option<unsafe extern "C" fn(data: *mut c_void) -> f32>, callback_data: *mut c_void)>textinput_box: Option<unsafe extern "C" fn(title: *const c_char, text: *const c_char, buttons: *mut *const c_char, num_buttons: u32, output_text: *mut c_char, output_text_bytes: u32) -> u32>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.