FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TiltEffectBehavior

    struct · ferroui-xaml-interactions-custom · v0.5.0

    struct TiltEffectBehavior
    

    A behavior that applies a 3D tilt rotation to the element based on the pointer position.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<TiltEffectBehavior>
    

    Returns a strong reference to this object.

    Source

    tilt_strength_property

    fn tilt_strength_property() -> &'static StyledProperty<f64>
    

    Identifies the TiltStrength property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a behavior.

    Source

    tilt_strength

    fn tilt_strength(self: &Self) -> f64
    

    Gets or sets the maximum tilt angle in degrees.

    Source

    set_tilt_strength

    fn set_tilt_strength(self: &Self, value: f64)
    

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.