FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    BoundsObserverBehavior

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

    struct BoundsObserverBehavior
    

    Observes the bounds given to bounds (usually bound to the bounds of a control) and exposes their width and height.

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

    Returns a strong reference to this object.

    Source

    bounds_property

    fn bounds_property() -> &'static StyledProperty<Rect>
    

    Identifies the Bounds property.

    Source

    width_property

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

    Identifies the Width property.

    Source

    height_property

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

    Identifies the Height 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

    bounds

    fn bounds(self: &Self) -> Rect
    

    Gets or sets the observed bounds. This is a property of the object model.

    Source

    set_bounds

    fn set_bounds(self: &Self, value: Rect)
    

    Source

    width

    fn width(self: &Self) -> f64
    

    Gets or sets the width of the observed bounds. This is a property of the object model, bound in both directions by default.

    Source

    set_width

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

    Source

    height

    fn height(self: &Self) -> f64
    

    Gets or sets the height of the observed bounds. This is a property of the object model, bound in both directions by default.

    Source

    set_height

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

    Source

    Trait implementations

    Availability

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