FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TypedDragBehaviorBase

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

    struct TypedDragBehaviorBase
    

    Behavior base class that initiates a drag operation for a specific data type: the press starts a drag only over an element whose data context is of the data_type.

    The class is abstract: a deriving class implements the members of TypedDragBehaviorBaseImpl.

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

    Returns a strong reference to this object.

    Source

    on_before_drag_drop

    fn on_before_drag_drop(self: &Self, sender: Option<&BoxedValue>, e: &PointerEventArgs, context: Option<&BoxedValue>)
    

    Called before the drag operation begins.

    Source

    on_after_drag_drop

    fn on_after_drag_drop(self: &Self, sender: Option<&BoxedValue>, e: &PointerEventArgs, context: Option<&BoxedValue>)
    

    Called after the drag operation completes.

    Source

    data_type_property

    fn data_type_property() -> &'static StyledProperty<Option<ValueType>>
    

    Identifies the DataType property.

    Deviation (DEVIATIONS.md, Behaviors): the Type of the reference is the value type of the framework (what {x:Type} gives in markup): the handle type of a class, the type of a model object or of a value.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    data_type

    fn data_type(self: &Self) -> Option<ValueType>
    

    Gets or sets the data type allowed for dragging.

    Source

    set_data_type

    fn set_data_type(self: &Self, value: Option<ValueType>)
    

    Source

    Trait implementations

    Availability

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