MouseDragElementBehavior
struct · ferroui-xaml-interactions-draggable · v0.5.0
struct MouseDragElementBehavior
Enables dragging of a control with the mouse using a TranslateTransform.
Members
TYPEto_refconstrain_to_parent_bounds_propertyconstructnewconstrain_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<MouseDragElementBehavior>
Returns a strong reference to this object.
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.
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<MouseDragElementBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.