# VirtualizingLayoutContext

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-repeater/layouts/struct-virtualizinglayoutcontext/

**struct** · [`ferroui-controls-repeater`](/docs/0.5.0/api/ferroui-controls-repeater/) · v0.5.0

```rust
struct VirtualizingLayoutContext
```



[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L142)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`item_count_core`](#function-item_count_core)
- [`get_item_at_core`](#function-get_item_at_core)
- [`get_or_create_element_at_core`](#function-get_or_create_element_at_core)
- [`recycle_element_core`](#function-recycle_element_core)
- [`visible_rect_core`](#function-visible_rect_core)
- [`realization_rect_core`](#function-realization_rect_core)
- [`recommended_anchor_index_core`](#function-recommended_anchor_index_core)
- [`layout_origin_core`](#function-layout_origin_core)
- [`set_layout_origin_core`](#function-set_layout_origin_core)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`with_host`](#function-with_host)
- [`item_count`](#function-item_count)
- [`get_item_at`](#function-get_item_at)
- [`get_or_create_element_at`](#function-get_or_create_element_at)
- [`get_or_create_element_at_with_options`](#function-get_or_create_element_at_with_options)
- [`recycle_element`](#function-recycle_element)
- [`visible_rect`](#function-visible_rect)
- [`realization_rect`](#function-realization_rect)
- [`recommended_anchor_index`](#function-recommended_anchor_index)
- [`layout_origin`](#function-layout_origin)
- [`set_layout_origin`](#function-set_layout_origin)
- [`is_virtualizing`](#function-is_virtualizing)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L146)

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<VirtualizingLayoutContext>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L146)

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

### item_count_core

```rust
fn item_count_core(self: &Self) -> i32
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L146)

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

### get_item_at_core

```rust
fn get_item_at_core(self: &Self, index: i32) -> Option<BoxedValue>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L146)

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

### get_or_create_element_at_core

```rust
fn get_or_create_element_at_core(self: &Self, index: i32, options: ElementRealizationOptions) -> Ref<Control>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L146)

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

### recycle_element_core

```rust
fn recycle_element_core(self: &Self, element: &Ref<Control>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L146)

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

### visible_rect_core

```rust
fn visible_rect_core(self: &Self) -> Rect
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L146)

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

### realization_rect_core

```rust
fn realization_rect_core(self: &Self) -> Rect
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L146)

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

### recommended_anchor_index_core

```rust
fn recommended_anchor_index_core(self: &Self) -> i32
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L146)

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

### layout_origin_core

```rust
fn layout_origin_core(self: &Self) -> Point
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L146)

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

### set_layout_origin_core

```rust
fn set_layout_origin_core(self: &Self, value: Point)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L146)

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

### construct

```rust
fn construct() -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L199)

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

### new

```rust
fn new() -> Ref<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L204)

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

### with_host

```rust
fn with_host(host: Rc<dyn LayoutContextHost>) -> Ref<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L207)

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

### item_count

```rust
fn item_count(self: &Self) -> i32
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L212)

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

### get_item_at

```rust
fn get_item_at(self: &Self, index: i32) -> Option<BoxedValue>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L215)

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

### get_or_create_element_at

```rust
fn get_or_create_element_at(self: &Self, index: i32) -> Ref<Control>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L218)

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

### get_or_create_element_at_with_options

```rust
fn get_or_create_element_at_with_options(self: &Self, index: i32, options: ElementRealizationOptions) -> Ref<Control>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L221)

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

### recycle_element

```rust
fn recycle_element(self: &Self, element: &Ref<Control>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L228)

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

### visible_rect

```rust
fn visible_rect(self: &Self) -> Rect
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L231)

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

### realization_rect

```rust
fn realization_rect(self: &Self) -> Rect
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L234)

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

### recommended_anchor_index

```rust
fn recommended_anchor_index(self: &Self) -> i32
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L237)

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

### layout_origin

```rust
fn layout_origin(self: &Self) -> Point
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L240)

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

### set_layout_origin

```rust
fn set_layout_origin(self: &Self, value: Point)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L243)

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

### is_virtualizing

```rust
fn is_virtualizing(self: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Repeater/layouts/layout_context.rs#L246)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`LayoutContextImplExt`](/docs/0.5.0/api/ferroui-controls-repeater/layouts/trait-layoutcontextimplext/)
- [`VirtualizingLayoutContextImplExt`](/docs/0.5.0/api/ferroui-controls-repeater/layouts/trait-virtualizinglayoutcontextimplext/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<VirtualizingLayoutContext>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`LayoutContextImpl`](/docs/0.5.0/api/ferroui-controls-repeater/layouts/trait-layoutcontextimpl/)
- [`VirtualizingLayoutContextImpl`](/docs/0.5.0/api/ferroui-controls-repeater/layouts/trait-virtualizinglayoutcontextimpl/)

## Availability

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