FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TranslateTransform

    struct · ferroui-base · v0.5.0

    struct TranslateTransform
    

    Translates (moves) a visual.

    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<TranslateTransform>
    

    Returns a strong reference to this object.

    Source

    x_property

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

    Source

    y_property

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

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    with_offset

    fn with_offset(x: f64, y: f64) -> Ref<Self>
    

    Source

    x

    fn x(self: &Self) -> f64
    

    The horizontal offset.

    Source

    set_x

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

    Source

    y

    fn y(self: &Self) -> f64
    

    The vertical offset.

    Source

    set_y

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

    Source

    Trait implementations

    Availability

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