FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ShowPointerPositionBehavior

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

    struct ShowPointerPositionBehavior
    

    Shows the position of the pointer over the associated control in the target text block.

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

    Returns a strong reference to this object.

    Source

    target_text_block_property

    fn target_text_block_property() -> &'static StyledProperty<Option<ElementRef<TextBlock>>>
    

    Identifies the TargetTextBlock property.

    Deviation (DEVIATIONS.md, Behaviors): the behavior does not own the text block, so the value is an element reference.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a behavior.

    Source

    target_text_block

    fn target_text_block(self: &Self) -> Option<Ref<TextBlock>>
    

    Gets or sets the text block that shows the position. Markup resolves a name given for it to the named element. This is a property of the object model.

    Source

    set_target_text_block

    fn set_target_text_block(self: &Self, value: impl Into<Nullable<TextBlock>>)
    

    Source

    Trait implementations

    Availability

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