# TimelineLane

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer/struct-timelinelane/

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

```rust
struct TimelineLane
```



[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/timeline_lane.rs#L57)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`new`](#function-new)
- [`ruler`](#function-ruler)
- [`is_ruler`](#function-is_ruler)
- [`view_range`](#function-view_range)
- [`configure`](#function-configure)
- [`set_view`](#function-set_view)
- [`set_playhead`](#function-set_playhead)
- [`set_selected`](#function-set_selected)
- [`set_selected_keys`](#function-set_selected_keys)
- [`selected_keys`](#function-selected_keys)
- [`set_frame_rate`](#function-set_frame_rate)
- [`frame_rate`](#function-frame_rate)
- [`on_selection_changed`](#function-on_selection_changed)
- [`on_move_selection`](#function-on_move_selection)
- [`on_remove_selection`](#function-on_remove_selection)
- [`on_duplicate_selection`](#function-on_duplicate_selection)
- [`set_highlighted`](#function-set_highlighted)
- [`on_activate`](#function-on_activate)
- [`on_move`](#function-on_move)
- [`on_remove`](#function-on_remove)
- [`on_insert`](#function-on_insert)
- [`on_zoom`](#function-on_zoom)
- [`on_pan`](#function-on_pan)

<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.Designer/timeline_lane.rs#L84)

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

### to_ref

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

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/timeline_lane.rs#L84)

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

### new

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/timeline_lane.rs#L90)

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

### ruler

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/timeline_lane.rs#L125)

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

### is_ruler

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/timeline_lane.rs#L133)

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

### view_range

```rust
fn view_range(self: &Self) -> (f64, f64)
```

The visible time interval, shared by the ruler and every track in a host.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/timeline_lane.rs#L137)

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

### configure

```rust
fn configure(self: &Self, duration: f64, keys: Vec<f64>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/timeline_lane.rs#L140)

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

### set_view

```rust
fn set_view(self: &Self, start: f64, end: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/timeline_lane.rs#L167)

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

### set_playhead

```rust
fn set_playhead(self: &Self, time: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/timeline_lane.rs#L179)

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

### set_selected

```rust
fn set_selected(self: &Self, time: Option<f64>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/timeline_lane.rs#L189)

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

### set_selected_keys

```rust
fn set_selected_keys(self: &Self, times: Vec<f64>, primary: Option<f64>)
```

Accepts a host selection. Times not present in this lane are discarded.
The primary key is used for keyboard navigation and the contextual editor.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/timeline_lane.rs#L194)

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

### selected_keys

```rust
fn selected_keys(self: &Self) -> Vec<f64>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/timeline_lane.rs#L209)

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

### set_frame_rate

```rust
fn set_frame_rate(self: &Self, frames_per_second: Option<u32>)
```

Sets frame snapping and frame labels, or restores adaptive seconds snapping.
Supported rates are 1–1000 fps; invalid values restore seconds mode.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/timeline_lane.rs#L214)

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

### frame_rate

```rust
fn frame_rate(self: &Self) -> Option<u32>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/timeline_lane.rs#L229)

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

### on_selection_changed

```rust
fn on_selection_changed(self: &Self, callback: impl Fn(Vec<f64>, Option<f64>, bool) -> () + 'static)
```

Reports a completed local selection. `additive` preserves selections in other lanes.
No callback is emitted during a pointer gesture, so hosts may rebuild on completion.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/timeline_lane.rs#L234)

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

### on_move_selection

```rust
fn on_move_selection(self: &Self, callback: impl Fn(Vec<f64>, f64) -> () + 'static)
```

Reports one delta for all selected keys. The host commits it atomically.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/timeline_lane.rs#L238)

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

### on_remove_selection

```rust
fn on_remove_selection(self: &Self, callback: impl Fn(Vec<f64>) -> () + 'static)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/timeline_lane.rs#L241)

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

### on_duplicate_selection

```rust
fn on_duplicate_selection(self: &Self, callback: impl Fn(Vec<f64>, f64) -> () + 'static)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/timeline_lane.rs#L244)

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

### set_highlighted

```rust
fn set_highlighted(self: &Self, highlighted: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/timeline_lane.rs#L247)

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

### on_activate

```rust
fn on_activate(self: &Self, callback: impl Fn(f64) -> () + 'static)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/timeline_lane.rs#L251)

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

### on_move

```rust
fn on_move(self: &Self, callback: impl Fn(f64, f64) -> () + 'static)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/timeline_lane.rs#L254)

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

### on_remove

```rust
fn on_remove(self: &Self, callback: impl Fn(f64) -> () + 'static)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/timeline_lane.rs#L257)

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

### on_insert

```rust
fn on_insert(self: &Self, callback: impl Fn(f64) -> () + 'static)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/timeline_lane.rs#L260)

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

### on_zoom

```rust
fn on_zoom(self: &Self, callback: impl Fn(f64, f64) -> () + 'static)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/timeline_lane.rs#L263)

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

### on_pan

```rust
fn on_pan(self: &Self, callback: impl Fn(f64) -> () + 'static)
```

Requests a horizontal viewport shift, measured in timeline seconds.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/timeline_lane.rs#L267)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `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`
- [`InputElementImplExt`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimplext/)
- [`InteractiveImplExt`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimplext/)
- [`LayoutableImplExt`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimplext/)
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`StyledElementImplExt`](/docs/0.5.0/api/ferroui-base/trait-styledelementimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- [`VisualImplExt`](/docs/0.5.0/api/ferroui-base/trait-visualimplext/)
- `ErasedDestructor`
- `IntoEither`
- [`ControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-controlimplext/)
- `Same`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<TimelineLane>`](/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/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`LayoutableImpl`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimpl/)
- [`InteractiveImpl`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimpl/)
- [`ControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-controlimpl/)
- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)
- [`VisualImpl`](/docs/0.5.0/api/ferroui-base/trait-visualimpl/)

## Availability

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