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.
Members
TYPEto_reftarget_controls_propertyconstrain_to_parent_bounds_propertyconstructnewtarget_controlsconstrain_to_parent_boundsset_constrain_to_parent_bounds
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<MultiMouseDragElementBehavior>
Returns a strong reference to this object.
target_controls_property
fn target_controls_property() -> &'static DirectProperty<MultiMouseDragElementBehavior, Controls>
Identifies the TargetControls property.
constrain_to_parent_bounds_property
fn constrain_to_parent_bounds_property() -> &'static StyledProperty<bool>
Identifies the ConstrainToParentBounds property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates the behavior.
target_controls
fn target_controls(self: &Self) -> Controls
Gets the collection of controls that should be dragged together (created on first use).
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.
set_constrain_to_parent_bounds
fn set_constrain_to_parent_bounds(self: &Self, value: bool)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<MultiMouseDragElementBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.