pub struct ObsSceneItemCrop {
pub left: i32,
pub top: i32,
pub right: i32,
pub bottom: i32,
}Expand description
Pixel crop applied to a scene item before its transform is evaluated.
Values map directly to libobs’s left/top/right/bottom scene-item crop. Positive values remove pixels from the corresponding edge of the underlying source.
Fields§
§left: i32§top: i32§right: i32§bottom: i32Implementations§
Trait Implementations§
Source§impl Clone for ObsSceneItemCrop
impl Clone for ObsSceneItemCrop
Source§fn clone(&self) -> ObsSceneItemCrop
fn clone(&self) -> ObsSceneItemCrop
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ObsSceneItemCrop
Source§impl Debug for ObsSceneItemCrop
impl Debug for ObsSceneItemCrop
Source§impl Default for ObsSceneItemCrop
impl Default for ObsSceneItemCrop
Source§fn default() -> ObsSceneItemCrop
fn default() -> ObsSceneItemCrop
Returns the “default value” for a type. Read more
impl Eq for ObsSceneItemCrop
Source§impl From<ObsSceneItemCrop> for obs_sceneitem_crop
impl From<ObsSceneItemCrop> for obs_sceneitem_crop
Source§fn from(value: ObsSceneItemCrop) -> Self
fn from(value: ObsSceneItemCrop) -> Self
Converts to this type from the input type.
Source§impl From<obs_sceneitem_crop> for ObsSceneItemCrop
impl From<obs_sceneitem_crop> for ObsSceneItemCrop
Source§impl PartialEq for ObsSceneItemCrop
impl PartialEq for ObsSceneItemCrop
impl StructuralPartialEq for ObsSceneItemCrop
Auto Trait Implementations§
impl Freeze for ObsSceneItemCrop
impl RefUnwindSafe for ObsSceneItemCrop
impl Send for ObsSceneItemCrop
impl Sync for ObsSceneItemCrop
impl Unpin for ObsSceneItemCrop
impl UnsafeUnpin for ObsSceneItemCrop
impl UnwindSafe for ObsSceneItemCrop
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