# ContextMenuProps

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/generated/builders/trait-contextmenuprops/

**trait** · [`ferroui-view`](/docs/0.5.0/api/ferroui-view/) · v0.5.0

```rust
trait ContextMenuProps: ElementBuilder
```

The properties and routed events of `ContextMenu`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L3327)

## Members

- [`horizontal_offset`](#function-horizontal_offset)
- [`vertical_offset`](#function-vertical_offset)
- [`placement_anchor`](#function-placement_anchor)
- [`placement_constraint_adjustment`](#function-placement_constraint_adjustment)
- [`placement_gravity`](#function-placement_gravity)
- [`placement`](#function-placement)
- [`placement_rect`](#function-placement_rect)
- [`window_manager_add_shadow_hint`](#function-window_manager_add_shadow_hint)
- [`custom_popup_placement_callback`](#function-custom_popup_placement_callback)

<a id="function-horizontal_offset"></a>

### horizontal_offset

```rust
fn horizontal_offset<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
```

Sets `ContextMenu::horizontal_offset_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L3329)

<a id="function-vertical_offset"></a>

### vertical_offset

```rust
fn vertical_offset<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
```

Sets `ContextMenu::vertical_offset_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L3334)

<a id="function-placement_anchor"></a>

### placement_anchor

```rust
fn placement_anchor<M>(self: Self, value: impl IntoProp<ferroui_controls::primitives::popup_positioning::PopupAnchor, M>) -> Self
```

Sets `ContextMenu::placement_anchor_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L3339)

<a id="function-placement_constraint_adjustment"></a>

### placement_constraint_adjustment

```rust
fn placement_constraint_adjustment<M>(self: Self, value: impl IntoProp<ferroui_controls::primitives::popup_positioning::PopupPositionerConstraintAdjustment, M>) -> Self
```

Sets `ContextMenu::placement_constraint_adjustment_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L3344)

<a id="function-placement_gravity"></a>

### placement_gravity

```rust
fn placement_gravity<M>(self: Self, value: impl IntoProp<ferroui_controls::primitives::popup_positioning::PopupGravity, M>) -> Self
```

Sets `ContextMenu::placement_gravity_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L3349)

<a id="function-placement"></a>

### placement

```rust
fn placement<M>(self: Self, value: impl IntoProp<ferroui_controls::PlacementMode, M>) -> Self
```

Sets `ContextMenu::placement_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L3354)

<a id="function-placement_rect"></a>

### placement_rect

```rust
fn placement_rect<M>(self: Self, value: impl IntoProp<Option<ferroui_base::Rect>, M>) -> Self
```

Sets `ContextMenu::placement_rect_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L3359)

<a id="function-window_manager_add_shadow_hint"></a>

### window_manager_add_shadow_hint

```rust
fn window_manager_add_shadow_hint<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
```

Sets `ContextMenu::window_manager_add_shadow_hint_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L3364)

<a id="function-custom_popup_placement_callback"></a>

### custom_popup_placement_callback

```rust
fn custom_popup_placement_callback<M>(self: Self, value: impl IntoProp<Option<ferroui_controls::primitives::CustomPopupPlacementCallbackValue>, M>) -> Self
```

Sets `ContextMenu::custom_popup_placement_callback_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L3369)

## Trait implementations

- [`ContextMenuProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-contextmenuprops/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
