Struct obs_wrapper::properties::PathProp
source · [−]pub struct PathProp { /* private fields */ }Expand description
Adds a ‘path’ property. Can be a directory or a file.
If target is a file path, the filters should be this format, separated by double semi-colens, and extensions separated by space:
“Example types 1 and 2 (*.ex1 .ex2);;Example type 3 (.ex3)”
Arguments
props: Properties objectname: Settings namedescription: Description (display name) of the propertytype: Type of path (directory or file)filter: If type is a file path, then describes the file filter that the user can browse. Items are separated via double semi-colens. If multiple file types in a filter, separate with space.
Implementations
Trait Implementations
sourceimpl ObsProp for PathProp
impl ObsProp for PathProp
sourceunsafe fn add_to_props(
self,
p: *mut obs_properties_t,
name: ObsString,
description: ObsString
)
unsafe fn add_to_props(
self,
p: *mut obs_properties_t,
name: ObsString,
description: ObsString
)
Callback to add this property to a obs_properties_t.
Auto Trait Implementations
impl RefUnwindSafe for PathProp
impl Send for PathProp
impl Sync for PathProp
impl Unpin for PathProp
impl UnwindSafe for PathProp
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