# DesignerSession

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

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

```rust
struct DesignerSession
```

Shared UI-thread state. All authored changes pass through the same document history;
runtime load errors preserve both source and the last successfully rendered tree.

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

## Members

- [`timeline`](#function-timeline)
- [`animation_programs`](#function-animation_programs)
- [`active_animation_program`](#function-active_animation_program)
- [`animation_warnings`](#function-animation_warnings)
- [`time`](#function-time)
- [`is_playing`](#function-is_playing)
- [`recording`](#function-recording)
- [`set_recording`](#function-set_recording)
- [`register_animation_codec`](#function-register_animation_codec)
- [`select_animation_program`](#function-select_animation_program)
- [`create_animation_program`](#function-create_animation_program)
- [`remove_animation_program`](#function-remove_animation_program)
- [`rename_animation_program`](#function-rename_animation_program)
- [`duplicate_animation_program`](#function-duplicate_animation_program)
- [`set_animation_program_selector`](#function-set_animation_program_selector)
- [`set_animation_program_preview_targets`](#function-set_animation_program_preview_targets)
- [`set_animation_program_source`](#function-set_animation_program_source)
- [`update_animation_program`](#function-update_animation_program)
- [`seek`](#function-seek)
- [`play`](#function-play)
- [`play_all_animation_programs`](#function-play_all_animation_programs)
- [`set_interactive`](#function-set_interactive)
- [`pause`](#function-pause)
- [`stop`](#function-stop)
- [`preview_animation_programs`](#function-preview_animation_programs)
- [`advance`](#function-advance)
- [`set_duration`](#function-set_duration)
- [`record_keyframe`](#function-record_keyframe)
- [`move_keyframe`](#function-move_keyframe)
- [`remove_keyframe`](#function-remove_keyframe)
- [`set_keyframe_easing`](#function-set_keyframe_easing)
- [`commit_animation`](#function-commit_animation)
- [`component_catalog`](#function-component_catalog)
- [`visible_component_resources`](#function-visible_component_resources)
- [`component_resource_context`](#function-component_resource_context)
- [`component_resource_references`](#function-component_resource_references)
- [`prepare_component_edit`](#function-prepare_component_edit)
- [`commit_component_edit`](#function-commit_component_edit)
- [`edit_component`](#function-edit_component)
- [`copy_definition_for_instance`](#function-copy_definition_for_instance)
- [`set_property_object_source`](#function-set_property_object_source)
- [`enter_definition_scope`](#function-enter_definition_scope)
- [`enter_definition_scope_with_options`](#function-enter_definition_scope_with_options)
- [`exit_definition_scope`](#function-exit_definition_scope)
- [`definition_scope`](#function-definition_scope)
- [`definition_scope_epoch`](#function-definition_scope_epoch)
- [`definition_preview_options`](#function-definition_preview_options)
- [`design_time_enabled`](#function-design_time_enabled)
- [`set_design_time_enabled`](#function-set_design_time_enabled)
- [`design_time_properties`](#function-design_time_properties)
- [`apply_design_time_edits`](#function-apply_design_time_edits)
- [`design_preview_size`](#function-design_preview_size)
- [`rename_element`](#function-rename_element)
- [`focus_order_catalog`](#function-focus_order_catalog)
- [`focus_order_snapshot`](#function-focus_order_snapshot)
- [`commit_focus_order`](#function-commit_focus_order)
- [`state_groups`](#function-state_groups)
- [`active_preview_states`](#function-active_preview_states)
- [`upsert_state_group`](#function-upsert_state_group)
- [`remove_state_group`](#function-remove_state_group)
- [`preview_state`](#function-preview_state)
- [`preview_state_at`](#function-preview_state_at)
- [`advance_state_preview`](#function-advance_state_preview)
- [`state_group_actions`](#function-state_group_actions)
- [`state_group_transition_actions`](#function-state_group_transition_actions)
- [`behaviors`](#function-behaviors)
- [`upsert_behavior`](#function-upsert_behavior)
- [`remove_behavior`](#function-remove_behavior)
- [`set_behavior_source`](#function-set_behavior_source)
- [`preview_behavior`](#function-preview_behavior)
- [`clear_interaction_preview`](#function-clear_interaction_preview)
- [`layer_view_epoch`](#function-layer_view_epoch)
- [`layer_view_snapshot`](#function-layer_view_snapshot)
- [`restore_layer_view`](#function-restore_layer_view)
- [`reset_layer_view`](#function-reset_layer_view)
- [`layer_isolation`](#function-layer_isolation)
- [`layer_state`](#function-layer_state)
- [`can_canvas_select`](#function-can_canvas_select)
- [`ensure_layer_manipulable`](#function-ensure_layer_manipulable)
- [`set_layers_locked`](#function-set_layers_locked)
- [`set_layers_hidden`](#function-set_layers_hidden)
- [`isolate_layers`](#function-isolate_layers)
- [`clear_layer_isolation`](#function-clear_layer_isolation)
- [`capture_layer_edit`](#function-capture_layer_edit)
- [`apply_layer_edit`](#function-apply_layer_edit)
- [`apply_layer_command`](#function-apply_layer_command)
- [`preview_host_options`](#function-preview_host_options)
- [`preview_host_options_epoch`](#function-preview_host_options_epoch)
- [`configure_preview`](#function-configure_preview)
- [`open_native_preview`](#function-open_native_preview)
- [`close_native_preview`](#function-close_native_preview)
- [`copy_properties`](#function-copy_properties)
- [`copy_properties_from`](#function-copy_properties_from)
- [`prepare_property_paste`](#function-prepare_property_paste)
- [`commit_property_paste`](#function-commit_property_paste)
- [`plan_layout_reset`](#function-plan_layout_reset)
- [`reset_selection_layout`](#function-reset_selection_layout)
- [`plan_match_selection_size`](#function-plan_match_selection_size)
- [`match_selection_size`](#function-match_selection_size)
- [`new`](#function-new)
- [`with_uri`](#function-with_uri)
- [`layout_tools`](#function-layout_tools)
- [`layout_tools_mut`](#function-layout_tools_mut)
- [`property_tools`](#function-property_tools)
- [`property_tools_mut`](#function-property_tools_mut)
- [`align_selection`](#function-align_selection)
- [`distribute_selection`](#function-distribute_selection)
- [`document_uri`](#function-document_uri)
- [`mark_saved`](#function-mark_saved)
- [`set_document_uri`](#function-set_document_uri)
- [`open_document`](#function-open_document)
- [`restore_document`](#function-restore_document)
- [`is_read_only`](#function-is_read_only)
- [`set_read_only`](#function-set_read_only)
- [`document`](#function-document)
- [`selection`](#function-selection)
- [`generation`](#function-generation)
- [`can_manipulate`](#function-can_manipulate)
- [`preview_notices`](#function-preview_notices)
- [`preview_status`](#function-preview_status)
- [`preview_host`](#function-preview_host)
- [`select`](#function-select)
- [`apply`](#function-apply)
- [`apply_at`](#function-apply_at)
- [`update_source`](#function-update_source)
- [`stage_source`](#function-stage_source)
- [`apply_staged_preview`](#function-apply_staged_preview)
- [`undo`](#function-undo)
- [`redo`](#function-redo)
- [`can_undo`](#function-can_undo)
- [`can_redo`](#function-can_redo)
- [`enable_collaboration`](#function-enable_collaboration)
- [`join_collaboration`](#function-join_collaboration)
- [`leave_collaboration`](#function-leave_collaboration)
- [`collaboration_actor`](#function-collaboration_actor)
- [`collaboration_document_id`](#function-collaboration_document_id)
- [`collaboration_version`](#function-collaboration_version)
- [`collaboration_snapshot`](#function-collaboration_snapshot)
- [`collaboration_message`](#function-collaboration_message)
- [`collaboration_changes_since`](#function-collaboration_changes_since)
- [`collaboration_outbox_page`](#function-collaboration_outbox_page)
- [`collaboration_pending_operations`](#function-collaboration_pending_operations)
- [`take_collaboration_changes`](#function-take_collaboration_changes)
- [`collaboration_conflicts`](#function-collaboration_conflicts)
- [`collaboration_error`](#function-collaboration_error)
- [`merge_collaboration`](#function-merge_collaboration)
- [`discard_collaboration_draft`](#function-discard_collaboration_draft)
- [`resolve_collaboration_draft`](#function-resolve_collaboration_draft)
- [`presence_now`](#function-presence_now)
- [`current_presence`](#function-current_presence)
- [`receive_presence_now`](#function-receive_presence_now)
- [`presence_source_node`](#function-presence_source_node)
- [`local_presence`](#function-local_presence)
- [`receive_presence`](#function-receive_presence)
- [`presence`](#function-presence)
- [`set_property`](#function-set_property)
- [`reset_property`](#function-reset_property)
- [`apply_visual`](#function-apply_visual)
- [`runtime_tree`](#function-runtime_tree)
- [`selection_bounds`](#function-selection_bounds)
- [`refresh_runtime_mapping`](#function-refresh_runtime_mapping)
- [`can_edit_outline`](#function-can_edit_outline)
- [`edit_outline`](#function-edit_outline)
- [`matching_native_type_selection`](#function-matching_native_type_selection)
- [`select_matching_native_type`](#function-select_matching_native_type)
- [`edit_grid_tracks`](#function-edit_grid_tracks)
- [`layout_helper_snapshot`](#function-layout_helper_snapshot)
- [`selection_layout_helpers`](#function-selection_layout_helpers)
- [`preview_layout_move`](#function-preview_layout_move)
- [`preview_layout_move_cached`](#function-preview_layout_move_cached)
- [`preview_layout_insert`](#function-preview_layout_insert)
- [`preview_layout_insert_cached`](#function-preview_layout_insert_cached)
- [`preview_layout_handle`](#function-preview_layout_handle)
- [`commit_layout_preview`](#function-commit_layout_preview)
- [`plan_layout_action`](#function-plan_layout_action)
- [`apply_layout_action`](#function-apply_layout_action)
- [`runtime_layout_capabilities`](#function-runtime_layout_capabilities)

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

### timeline

```rust
fn timeline(self: &Self) -> &Timeline
```



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

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

### animation_programs

```rust
fn animation_programs(self: &Self) -> &[AnimationProgram]
```



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

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

### active_animation_program

```rust
fn active_animation_program(self: &Self) -> Option<NodeId>
```



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

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

### animation_warnings

```rust
fn animation_warnings(self: &Self) -> &[String]
```



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

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

### time

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



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

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

### is_playing

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



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

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

### recording

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



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

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

### set_recording

```rust
fn set_recording(self: &mut Self, value: bool)
```



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

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

### register_animation_codec

```rust
fn register_animation_codec(self: &mut Self, codec: Box<dyn AnimationCodec>)
```



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

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

### select_animation_program

```rust
fn select_animation_program(self: &mut Self, id: NodeId) -> Result<(), String>
```



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

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

### create_animation_program

```rust
fn create_animation_program(self: &mut Self, name: &str, owner: NodeId, selector: &str, duration: f64) -> Result<NodeId, String>
```



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

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

### remove_animation_program

```rust
fn remove_animation_program(self: &mut Self, id: NodeId) -> Result<(), String>
```



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

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

### rename_animation_program

```rust
fn rename_animation_program(self: &mut Self, id: NodeId, name: &str) -> Result<(), String>
```



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

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

### duplicate_animation_program

```rust
fn duplicate_animation_program(self: &mut Self, id: NodeId, name: &str) -> Result<NodeId, String>
```



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

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

### set_animation_program_selector

```rust
fn set_animation_program_selector(self: &mut Self, id: NodeId, selector: &str) -> Result<(), String>
```



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

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

### set_animation_program_preview_targets

```rust
fn set_animation_program_preview_targets(self: &mut Self, id: NodeId, targets: Option<Vec<NodeId>>) -> Result<(), String>
```

Assign preview-only targets for a resource program or a currently inactive selector.
None restores live selector matching. Authored selectors and source remain unchanged.

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

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

### set_animation_program_source

```rust
fn set_animation_program_source(self: &mut Self, id: NodeId, source: &str) -> Result<(), String>
```



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

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

### update_animation_program

```rust
fn update_animation_program(self: &mut Self, id: NodeId, timeline: Timeline) -> Result<(), String>
```

Replace a program's complete typed timing/track model through its registered codec.

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

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

### seek

```rust
fn seek(self: &mut Self, time: f64) -> Result<(), String>
```



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

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

### play

```rust
fn play(self: &mut Self)
```



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

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

### play_all_animation_programs

```rust
fn play_all_animation_programs(self: &mut Self)
```



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

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

### set_interactive

```rust
fn set_interactive(self: &mut Self, value: bool)
```



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

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

### pause

```rust
fn pause(self: &mut Self)
```



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

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

### stop

```rust
fn stop(self: &mut Self)
```



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

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

### preview_animation_programs

```rust
fn preview_animation_programs(self: &mut Self, ids: &[NodeId], elapsed: f64) -> Result<(), String>
```



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

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

### advance

```rust
fn advance(self: &mut Self, seconds: f64) -> Result<(), String>
```



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

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

### set_duration

```rust
fn set_duration(self: &mut Self, duration: f64) -> Result<(), String>
```



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

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

### record_keyframe

```rust
fn record_keyframe(self: &mut Self, target: NodeId, property: &str, value: AnimationValue) -> Result<(), String>
```



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

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

### move_keyframe

```rust
fn move_keyframe(self: &mut Self, target: NodeId, property: &str, from: f64, to: f64) -> Result<(), String>
```



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

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

### remove_keyframe

```rust
fn remove_keyframe(self: &mut Self, target: NodeId, property: &str, time: f64) -> Result<(), String>
```



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

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

### set_keyframe_easing

```rust
fn set_keyframe_easing(self: &mut Self, target: NodeId, property: &str, time: f64, easing: Easing) -> Result<(), String>
```



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

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

### commit_animation

```rust
fn commit_animation(self: &mut Self) -> Result<(), String>
```



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

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

### component_catalog

```rust
fn component_catalog(self: &Self) -> Result<ComponentCatalog, String>
```



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

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

### visible_component_resources

```rust
fn visible_component_resources(self: &Self, target: NodeId) -> Result<Vec<ComponentEntry>, String>
```



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

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

### component_resource_context

```rust
fn component_resource_context(self: &Self, target: NodeId) -> Option<ComponentResourceContext>
```

Theme lookup follows the accepted native target and its complete variant chain.
Opaque custom keys or an invalid/outdated preview retain conservative lookup.

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

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

### component_resource_references

```rust
fn component_resource_references(self: &Self, resource: NodeId) -> Result<Vec<ComponentReference>, String>
```



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

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

### prepare_component_edit

```rust
fn prepare_component_edit(self: &Self, action: &ComponentAction) -> Result<ComponentEditPreview, String>
```



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

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

### commit_component_edit

```rust
fn commit_component_edit(self: &mut Self, preview: &ComponentEditPreview) -> Result<(), String>
```



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

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

### edit_component

```rust
fn edit_component(self: &mut Self, action: ComponentAction) -> Result<(), String>
```



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

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

### copy_definition_for_instance

```rust
fn copy_definition_for_instance(self: &mut Self, definition: NodeId, target: NodeId, property: &str, key: &str) -> Result<NodeId, String>
```

Create an independent template/theme and apply it to one instance in a single
transaction. Shared definitions keep their original source and other instances.

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

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

### set_property_object_source

```rust
fn set_property_object_source(self: &mut Self, nodes: &[NodeId], property: &str, source: Option<&str>) -> Result<(), String>
```



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

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

### enter_definition_scope

```rust
fn enter_definition_scope(self: &mut Self, node: NodeId) -> Result<(), String>
```

Inspect and author a reusable definition in a native sample host. Entering a
scope changes no source, history, resource ownership or collaboration state.

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

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

### enter_definition_scope_with_options

```rust
fn enter_definition_scope_with_options(self: &mut Self, node: NodeId, options: DefinitionPreviewOptions) -> Result<(), String>
```



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

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

### exit_definition_scope

```rust
fn exit_definition_scope(self: &mut Self) -> Result<(), String>
```



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

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

### definition_scope

```rust
fn definition_scope(self: &Self) -> Option<&DefinitionScope>
```



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

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

### definition_scope_epoch

```rust
fn definition_scope_epoch(self: &Self) -> u64
```

Changes after accepted scope, design-data and preview-environment transitions,
including returning to the same definition. Source revisions alone cannot retire
an editor or spatial gesture when native preview conditions change.

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

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

### definition_preview_options

```rust
fn definition_preview_options(self: &Self) -> DefinitionPreviewOptions
```



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

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

### design_time_enabled

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



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

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

### set_design_time_enabled

```rust
fn set_design_time_enabled(self: &mut Self, enabled: bool) -> Result<(), String>
```

Presentation state; source and undo history remain untouched. Viewers can inspect
both the sample-data preview and the authored application values.

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

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

### design_time_properties

```rust
fn design_time_properties(self: &Self, node: NodeId) -> Result<Vec<DesignTimeProperty>, String>
```



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

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

### apply_design_time_edits

```rust
fn apply_design_time_edits(self: &mut Self, edits: &[DesignTimeEdit]) -> Result<(), String>
```



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

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

### design_preview_size

```rust
fn design_preview_size(self: &Self) -> (Option<f64>, Option<f64>)
```

The author-provided design size, independent from explicit environment presets.
Invalid/nonliteral hints return None. Explicit d:Width/Height remain control values.

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

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

### rename_element

```rust
fn rename_element(self: &mut Self, node: NodeId, name: &str) -> Result<(), String>
```

Rename one authored element and its resolved references in one undo transaction.
This command never records an animation key, even while recording is enabled.

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

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

### focus_order_catalog

```rust
fn focus_order_catalog(self: &Self) -> Result<FocusOrderCatalog, String>
```



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

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

### focus_order_snapshot

```rust
fn focus_order_snapshot(self: &Self) -> Result<FocusOrderSnapshot, String>
```



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

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

### commit_focus_order

```rust
fn commit_focus_order(self: &mut Self, snapshot: &FocusOrderSnapshot, commands: &[FocusOrderEdit]) -> Result<(), String>
```

Validate the entire staged dialog before making its single source/undo commit.
Navigation changes are not animation keyframes and do not move runtime focus.

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

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

### state_groups

```rust
fn state_groups(self: &Self) -> Vec<VisualStateGroup>
```



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

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

### active_preview_states

```rust
fn active_preview_states(self: &Self) -> Vec<(NodeId, String, String)>
```

The currently previewed native state endpoints. This is local presentation
state and does not synthesize state declarations or edit the authored source.

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

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

### upsert_state_group

```rust
fn upsert_state_group(self: &mut Self, group: VisualStateGroup) -> Result<(), String>
```



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

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

### remove_state_group

```rust
fn remove_state_group(self: &mut Self, owner: NodeId, name: &str) -> Result<(), String>
```



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

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

### preview_state

```rust
fn preview_state(self: &mut Self, owner: NodeId, name: &str, state: Option<&str>) -> Result<(), String>
```



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

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

### preview_state_at

```rust
fn preview_state_at(self: &mut Self, owner: NodeId, name: &str, state: Option<&str>, elapsed: Option<f64>) -> Result<(), String>
```

Preview a state at a transition-relative time, or at its endpoint when elapsed is None.
Native animation instances resolve resources and bindings; authored local values remain
in the document and Stop rebuilds the authored preview.

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

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

### advance_state_preview

```rust
fn advance_state_preview(self: &mut Self, seconds: f64) -> Result<(), String>
```



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

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

### state_group_actions

```rust
fn state_group_actions(self: &Self, owner: NodeId, name: &str, to: &str) -> Result<Vec<BehaviorAction>, String>
```



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

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

### state_group_transition_actions

```rust
fn state_group_transition_actions(self: &Self, owner: NodeId, name: &str, from: Option<&str>, to: &str) -> Result<Vec<BehaviorAction>, String>
```



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

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

### behaviors

```rust
fn behaviors(self: &Self, owner: NodeId) -> Vec<BehaviorModel>
```



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

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

### upsert_behavior

```rust
fn upsert_behavior(self: &mut Self, model: BehaviorModel) -> Result<NodeId, String>
```



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

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

### remove_behavior

```rust
fn remove_behavior(self: &mut Self, id: NodeId) -> Result<(), String>
```



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

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

### set_behavior_source

```rust
fn set_behavior_source(self: &mut Self, id: NodeId, source: &str) -> Result<(), String>
```



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

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

### preview_behavior

```rust
fn preview_behavior(self: &mut Self, id: NodeId) -> Result<(), String>
```

Execute the real attached trigger's actions, preserving bindings, name scopes and
custom IAction implementations. The host must be attached to a rooted logical tree
so native action styles, bindings and lifecycle hooks have run. Stop/reload restores
the authored preview afterwards.

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

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

### clear_interaction_preview

```rust
fn clear_interaction_preview(self: &mut Self)
```



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

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

### layer_view_epoch

```rust
fn layer_view_epoch(self: &Self) -> u64
```



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

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

### layer_view_snapshot

```rust
fn layer_view_snapshot(self: &Self) -> LayerViewSnapshot
```



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

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

### restore_layer_view

```rust
fn restore_layer_view(self: &mut Self, snapshot: &LayerViewSnapshot) -> bool
```



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

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

### reset_layer_view

```rust
fn reset_layer_view(self: &mut Self)
```



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

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

### layer_isolation

```rust
fn layer_isolation(self: &Self) -> &[NodeId]
```

Current scope's isolated roots, in source order. Empty means normal editing.

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

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

### layer_state

```rust
fn layer_state(self: &Self, node: NodeId) -> LayerState
```



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

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

### can_canvas_select

```rust
fn can_canvas_select(self: &Self, node: NodeId) -> bool
```

Canvas selection respects ancestor locks/visibility and the active definition and
isolation scopes. The source Layers inspector deliberately uses ordinary select().

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

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

### ensure_layer_manipulable

```rust
fn ensure_layer_manipulable(self: &Self, node: NodeId) -> Result<(), String>
```

Shared guard for canvas, arrangement, hierarchy moves and layout extensions.
This is presentation protection, not an authorization check: callers still use
the normal writable/revision/preview checks before accepting authored changes.

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

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

### set_layers_locked

```rust
fn set_layers_locked(self: &mut Self, nodes: &[NodeId], locked: bool) -> Result<(), String>
```



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

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

### set_layers_hidden

```rust
fn set_layers_hidden(self: &mut Self, nodes: &[NodeId], hidden: bool) -> Result<(), String>
```



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

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

### isolate_layers

```rust
fn isolate_layers(self: &mut Self, nodes: &[NodeId]) -> Result<(), String>
```



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

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

### clear_layer_isolation

```rust
fn clear_layer_isolation(self: &mut Self)
```



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

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

### capture_layer_edit

```rust
fn capture_layer_edit(self: &Self, nodes: &[NodeId]) -> Result<LayerEditSnapshot, String>
```



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

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

### apply_layer_edit

```rust
fn apply_layer_edit(self: &mut Self, snapshot: &LayerEditSnapshot, command: LayerCommand) -> Result<(), String>
```



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

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

### apply_layer_command

```rust
fn apply_layer_command(self: &mut Self, command: LayerCommand) -> Result<(), String>
```



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

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

### preview_host_options

```rust
fn preview_host_options(self: &Self) -> PreviewHostOptions
```

Clone construction services for independent preview hosts. Native controls,
document histories and reload-session ownership are never shared by this value.

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

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

### preview_host_options_epoch

```rust
fn preview_host_options_epoch(self: &Self) -> u64
```

Changes only after accepted construction-service configuration, not when
switching documents, focusing design-data variants or selecting authored nodes.

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

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

### configure_preview

```rust
fn configure_preview(self: &mut Self, options: PreviewHostOptions) -> Result<(), String>
```



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

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

### open_native_preview

```rust
fn open_native_preview(self: &mut Self) -> Result<Ref<Window>, String>
```

Opens the actual platform Window, including native decorations and registered class
behavior. A non-Window document is hosted inside a normal platform Window.

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

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

### close_native_preview

```rust
fn close_native_preview(self: &mut Self)
```



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

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

### copy_properties

```rust
fn copy_properties(self: &Self) -> Result<PropertyClipboard, String>
```

Capture the selected element's authored appearance. Reading is available to
collaboration viewers; bindings and context-dependent object graphs are reported.

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

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

### copy_properties_from

```rust
fn copy_properties_from(self: &Self, node: NodeId) -> Result<PropertyClipboard, String>
```

Capture an explicit authored source without changing selection. Native preview
ownership limits this to the current document/definition scope. Hidden or locked
source layers may be read; destination protections are enforced independently.

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

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

### prepare_property_paste

```rust
fn prepare_property_paste(self: &Self, clipboard: &PropertyClipboard, property_names: &[String]) -> Result<PropertyPastePreview, String>
```

Plan explicitly chosen clipboard properties for the complete current selection.
Each destination uses its real native metadata and its authored lexical aliases.
This method performs no source writes and remains available to viewers.

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

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

### commit_property_paste

```rust
fn commit_property_paste(self: &mut Self, preview: &PropertyPastePreview) -> Result<(), String>
```

Commit the reviewed plan as one ordinary source transaction. Appearance pasting
does not create animation keys, even while timeline recording is enabled.

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

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

### plan_layout_reset

```rust
fn plan_layout_reset(self: &Self, nodes: &[NodeId], reset: LayoutReset) -> Result<Vec<Edit>, String>
```

Plan a selective reset against current authored control layers. Metadata resolves
owner-qualified aliases to actual native property IDs; foreign homonyms are retained.
Planning is observational and remains available to collaboration viewers.

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

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

### reset_selection_layout

```rust
fn reset_selection_layout(self: &mut Self, reset: LayoutReset) -> Result<(), String>
```

Reset the current selection as one ordinary source transaction, including while
animation recording is enabled. A no-op does not add an undo entry or reload preview.

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

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

### plan_match_selection_size

```rust
fn plan_match_selection_size(self: &Self, mode: LayoutMatch) -> Result<Vec<Edit>, String>
```

Plan a measured resize for every selected control after the first. Each destination's
registered layout adapter owns its positioning rules. Native min/max constraints,
bindings and object-valued layout properties must permit the complete operation.
The plan retains the untouched dimension and Canvas axis for Width/Height commands.
Planning is observational and remains available to collaboration viewers.

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

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

### match_selection_size

```rust
fn match_selection_size(self: &mut Self, mode: LayoutMatch) -> Result<(), String>
```

Apply size matching in one undo step without recording animation keys.

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

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

### new

```rust
fn new(source: impl Into<String>, preview_host: Ref<ContentControl>) -> Result<Self, String>
```



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

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

### with_uri

```rust
fn with_uri(source: impl Into<String>, preview_host: Ref<ContentControl>, uri: String) -> Result<Self, String>
```

Supply the original document URI when includes and relative resource references matter.

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

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

### layout_tools

```rust
fn layout_tools(self: &Self) -> &ferroui_designer_tools::LayoutRegistry
```

Register custom panel planners without replacing the native manipulation surface.

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

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

### layout_tools_mut

```rust
fn layout_tools_mut(self: &mut Self) -> &mut ferroui_designer_tools::LayoutRegistry
```



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

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

### property_tools

```rust
fn property_tools(self: &Self) -> &ferroui_designer_tools::PropertyRegistry
```



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

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

### property_tools_mut

```rust
fn property_tools_mut(self: &mut Self) -> &mut ferroui_designer_tools::PropertyRegistry
```



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

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

### align_selection

```rust
fn align_selection(self: &mut Self, alignment: ferroui_designer_tools::Alignment) -> Result<(), String>
```



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

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

### distribute_selection

```rust
fn distribute_selection(self: &mut Self, axis: ferroui_designer_tools::Axis) -> Result<(), String>
```



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

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

### document_uri

```rust
fn document_uri(self: &Self) -> &str
```



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

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

### mark_saved

```rust
fn mark_saved(self: &mut Self)
```

Record a successful write of the current authored buffer.

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

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

### set_document_uri

```rust
fn set_document_uri(self: &mut Self, uri: String) -> Result<(), String>
```

Change the base URI after Save As without replacing source history or collaboration.

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

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

### open_document

```rust
fn open_document(self: &mut Self, source: String, uri: String) -> Result<(), String>
```

Open a different document, clearing selection/history/sharing. Revision stays monotonic
so automation holding a revision from the previous document cannot edit the new one.
Hosts must resolve unsaved work before calling this explicit replacement command.

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

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

### restore_document

```rust
fn restore_document(self: &mut Self, document: Document, uri: String) -> Result<(), String>
```

Restore a tab buffer, including its undo history, onto this host's revision sequence.

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

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

### is_read_only

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

Viewer sessions may inspect and play previews while all authored edits are rejected.

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

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

### set_read_only

```rust
fn set_read_only(self: &mut Self, value: bool)
```



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

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

### document

```rust
fn document(self: &Self) -> &Document
```



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

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

### selection

```rust
fn selection(self: &Self) -> &[NodeId]
```



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

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

### generation

```rust
fn generation(self: &Self) -> u64
```

Changes on selection and timeline edits as well as document revisions.

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

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

### can_manipulate

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



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

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

### preview_notices

```rust
fn preview_notices(self: &Self) -> &[String]
```



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

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

### preview_status

```rust
fn preview_status(self: &Self) -> &PreviewStatus
```



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

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

### preview_host

```rust
fn preview_host(self: &Self) -> Ref<ContentControl>
```



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

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

### select

```rust
fn select(self: &mut Self, ids: impl IntoIterator<Item = NodeId>)
```



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

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

### apply

```rust
fn apply(self: &mut Self, label: impl Into<String>, edits: Vec<Edit>) -> Result<ChangeSet, DesignerError>
```



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

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

### apply_at

```rust
fn apply_at(self: &mut Self, expected_revision: u64, label: impl Into<String>, edits: Vec<Edit>) -> Result<ChangeSet, DesignerError>
```



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

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

### update_source

```rust
fn update_source(self: &mut Self, source: impl Into<String>) -> SourceUpdate
```



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

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

### stage_source

```rust
fn stage_source(self: &mut Self, source: impl Into<String>) -> SourceUpdate
```

Accept source-buffer text immediately; a host can debounce only expensive runtime reload.

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

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

### apply_staged_preview

```rust
fn apply_staged_preview(self: &mut Self) -> Result<(), String>
```



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

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

### undo

```rust
fn undo(self: &mut Self) -> Result<ChangeSet, DesignerError>
```



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

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

### redo

```rust
fn redo(self: &mut Self) -> Result<ChangeSet, DesignerError>
```



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

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

### can_undo

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



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

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

### can_redo

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



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

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

### enable_collaboration

```rust
fn enable_collaboration(self: &mut Self, actor: impl Into<String>, document_id: impl Into<String>) -> Result<(), String>
```

Starts a transport-independent collaboration session. Hosts authenticate peers and carry
SyncMessage envelopes over their existing transport; constructing a session opens no socket.

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

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

### join_collaboration

```rust
fn join_collaboration(self: &mut Self, actor: impl Into<String>, snapshot: Snapshot) -> Result<(), String>
```



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

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

### leave_collaboration

```rust
fn leave_collaboration(self: &mut Self)
```

Detach transport/sharing while preserving the authored document and its history.

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

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

### collaboration_actor

```rust
fn collaboration_actor(self: &Self) -> Option<&str>
```

Identity of the currently attached replica, independent of document URI changes.

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

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

### collaboration_document_id

```rust
fn collaboration_document_id(self: &Self) -> Option<&str>
```



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

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

### collaboration_version

```rust
fn collaboration_version(self: &Self) -> Option<VersionVector>
```



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

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

### collaboration_snapshot

```rust
fn collaboration_snapshot(self: &Self) -> Result<Snapshot, String>
```



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

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

### collaboration_message

```rust
fn collaboration_message(self: &Self, operations: Vec<Operation>) -> Result<SyncMessage, String>
```



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

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

### collaboration_changes_since

```rust
fn collaboration_changes_since(self: &Self, version: &VersionVector) -> Result<SyncMessage, String>
```



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

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

### collaboration_outbox_page

```rust
fn collaboration_outbox_page(self: &Self, version: &VersionVector) -> Result<SyncMessage, String>
```

Page only this writer's outbox, keeping offline uploads within the collaboration wire
budget without allowing other actors' operation payloads to consume the page.

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

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

### collaboration_pending_operations

```rust
fn collaboration_pending_operations(self: &Self, version: &VersionVector) -> Result<usize, String>
```



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

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

### take_collaboration_changes

```rust
fn take_collaboration_changes(self: &mut Self) -> Result<SyncMessage, String>
```



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

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

### collaboration_conflicts

```rust
fn collaboration_conflicts(self: &Self) -> Vec<Conflict>
```



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

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

### collaboration_error

```rust
fn collaboration_error(self: &Self) -> Option<&str>
```



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

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

### merge_collaboration

```rust
fn merge_collaboration(self: &mut Self, message: SyncMessage) -> Result<MergeReport, String>
```

Remote operations are merged atomically. A local source draft remains visible and its
original compare-and-set base is retained; remote changes cannot silently erase it.

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

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

### discard_collaboration_draft

```rust
fn discard_collaboration_draft(self: &mut Self) -> Result<ChangeSet, String>
```

Explicitly discard the local draft in favor of the merged collaboration projection.

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

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

### resolve_collaboration_draft

```rust
fn resolve_collaboration_draft(self: &mut Self, expected_version: &VersionVector, source: String) -> Result<(), String>
```

The host presents both sources and obtains an explicit merged result. A version guard
prevents applying that resolution after another peer has advanced the shared document.

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

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

### presence_now

```rust
fn presence_now(self: &Self) -> u64
```

Receiver-owned monotonic time shared by native overlays and all MCP providers.

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

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

### current_presence

```rust
fn current_presence(self: &Self, ttl_millis: u64) -> Vec<Presence>
```



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

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

### receive_presence_now

```rust
fn receive_presence_now(self: &mut Self, presence: Presence) -> Result<bool, String>
```



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

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

### presence_source_node

```rust
fn presence_source_node(self: &Self, shared: &ferroui_designer_collaboration::SharedNodeId) -> Option<NodeId>
```

Map a shared identity into the current authored document without conflating the replica's
node IDs with this host's IDs. Conflicting source drafts deliberately have no peer mapping.

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

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

### local_presence

```rust
fn local_presence(self: &mut Self, display_name: String, cursor: Option<Cursor>) -> Result<Presence, String>
```



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

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

### receive_presence

```rust
fn receive_presence(self: &mut Self, presence: Presence, now_millis: u64) -> Result<bool, String>
```



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

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

### presence

```rust
fn presence(self: &Self, now_millis: u64, ttl_millis: u64) -> Vec<Presence>
```



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

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

### set_property

```rust
fn set_property(self: &mut Self, nodes: &[NodeId], name: &str, value: &str) -> Result<(), String>
```

A property edit records into the timeline when recording is enabled; ordinary edits
write an attribute. Explicit resource/binding expressions remain ordinary XAML edits.

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

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

### reset_property

```rust
fn reset_property(self: &mut Self, nodes: &[NodeId], name: &str) -> Result<(), String>
```

Explicit reset removes either an attribute or a property element in one undoable edit.

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

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

### apply_visual

```rust
fn apply_visual(self: &mut Self, label: &str, edits: Vec<Edit>) -> Result<(), String>
```

Visual manipulators use the same recording path as property editors. All keyframes from
one gesture and any required anchor cleanup become a single source/history transaction.

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

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

### runtime_tree

```rust
fn runtime_tree(self: &Self, kind: TreeKind) -> Vec<RuntimeNode>
```



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

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

### selection_bounds

```rust
fn selection_bounds(self: &Self, relative_to: &Ref<Visual>) -> Vec<(NodeId, Rect)>
```



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

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

### refresh_runtime_mapping

```rust
fn refresh_runtime_mapping(self: &mut Self)
```



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

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

### can_edit_outline

```rust
fn can_edit_outline(self: &Self, command: OutlineCommand) -> bool
```

Tests whether a structural command can change the current authored selection.

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

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

### edit_outline

```rust
fn edit_outline(self: &mut Self, command: OutlineCommand) -> Result<(), String>
```

Applies a tree structural command in one source/undo transaction. A boundary no-op
leaves revision/history untouched, and rejected selections are never partly moved.

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

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

### matching_native_type_selection

```rust
fn matching_native_type_selection(self: &Self) -> Result<Vec<NodeId>, String>
```

Finds the primary selection's exact native type in the current authored preview
scope. Namespace aliases converge through TypeInfo identity; derived and unrelated
same-named application types remain distinct. The primary seed stays first.

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

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

### select_matching_native_type

```rust
fn select_matching_native_type(self: &mut Self) -> Result<(), String>
```

Local selection command, including in read-only/viewer sessions. No authored
properties, source history, animation keys, or collaboration edits are produced.

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

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

### edit_grid_tracks

```rust
fn edit_grid_tracks(self: &mut Self, panel: NodeId, axis: Axis, change: GridTrackChange) -> Result<(), String>
```

Edits definitions and affected child cells in a single ordinary source transaction.
Grid structure is not recorded as an animation, even when recording is enabled.

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

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

### layout_helper_snapshot

```rust
fn layout_helper_snapshot(self: &Self, panel: NodeId, pointer: Option<Point>, dragged_nodes: &[NodeId]) -> Result<LayoutHelperSnapshot, String>
```

Measure one selected panel's helpers. The optional pointer is in artboard coordinates;
it is converted into the provider's panel-local space before resolving placement.

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

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

### selection_layout_helpers

```rust
fn selection_layout_helpers(self: &Self) -> Option<LayoutHelperSnapshot>
```

Contextual helpers for the selected container, or the common parent of selected
content. Unsupported or unavailable native layout has no idle overlay.

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

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

### preview_layout_move

```rust
fn preview_layout_move(self: &Self, nodes: &[NodeId], position: Point, delta: Point) -> Result<Option<LayoutEditPreview>, String>
```



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

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

### preview_layout_move_cached

```rust
fn preview_layout_move_cached(self: &Self, nodes: &[NodeId], position: Point, delta: Point, previous: Option<&LayoutEditPreview>) -> Result<Option<LayoutEditPreview>, String>
```

Preview insertion/reordering without touching live controls or source. Returning
None preserves ordinary translation inside the same free-layout parent. The cached
variant reuses validation when pointer movement retains the exact semantic edits.

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

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

### preview_layout_insert

```rust
fn preview_layout_insert(self: &Self, source: &str, position: Point) -> Result<LayoutEditPreview, String>
```



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

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

### preview_layout_insert_cached

```rust
fn preview_layout_insert_cached(self: &Self, source: &str, position: Point, previous: Option<&LayoutEditPreview>) -> Result<LayoutEditPreview, String>
```



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

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

### preview_layout_handle

```rust
fn preview_layout_handle(self: &Self, snapshot: &LayoutHelperSnapshot, handle_index: usize, delta: Point) -> Result<LayoutEditPreview, String>
```

Stage a handle displacement using the press-time snapshot. The returned preview can
be rendered freely; only commit_layout_preview performs an authored transaction.

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

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

### commit_layout_preview

```rust
fn commit_layout_preview(self: &mut Self, preview: &LayoutEditPreview) -> Result<(), String>
```

Apply the exact accepted edit list once after rechecking source and provider identity.
Structural placement and layout helpers remain ordinary source operations even while
recording animation, as their edits may include both properties and child ownership.

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

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

### plan_layout_action

```rust
fn plan_layout_action(self: &Self, action: LayoutAction) -> Result<Vec<Edit>, String>
```

Plans a panel-specific edit against the current, measured native preview.
The returned edits share the same coordinate and expression rules as pointer tools.

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

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

### apply_layout_action

```rust
fn apply_layout_action(self: &mut Self, action: LayoutAction, label: &str) -> Result<(), String>
```

Applies one measured layout operation as one undoable transaction. Hosts can use this
boundary for track/cell editors, docking pickers and registered panel property tools.

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

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

### runtime_layout_capabilities

```rust
fn runtime_layout_capabilities(self: &Self, node: NodeId) -> Option<ferroui_designer_tools::LayoutCapabilities>
```



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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Same`

## Availability

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