Struct pax_runtime_api::CommonProperties
source · pub struct CommonProperties {Show 13 fields
pub id: Option<Property<String>>,
pub x: Option<Property<Size>>,
pub y: Option<Property<Size>>,
pub scale_x: Option<Property<Size>>,
pub scale_y: Option<Property<Size>>,
pub skew_x: Option<Property<f64>>,
pub skew_y: Option<Property<f64>>,
pub rotate: Option<Property<Rotation>>,
pub anchor_x: Option<Property<Size>>,
pub anchor_y: Option<Property<Size>>,
pub transform: Property<Transform2D>,
pub width: Property<Size>,
pub height: Property<Size>,
}
Fields§
§id: Option<Property<String>>
§x: Option<Property<Size>>
§y: Option<Property<Size>>
§scale_x: Option<Property<Size>>
§scale_y: Option<Property<Size>>
§skew_x: Option<Property<f64>>
§skew_y: Option<Property<f64>>
§rotate: Option<Property<Rotation>>
§anchor_x: Option<Property<Size>>
§anchor_y: Option<Property<Size>>
§transform: Property<Transform2D>
§width: Property<Size>
§height: Property<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>
pub fn retrieve_property_scope(&self) -> HashMap<String, UntypedProperty>
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.