Skip to main content

ContextMenuProps

Trait ContextMenuProps 

Source
pub trait ContextMenuProps: ElementBuilder {
    // Provided methods
    fn horizontal_offset<M>(self, value: impl IntoProp<f64, M>) -> Self { ... }
    fn vertical_offset<M>(self, value: impl IntoProp<f64, M>) -> Self { ... }
    fn placement_anchor<M>(self, value: impl IntoProp<PopupAnchor, M>) -> Self { ... }
    fn placement_constraint_adjustment<M>(
        self,
        value: impl IntoProp<PopupPositionerConstraintAdjustment, M>,
    ) -> Self { ... }
    fn placement_gravity<M>(self, value: impl IntoProp<PopupGravity, M>) -> Self { ... }
    fn placement<M>(self, value: impl IntoProp<PlacementMode, M>) -> Self { ... }
    fn placement_rect<M>(self, value: impl IntoProp<Option<Rect>, M>) -> Self { ... }
    fn window_manager_add_shadow_hint<M>(
        self,
        value: impl IntoProp<bool, M>,
    ) -> Self { ... }
    fn custom_popup_placement_callback<M>(
        self,
        value: impl IntoProp<Option<CustomPopupPlacementCallbackValue>, M>,
    ) -> Self { ... }
}
Expand description

The properties and routed events of ContextMenu.

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§