Struct pax_runtime_api::CommonProperties
source · pub struct CommonProperties {Show 13 fields
pub id: Option<Box<dyn PropertyInstance<String>>>,
pub x: Option<Box<dyn PropertyInstance<Size>>>,
pub y: Option<Box<dyn PropertyInstance<Size>>>,
pub scale_x: Option<Box<dyn PropertyInstance<Size>>>,
pub scale_y: Option<Box<dyn PropertyInstance<Size>>>,
pub skew_x: Option<Box<dyn PropertyInstance<Numeric>>>,
pub skew_y: Option<Box<dyn PropertyInstance<Numeric>>>,
pub rotate: Option<Box<dyn PropertyInstance<Rotation>>>,
pub anchor_x: Option<Box<dyn PropertyInstance<Size>>>,
pub anchor_y: Option<Box<dyn PropertyInstance<Size>>>,
pub transform: Box<dyn PropertyInstance<Transform2D>>,
pub width: Box<dyn PropertyInstance<Size>>,
pub height: Box<dyn PropertyInstance<Size>>,
}Fields§
§id: Option<Box<dyn PropertyInstance<String>>>§x: Option<Box<dyn PropertyInstance<Size>>>§y: Option<Box<dyn PropertyInstance<Size>>>§scale_x: Option<Box<dyn PropertyInstance<Size>>>§scale_y: Option<Box<dyn PropertyInstance<Size>>>§skew_x: Option<Box<dyn PropertyInstance<Numeric>>>§skew_y: Option<Box<dyn PropertyInstance<Numeric>>>§rotate: Option<Box<dyn PropertyInstance<Rotation>>>§anchor_x: Option<Box<dyn PropertyInstance<Size>>>§anchor_y: Option<Box<dyn PropertyInstance<Size>>>§transform: Box<dyn PropertyInstance<Transform2D>>§width: Box<dyn PropertyInstance<Size>>§height: Box<dyn PropertyInstance<Size>>Implementations§
source§impl CommonProperties
impl CommonProperties
pub fn get_default_properties_literal() -> Vec<(String, String)>
pub fn get_property_identifiers() -> Vec<(String, String)>
pub fn get_as_common_property() -> Vec<CommonProperty>
Trait Implementations§
source§impl Clone for CommonProperties
impl Clone for CommonProperties
source§fn clone(&self) -> CommonProperties
fn clone(&self) -> CommonProperties
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CommonProperties
impl Debug for CommonProperties
source§impl Default for CommonProperties
impl Default for CommonProperties
source§fn default() -> CommonProperties
fn default() -> CommonProperties
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommonProperties
impl !RefUnwindSafe for CommonProperties
impl !Send for CommonProperties
impl !Sync for CommonProperties
impl Unpin for CommonProperties
impl !UnwindSafe for CommonProperties
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
source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.