pub struct PersistedSceneItemState {Show 15 fields
pub position: [f32; 2],
pub scale: [f32; 2],
pub alignment: u32,
pub rotation: f32,
pub bounds: [f32; 2],
pub bounds_type: i64,
pub bounds_alignment: u32,
pub crop_to_bounds: bool,
pub crop: [i32; 4],
pub scale_filter: i64,
pub blend_method: i64,
pub blend_mode: i64,
pub visible: bool,
pub locked: bool,
pub order_position: i32,
}Fields§
§position: [f32; 2]§scale: [f32; 2]§alignment: u32§rotation: f32§bounds: [f32; 2]§bounds_type: i64§bounds_alignment: u32§crop_to_bounds: bool§crop: [i32; 4]§scale_filter: i64§blend_method: i64§blend_mode: i64§visible: bool§locked: bool§order_position: i32Implementations§
Source§impl PersistedSceneItemState
impl PersistedSceneItemState
pub fn from_snapshot(snapshot: &ObsSceneItemStateSnapshot) -> Self
pub fn to_snapshot( &self, ) -> Result<ObsSceneItemStateSnapshot, SceneCollectionError>
Trait Implementations§
Source§impl Clone for PersistedSceneItemState
impl Clone for PersistedSceneItemState
Source§impl Debug for PersistedSceneItemState
impl Debug for PersistedSceneItemState
Source§impl<'de> Deserialize<'de> for PersistedSceneItemState
impl<'de> Deserialize<'de> for PersistedSceneItemState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PersistedSceneItemState
impl PartialEq for PersistedSceneItemState
Source§impl Serialize for PersistedSceneItemState
impl Serialize for PersistedSceneItemState
impl StructuralPartialEq for PersistedSceneItemState
Auto Trait Implementations§
impl Forget for PersistedSceneItemState
impl Freeze for PersistedSceneItemState
impl Move for PersistedSceneItemState
impl RefUnwindSafe for PersistedSceneItemState
impl Send for PersistedSceneItemState
impl Sync for PersistedSceneItemState
impl Unpin for PersistedSceneItemState
impl UnsafeUnpin for PersistedSceneItemState
impl UnwindSafe for PersistedSceneItemState
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