# PopupProps

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

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

```rust
trait PopupProps: ElementBuilder
```

The properties and routed events of `Popup`.

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

## Members

- [`window_manager_add_shadow_hint`](#function-window_manager_add_shadow_hint)
- [`inherits_transform`](#function-inherits_transform)
- [`is_open`](#function-is_open)
- [`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)
- [`custom_popup_placement_callback`](#function-custom_popup_placement_callback)
- [`overlay_dismiss_event_pass_through`](#function-overlay_dismiss_event_pass_through)
- [`horizontal_offset`](#function-horizontal_offset)
- [`is_light_dismiss_enabled`](#function-is_light_dismiss_enabled)
- [`vertical_offset`](#function-vertical_offset)
- [`topmost`](#function-topmost)
- [`takes_focus_from_native_control`](#function-takes_focus_from_native_control)
- [`should_use_overlay_layer`](#function-should_use_overlay_layer)

<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 `Popup::window_manager_add_shadow_hint_property`.

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

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

### inherits_transform

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

Sets `Popup::inherits_transform_property`.

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

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

### is_open

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

Sets `Popup::is_open_property`.

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

<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 `Popup::placement_anchor_property`.

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

<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 `Popup::placement_constraint_adjustment_property`.

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

<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 `Popup::placement_gravity_property`.

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

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

### placement

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

Sets `Popup::placement_property`.

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

<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 `Popup::placement_rect_property`.

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

<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 `Popup::custom_popup_placement_callback_property`.

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

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

### overlay_dismiss_event_pass_through

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

Sets `Popup::overlay_dismiss_event_pass_through_property`.

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

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

### horizontal_offset

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

Sets `Popup::horizontal_offset_property`.

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

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

### is_light_dismiss_enabled

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

Sets `Popup::is_light_dismiss_enabled_property`.

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

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

### vertical_offset

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

Sets `Popup::vertical_offset_property`.

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

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

### topmost

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

Sets `Popup::topmost_property`.

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

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

### takes_focus_from_native_control

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

Sets `Popup::takes_focus_from_native_control_property`.

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

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

### should_use_overlay_layer

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

Sets `Popup::should_use_overlay_layer_property`.

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

## Trait implementations

- [`PopupProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-popupprops/)

## Availability

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