FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ContextMenuEventArgs

    struct · ferroui-controls · v0.5.0

    struct ContextMenuEventArgs
    

    A text control's synchronous request to open its context menu.

    The coordinates are device-independent pixels relative to the visual root. Setting the inherited Handled flag cancels the associated menu request.

    View source

    Members

    new

    fn new(cursor_left: f64, cursor_top: f64) -> Self
    

    Creates arguments with fixed root-relative coordinates. The caller may associate a routed event before raising them.

    Source

    cursor_left

    fn cursor_left(self: &Self) -> f64
    

    Source

    cursor_top

    fn cursor_top(self: &Self) -> f64
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Receiver
    • Any
    • ToOwned
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • Default
    • Deref
    • IRoutedEventArgs
    • MarkupTyped

    Availability

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