pub struct SourceInfoBuilder<D: Sourceable> { /* private fields */ }
Expand description
The SourceInfoBuilder that handles creating the SourceInfo object.
For each trait that is implemented for the Source, it needs to be enabled
using this builder. If an struct called FocusFilter
implements
CreateSource
and GetNameSource
it would need to enable those features.
let source = load_context
.create_source_builder::<FocusFilter, ()>()
.enable_get_name()
.enable_create()
.build();
Implementations§
Source§impl<D: Sourceable> SourceInfoBuilder<D>
impl<D: Sourceable> SourceInfoBuilder<D>
Source§impl<D: Sourceable + GetNameSource> SourceInfoBuilder<D>
impl<D: Sourceable + GetNameSource> SourceInfoBuilder<D>
pub fn enable_get_name(self) -> Self
Source§impl<D: Sourceable + GetWidthSource> SourceInfoBuilder<D>
impl<D: Sourceable + GetWidthSource> SourceInfoBuilder<D>
pub fn enable_get_width(self) -> Self
Source§impl<D: Sourceable + GetHeightSource> SourceInfoBuilder<D>
impl<D: Sourceable + GetHeightSource> SourceInfoBuilder<D>
pub fn enable_get_height(self) -> Self
Source§impl<D: Sourceable + ActivateSource> SourceInfoBuilder<D>
impl<D: Sourceable + ActivateSource> SourceInfoBuilder<D>
pub fn enable_activate(self) -> Self
Source§impl<D: Sourceable + DeactivateSource> SourceInfoBuilder<D>
impl<D: Sourceable + DeactivateSource> SourceInfoBuilder<D>
pub fn enable_deactivate(self) -> Self
Source§impl<D: Sourceable + UpdateSource> SourceInfoBuilder<D>
impl<D: Sourceable + UpdateSource> SourceInfoBuilder<D>
pub fn enable_update(self) -> Self
Source§impl<D: Sourceable + VideoRenderSource> SourceInfoBuilder<D>
impl<D: Sourceable + VideoRenderSource> SourceInfoBuilder<D>
pub fn enable_video_render(self) -> Self
Source§impl<D: Sourceable + AudioRenderSource> SourceInfoBuilder<D>
impl<D: Sourceable + AudioRenderSource> SourceInfoBuilder<D>
pub fn enable_audio_render(self) -> Self
Source§impl<D: Sourceable + GetPropertiesSource> SourceInfoBuilder<D>
impl<D: Sourceable + GetPropertiesSource> SourceInfoBuilder<D>
pub fn enable_get_properties(self) -> Self
Source§impl<D: Sourceable + EnumActiveSource> SourceInfoBuilder<D>
impl<D: Sourceable + EnumActiveSource> SourceInfoBuilder<D>
pub fn enable_enum_active_sources(self) -> Self
Source§impl<D: Sourceable + EnumAllSource> SourceInfoBuilder<D>
impl<D: Sourceable + EnumAllSource> SourceInfoBuilder<D>
pub fn enable_enum_all_sources(self) -> Self
Source§impl<D: Sourceable + TransitionStartSource> SourceInfoBuilder<D>
impl<D: Sourceable + TransitionStartSource> SourceInfoBuilder<D>
pub fn enable_transition_start(self) -> Self
Source§impl<D: Sourceable + TransitionStopSource> SourceInfoBuilder<D>
impl<D: Sourceable + TransitionStopSource> SourceInfoBuilder<D>
pub fn enable_transition_stop(self) -> Self
Source§impl<D: Sourceable + VideoTickSource> SourceInfoBuilder<D>
impl<D: Sourceable + VideoTickSource> SourceInfoBuilder<D>
pub fn enable_video_tick(self) -> Self
Source§impl<D: Sourceable + FilterAudioSource> SourceInfoBuilder<D>
impl<D: Sourceable + FilterAudioSource> SourceInfoBuilder<D>
pub fn enable_filter_audio(self) -> Self
Source§impl<D: Sourceable + FilterVideoSource> SourceInfoBuilder<D>
impl<D: Sourceable + FilterVideoSource> SourceInfoBuilder<D>
pub fn enable_filter_video(self) -> Self
Source§impl<D: Sourceable + GetDefaultsSource> SourceInfoBuilder<D>
impl<D: Sourceable + GetDefaultsSource> SourceInfoBuilder<D>
pub fn enable_get_defaults(self) -> Self
Source§impl<D: Sourceable + MediaPlayPauseSource> SourceInfoBuilder<D>
impl<D: Sourceable + MediaPlayPauseSource> SourceInfoBuilder<D>
pub fn enable_media_play_pause(self) -> Self
Source§impl<D: Sourceable + MediaRestartSource> SourceInfoBuilder<D>
impl<D: Sourceable + MediaRestartSource> SourceInfoBuilder<D>
pub fn enable_media_restart(self) -> Self
Source§impl<D: Sourceable + MediaStopSource> SourceInfoBuilder<D>
impl<D: Sourceable + MediaStopSource> SourceInfoBuilder<D>
pub fn enable_media_stop(self) -> Self
Source§impl<D: Sourceable + MediaNextSource> SourceInfoBuilder<D>
impl<D: Sourceable + MediaNextSource> SourceInfoBuilder<D>
pub fn enable_media_next(self) -> Self
Source§impl<D: Sourceable + MediaPreviousSource> SourceInfoBuilder<D>
impl<D: Sourceable + MediaPreviousSource> SourceInfoBuilder<D>
pub fn enable_media_previous(self) -> Self
Source§impl<D: Sourceable + MediaGetDurationSource> SourceInfoBuilder<D>
impl<D: Sourceable + MediaGetDurationSource> SourceInfoBuilder<D>
pub fn enable_media_get_duration(self) -> Self
Source§impl<D: Sourceable + MediaGetTimeSource> SourceInfoBuilder<D>
impl<D: Sourceable + MediaGetTimeSource> SourceInfoBuilder<D>
pub fn enable_media_get_time(self) -> Self
Source§impl<D: Sourceable + MediaSetTimeSource> SourceInfoBuilder<D>
impl<D: Sourceable + MediaSetTimeSource> SourceInfoBuilder<D>
pub fn enable_media_set_time(self) -> Self
Source§impl<D: Sourceable + MediaGetStateSource> SourceInfoBuilder<D>
impl<D: Sourceable + MediaGetStateSource> SourceInfoBuilder<D>
pub fn enable_media_get_state(self) -> Self
Source§impl<D: Sourceable + MouseWheelSource> SourceInfoBuilder<D>
impl<D: Sourceable + MouseWheelSource> SourceInfoBuilder<D>
pub fn enable_mouse_wheel(self) -> Self
Source§impl<D: Sourceable + MouseClickSource> SourceInfoBuilder<D>
impl<D: Sourceable + MouseClickSource> SourceInfoBuilder<D>
pub fn enable_mouse_click(self) -> Self
Source§impl<D: Sourceable + MouseMoveSource> SourceInfoBuilder<D>
impl<D: Sourceable + MouseMoveSource> SourceInfoBuilder<D>
pub fn enable_mouse_move(self) -> Self
Source§impl<D: Sourceable + KeyClickSource> SourceInfoBuilder<D>
impl<D: Sourceable + KeyClickSource> SourceInfoBuilder<D>
pub fn enable_key_click(self) -> Self
Source§impl<D: Sourceable + FocusSource> SourceInfoBuilder<D>
impl<D: Sourceable + FocusSource> SourceInfoBuilder<D>
pub fn enable_focus(self) -> Self
Auto Trait Implementations§
impl<D> Freeze for SourceInfoBuilder<D>
impl<D> RefUnwindSafe for SourceInfoBuilder<D>where
D: RefUnwindSafe,
impl<D> !Send for SourceInfoBuilder<D>
impl<D> !Sync for SourceInfoBuilder<D>
impl<D> Unpin for SourceInfoBuilder<D>where
D: Unpin,
impl<D> UnwindSafe for SourceInfoBuilder<D>where
D: UnwindSafe,
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