pub enum RelativeUnit {
Relative,
Absolute,
}Expand description
Defines the reference point units of a RelativePoint or RelativeRect.
Variants§
Relative
The point is expressed as a fraction of the containing element’s size.
Absolute
The point is absolute (i.e. in pixels).
Trait Implementations§
Source§impl BatchValue for RelativeUnit
impl BatchValue for RelativeUnit
Source§impl Clone for RelativeUnit
impl Clone for RelativeUnit
impl Copy for RelativeUnit
Source§impl Debug for RelativeUnit
impl Debug for RelativeUnit
Source§impl Default for RelativeUnit
impl Default for RelativeUnit
impl Eq for RelativeUnit
Source§impl ExpressionVariantValue for RelativeUnit
impl ExpressionVariantValue for RelativeUnit
Source§const FFI_VARIANT_TYPE: Option<VariantType>
const FFI_VARIANT_TYPE: Option<VariantType>
The variant type a foreign function parameter of this type is matched
against, or
None when the type cannot be a foreign function parameter.Source§fn try_from_variant(v: &ExpressionVariant) -> Option<Self>
fn try_from_variant(v: &ExpressionVariant) -> Option<Self>
Source§fn into_variant(self) -> ExpressionVariant
fn into_variant(self) -> ExpressionVariant
Source§impl From<RelativeUnit> for ExpressionVariant
impl From<RelativeUnit> for ExpressionVariant
Source§fn from(value: RelativeUnit) -> ExpressionVariant
fn from(value: RelativeUnit) -> ExpressionVariant
Converts to this type from the input type.
Source§impl Hash for RelativeUnit
impl Hash for RelativeUnit
Source§impl MarkupTyped for RelativeUnit
impl MarkupTyped for RelativeUnit
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Source§impl PartialEq for RelativeUnit
impl PartialEq for RelativeUnit
impl StructuralPartialEq for RelativeUnit
Auto Trait Implementations§
impl Freeze for RelativeUnit
impl RefUnwindSafe for RelativeUnit
impl Send for RelativeUnit
impl Sync for RelativeUnit
impl Unpin for RelativeUnit
impl UnsafeUnpin for RelativeUnit
impl UnwindSafe for RelativeUnit
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more