GridDragBehavior
struct · ferroui-xaml-interactions-draggable · v0.5.0
struct GridDragBehavior
Allows dragging of grid child controls with optional layout copying: the associated control
swaps its column, row and spans (as the copy_* properties select) with the child of the
Grid (or the container of the ItemsControl) the pointer is over.
Members
TYPEto_refcopy_column_propertycopy_row_propertycopy_column_span_propertycopy_row_span_propertyconstructnewcopy_columnset_copy_columncopy_rowset_copy_rowcopy_column_spanset_copy_column_spancopy_row_spanset_copy_row_span
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<GridDragBehavior>
Returns a strong reference to this object.
copy_column_property
fn copy_column_property() -> &'static StyledProperty<bool>
Identifies the CopyColumn property.
copy_row_property
fn copy_row_property() -> &'static StyledProperty<bool>
Identifies the CopyRow property.
copy_column_span_property
fn copy_column_span_property() -> &'static StyledProperty<bool>
Identifies the CopyColumnSpan property.
copy_row_span_property
fn copy_row_span_property() -> &'static StyledProperty<bool>
Identifies the CopyRowSpan property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates the behavior.
copy_column
fn copy_column(self: &Self) -> bool
Gets or sets whether to copy the dragged element's column.
set_copy_column
fn set_copy_column(self: &Self, value: bool)
copy_row
fn copy_row(self: &Self) -> bool
Gets or sets whether to copy the dragged element's row.
set_copy_row
fn set_copy_row(self: &Self, value: bool)
copy_column_span
fn copy_column_span(self: &Self) -> bool
Gets or sets whether to copy the dragged element's column span.
set_copy_column_span
fn set_copy_column_span(self: &Self, value: bool)
copy_row_span
fn copy_row_span(self: &Self) -> bool
Gets or sets whether to copy the dragged element's row span.
set_copy_row_span
fn set_copy_row_span(self: &Self, value: bool)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<GridDragBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.