FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

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

    Returns a strong reference to this object.

    Source

    copy_column_property

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

    Identifies the CopyColumn property.

    Source

    copy_row_property

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

    Identifies the CopyRow property.

    Source

    copy_column_span_property

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

    Identifies the CopyColumnSpan property.

    Source

    copy_row_span_property

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

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

    copy_column

    fn copy_column(self: &Self) -> bool
    

    Gets or sets whether to copy the dragged element's column.

    Source

    set_copy_column

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

    Source

    copy_row

    fn copy_row(self: &Self) -> bool
    

    Gets or sets whether to copy the dragged element's row.

    Source

    set_copy_row

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

    Source

    copy_column_span

    fn copy_column_span(self: &Self) -> bool
    

    Gets or sets whether to copy the dragged element's column span.

    Source

    set_copy_column_span

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

    Source

    copy_row_span

    fn copy_row_span(self: &Self) -> bool
    

    Gets or sets whether to copy the dragged element's row span.

    Source

    set_copy_row_span

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

    Source

    Trait implementations

    Availability

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