pub struct ObsTransformInfoBuilder { /* private fields */ }Implementations§
Source§impl ObsTransformInfoBuilder
impl ObsTransformInfoBuilder
pub fn new() -> Self
pub fn set_pos(self, pos: Vec2) -> Self
pub fn set_scale(self, scale: Vec2) -> Self
Sourcepub fn set_alignment(self, alignment: u32) -> Self
pub fn set_alignment(self, alignment: u32) -> Self
Use alignment constants like so: obs_alignment::LEFT | obs_alignment::TOP
pub fn set_rot(self, rot: f32) -> Self
pub fn set_bounds(self, bounds: Vec2) -> Self
pub fn set_bounds_type(self, bounds_type: ObsBoundsType) -> Self
Sourcepub fn set_bounds_alignment(self, bounds_alignment: u32) -> Self
pub fn set_bounds_alignment(self, bounds_alignment: u32) -> Self
Use alignment constants like so: obs_alignment::LEFT | obs_alignment::TOP
pub fn set_crop_to_bounds(self, crop_to_bounds: bool) -> Self
Sourcepub fn build_with_fallback(
self,
scene: &ObsSceneRef,
source: &ObsSourceRef,
) -> Result<ObsTransformInfo, ObsError>
pub fn build_with_fallback( self, scene: &ObsSceneRef, source: &ObsSourceRef, ) -> Result<ObsTransformInfo, ObsError>
Builds the ObsTransformInfo instance and keeps values that have not been set the same.
Sourcepub fn build(self, base_width: u32, base_height: u32) -> ObsTransformInfo
pub fn build(self, base_width: u32, base_height: u32) -> ObsTransformInfo
Builds the transform info with only the values set in the builder. Unset values will be defaulted.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ObsTransformInfoBuilder
impl RefUnwindSafe for ObsTransformInfoBuilder
impl Send for ObsTransformInfoBuilder
impl Sync for ObsTransformInfoBuilder
impl Unpin for ObsTransformInfoBuilder
impl UnwindSafe for ObsTransformInfoBuilder
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