Struct pax_runtime_api::CommonProperties
source · pub struct CommonProperties {
pub x: Option<Rc<RefCell<dyn PropertyInstance<Size>>>>,
pub y: Option<Rc<RefCell<dyn PropertyInstance<Size>>>>,
pub scale_x: Option<Rc<RefCell<dyn PropertyInstance<Numeric>>>>,
pub scale_y: Option<Rc<RefCell<dyn PropertyInstance<Numeric>>>>,
pub skew_x: Option<Rc<RefCell<dyn PropertyInstance<Numeric>>>>,
pub skew_y: Option<Rc<RefCell<dyn PropertyInstance<Numeric>>>>,
pub rotate: Option<Rc<RefCell<dyn PropertyInstance<Rotation>>>>,
pub anchor_x: Option<Rc<RefCell<dyn PropertyInstance<Size>>>>,
pub anchor_y: Option<Rc<RefCell<dyn PropertyInstance<Size>>>>,
pub transform: Rc<RefCell<dyn PropertyInstance<Transform2D>>>,
pub width: Rc<RefCell<dyn PropertyInstance<Size>>>,
pub height: Rc<RefCell<dyn PropertyInstance<Size>>>,
}
Fields§
§x: Option<Rc<RefCell<dyn PropertyInstance<Size>>>>
§y: Option<Rc<RefCell<dyn PropertyInstance<Size>>>>
§scale_x: Option<Rc<RefCell<dyn PropertyInstance<Numeric>>>>
§scale_y: Option<Rc<RefCell<dyn PropertyInstance<Numeric>>>>
§skew_x: Option<Rc<RefCell<dyn PropertyInstance<Numeric>>>>
§skew_y: Option<Rc<RefCell<dyn PropertyInstance<Numeric>>>>
§rotate: Option<Rc<RefCell<dyn PropertyInstance<Rotation>>>>
§anchor_x: Option<Rc<RefCell<dyn PropertyInstance<Size>>>>
§anchor_y: Option<Rc<RefCell<dyn PropertyInstance<Size>>>>
§transform: Rc<RefCell<dyn PropertyInstance<Transform2D>>>
§width: Rc<RefCell<dyn PropertyInstance<Size>>>
§height: Rc<RefCell<dyn PropertyInstance<Size>>>
Implementations§
source§impl CommonProperties
impl CommonProperties
pub fn get_property_identifiers() -> Vec<String>
source§impl CommonProperties
impl CommonProperties
pub fn get_default_properties_literal() -> Vec<(String, String)>
Trait Implementations§
Auto Trait Implementations§
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