Struct obs_sys::obs_modeless_ui
source · #[repr(C)]pub struct obs_modeless_ui {
pub id: *const c_char,
pub task: *const c_char,
pub target: *const c_char,
pub create: Option<unsafe extern "C" fn(object: *mut c_void, ui_data: *mut c_void) -> *mut c_void>,
pub type_data: *mut c_void,
pub free_type_data: Option<unsafe extern "C" fn(type_data: *mut c_void)>,
}
Expand description
Modeless UI definition structure
Fields
id: *const c_char
< Identifier associated with this UI
task: *const c_char
< Task of the UI
target: *const c_char
< UI target (UI toolkit or program name)
create: Option<unsafe extern "C" fn(object: *mut c_void, ui_data: *mut c_void) -> *mut c_void>
Callback to create modeless interface.
This function is almost identical to the modal exec function, except modeless UI calls return immediately, and typically are supposed to return a pointer or handle to the specific UI object that was created. For example, a Qt object would ideally return a pointer to a QWidget. Again, discretion and consistency is advised for the return value.
@param object Pointer/handle to the data associated with this call. @param ui_data UI data to pass associated with this specific target, if any. @return Pointer/handle to the modeless UI associated with the specific target.
type_data: *mut c_void
free_type_data: Option<unsafe extern "C" fn(type_data: *mut c_void)>
Trait Implementations
sourceimpl Clone for obs_modeless_ui
impl Clone for obs_modeless_ui
sourcefn clone(&self) -> obs_modeless_ui
fn clone(&self) -> obs_modeless_ui
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for obs_modeless_ui
impl Debug for obs_modeless_ui
sourceimpl Default for obs_modeless_ui
impl Default for obs_modeless_ui
impl Copy for obs_modeless_ui
Auto Trait Implementations
impl RefUnwindSafe for obs_modeless_ui
impl !Send for obs_modeless_ui
impl !Sync for obs_modeless_ui
impl Unpin for obs_modeless_ui
impl UnwindSafe for obs_modeless_ui
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more