FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    VisualDebugBehavior

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

    struct VisualDebugBehavior
    

    A behavior that visualizes events on the attached control for debugging purposes: each time the event fires, the actions run and the control is highlighted for duration.

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

    Returns a strong reference to this object.

    Source

    highlight_color_property

    fn highlight_color_property() -> &'static StyledProperty<Color>
    

    Identifies the HighlightColor property.

    Source

    duration_property

    fn duration_property() -> &'static StyledProperty<Duration>
    

    Identifies the Duration property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a behavior.

    Source

    highlight_color

    fn highlight_color(self: &Self) -> Color
    

    Gets or sets the color used to highlight the control when the event fires.

    Source

    set_highlight_color

    fn set_highlight_color(self: &Self, value: Color)
    

    Source

    duration

    fn duration(self: &Self) -> Duration
    

    Gets or sets the duration of the highlight.

    Source

    set_duration

    fn set_duration(self: &Self, value: Duration)
    

    Source

    Trait implementations

    Availability

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