FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MultiMouseDragElementBehavior

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

    struct MultiMouseDragElementBehavior
    

    Enables dragging of multiple controls with the mouse using TranslateTransforms: the associated control and the target_controls move together.

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

    Returns a strong reference to this object.

    Source

    target_controls_property

    fn target_controls_property() -> &'static DirectProperty<MultiMouseDragElementBehavior, Controls>
    

    Identifies the TargetControls property.

    Source

    constrain_to_parent_bounds_property

    fn constrain_to_parent_bounds_property() -> &'static StyledProperty<bool>
    

    Identifies the ConstrainToParentBounds property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates the behavior.

    Source

    target_controls

    fn target_controls(self: &Self) -> Controls
    

    Gets the collection of controls that should be dragged together (created on first use).

    Source

    constrain_to_parent_bounds

    fn constrain_to_parent_bounds(self: &Self) -> bool
    

    Gets or sets whether dragging should be constrained to the bounds of the parent control.

    Source

    set_constrain_to_parent_bounds

    fn set_constrain_to_parent_bounds(self: &Self, value: bool)
    

    Source

    Trait implementations

    Availability

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