pub struct SceneItemTransform {
pub position: Option<Position>,
pub rotation: Option<f32>,
pub scale: Option<Scale>,
pub alignment: Option<Alignment>,
pub bounds: Option<Bounds>,
pub crop: Option<Crop>,
}Expand description
Request information for crate::client::SceneItems::set_transform as part of
SetTransform.
Fields§
§position: Option<Position>Position (or offset) on the screen.
rotation: Option<f32>The clockwise rotation of the scene item in degrees around the point of alignment.
scale: Option<Scale>Scaling of the item.
alignment: Option<Alignment>The point on the source that the item is manipulated from.
bounds: Option<Bounds>Bound restrictions on the item.
crop: Option<Crop>Cropping values on up to 4 sides.
Implementations§
Source§impl SceneItemTransform
impl SceneItemTransform
Sourcepub fn builder() -> SceneItemTransformBuilder
pub fn builder() -> SceneItemTransformBuilder
Create an instance of SceneItemTransform using the builder syntax
Trait Implementations§
Source§impl Default for SceneItemTransform
impl Default for SceneItemTransform
Source§fn default() -> SceneItemTransform
fn default() -> SceneItemTransform
Returns the “default value” for a type. Read more
Source§impl From<SceneItemTransform> for SceneItemTransform
impl From<SceneItemTransform> for SceneItemTransform
Source§fn from(t: SceneItemTransform) -> Self
fn from(t: SceneItemTransform) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SceneItemTransform
impl RefUnwindSafe for SceneItemTransform
impl Send for SceneItemTransform
impl Sync for SceneItemTransform
impl Unpin for SceneItemTransform
impl UnsafeUnpin for SceneItemTransform
impl UnwindSafe for SceneItemTransform
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