FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    DesignerWorkspace

    struct · ferroui-designer · v0.5.0

    struct DesignerWorkspace
    

    A native, embeddable workspace. The host retains the returned Rc for the lifetime of the view. Event callbacks capture it weakly, and dropping it stops the preview timer.

    View source

    Members

    layout_helpers_visible

    fn layout_helpers_visible(self: &Self) -> bool
    

    Source

    set_layout_helpers_visible

    fn set_layout_helpers_visible(self: &Self, visible: bool)
    

    Show panel-specific canvas features without changing the authored document.

    Source

    view_mode

    fn view_mode(self: &Self) -> WorkspaceViewMode
    

    Source

    set_view_mode

    fn set_view_mode(self: &Self, mode: WorkspaceViewMode)
    

    Switches the visible editor without reloading the document or applying pending text.

    Source

    navigation_pane

    fn navigation_pane(self: &Self) -> NavigationPane
    

    Source

    set_navigation_pane

    fn set_navigation_pane(self: &Self, pane: NavigationPane)
    

    Source

    timeline_visible

    fn timeline_visible(self: &Self) -> bool
    

    Source

    canvas_focused

    fn canvas_focused(self: &Self) -> bool
    

    Whether the workspace is temporarily giving its side docks and timeline to the canvas.

    Source

    set_canvas_focused

    fn set_canvas_focused(self: &Self, focused: bool)
    

    Temporarily hide the side docks and timeline without rebuilding their controls. Returning restores their measured widths, timeline height and previous visibility. Document selection, pending source, panel modes and scroll positions stay intact.

    Source

    set_timeline_visible

    fn set_timeline_visible(self: &Self, visible: bool)
    

    Restores a user's resized timeline height when reopening the pane.

    Source

    fit_artboard

    fn fit_artboard(self: &Self) -> Result<(), String>
    

    Fits the whole artboard using the measured viewport and the canvas padding.

    Source

    open_component_document

    fn open_component_document(self: &Rc<Self>, id: &str) -> Result<(), String>
    

    Open a provided control definition as a normal source tab, preserving the current document's dirty buffer and undo history. Existing tabs keep their current edits.

    Source

    component_library

    fn component_library(self: &Self) -> Option<Rc<ComponentLibrary>>
    

    Source

    register_component_definition

    fn register_component_definition(self: &Rc<Self>, asset: DesignerDefinitionAsset) -> Result<(), String>
    

    Register actual source for a custom control's design-time template or theme. Registration changes the library, never the active document or its history.

    Source

    register_component_document

    fn register_component_document(self: &Rc<Self>, uri: &str, source: &str) -> Result<usize, String>
    

    Catalog control roots, templates, themes and styles from a registered XAML document. Inherited namespace declarations are retained in each independently copyable fragment.

    Source

    register_component_documents

    fn register_component_documents<'a>(self: &Rc<Self>, documents: impl IntoIterator<Item = (&'a str, &'a str)>) -> Result<usize, String>
    

    Validate and register a group of source providers atomically, then refresh the Library once. An invalid source leaves every existing provider intact.

    Source

    copy_component_definition

    fn copy_component_definition(self: &Self, id: &str, owner: NodeId, key: &str) -> Result<NodeId, String>
    

    Create an independent authored copy of a registered definition and the local resources it requires. The complete import shares one undo/collaboration edit. Opening the resulting canvas scope remains a separate presentation operation.

    Source

    inspect_component

    fn inspect_component(self: &Rc<Self>, node: NodeId) -> Result<(), String>
    

    Browsing retains the canvas selection so a resource can be applied to it.

    Source

    create_component

    fn create_component(self: &Rc<Self>)
    

    Source

    edit_component_on_canvas

    fn edit_component_on_canvas(self: &Rc<Self>, node: NodeId) -> Result<(), String>
    

    Source

    return_to_document

    fn return_to_document(self: &Rc<Self>) -> Result<(), String>
    

    Source

    is_dirty

    fn is_dirty(self: &Self) -> bool
    

    Source

    open_document

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

    Open source at its URI, retaining the previous tab and its history. A newly opened document starts its own history and is detached from the previous collaboration room.

    Source

    request_close

    fn request_close(self: &Rc<Self>, close: impl Fn() -> () + 'static) -> bool
    

    Return true when a close request was deferred for a native save/discard/cancel prompt. The host supplies a callback that performs the already-approved close without prompting again.

    Source

    set_preview_dark

    fn set_preview_dark(self: &Self, dark: bool)
    

    Source

    save_file

    async fn save_file(self: &Rc<Self>, save_as: bool) -> Result<bool, String>
    

    Save the authored buffer, including incomplete XAML. Returns false on picker cancellation. The saved snapshot is tracked independently of later editor changes, so a concurrent change is never mistakenly marked saved. Existing files are checked for external changes.

    Source

    show_focus_order_editor

    fn show_focus_order_editor(self: &Rc<Self>) -> Result<(), String>
    

    Source

    edit_outline

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

    Runs a structural tree command after validating that the visible source hierarchy still describes the current document. The native grid retains/reveals selection.

    Source

    reveal_property_source

    fn reveal_property_source(self: &Rc<Self>, property: &str) -> Result<(), String>
    

    Select the original authored attribute or property element in the XAML editor. Navigation preserves selection, history and authored values.

    Source

    go_to_property_definition

    fn go_to_property_definition(self: &Rc<Self>, property: &str) -> Result<(), String>
    

    Navigate to a uniquely resolved resource or named binding source. Theme and name scopes are respected; ambiguous or external targets remain explicit errors.

    Source

    outline_grid

    fn outline_grid(self: &Self) -> Ref<TreeDataGrid>
    

    Source

    collapse_outline

    fn collapse_outline(self: &Self)
    

    Collapse the current source or runtime hierarchy while retaining the ancestors of the current selection. This is view state and creates no document edit.

    Source

    property_grid

    fn property_grid(self: &Self) -> Ref<TreeDataGrid>
    

    Source

    property_inspector_view

    fn property_inspector_view(self: &Self) -> PropertyInspectorView
    

    Current arrangement and value-source filter. These preferences never author XAML.

    Source

    set_property_inspector_view

    fn set_property_inspector_view(self: &Rc<Self>, view: PropertyInspectorView)
    

    Source

    clear_property_filters

    fn clear_property_filters(self: &Rc<Self>)
    

    Clear search and source filtering while retaining the selected arrangement.

    Source

    project_grid

    fn project_grid(self: &Self) -> Ref<TreeDataGrid>
    

    Source

    edit_layers

    fn edit_layers(self: &Rc<Self>, command: LayerCommand) -> Result<(), String>
    

    Runs a command against the current authored selection. Presentation commands do not flush a pending source buffer or create document/undo/collaboration operations.

    Source

    edit_layer_snapshot

    fn edit_layer_snapshot(self: &Rc<Self>, snapshot: &LayerEditSnapshot, command: LayerCommand) -> Result<(), String>
    

    Source rows retain guarded identities rather than reusing local NodeIds after a tab, source, scope or layer-view change. An obsolete row cannot hide or lock a new object.

    Source

    capture_canvas_selection

    fn capture_canvas_selection(self: &Self, position: Point) -> Result<CanvasSelectionSnapshot, String>
    

    Capture an explicit layer picker without selecting the control under the pointer. All coordinates and candidates come from the same native hit-testing path used by ordinary canvas selection and overlap cycling.

    Source

    select_canvas_layer

    fn select_canvas_layer(self: &Rc<Self>, snapshot: &CanvasSelectionSnapshot, node: NodeId) -> Result<(), String>
    

    Accept only a candidate from the captured hit stack while the complete source, view, selection, and native geometry still describe that context.

    Source

    select_matching_native_type

    fn select_matching_native_type(self: &Rc<Self>) -> Result<(), String>
    

    Source

    create_canvas_selection_menu

    fn create_canvas_selection_menu(self: &Rc<Self>, snapshot: &CanvasSelectionSnapshot) -> Result<Ref<ContextMenu>, String>
    

    Build a native menu for a host-owned context presentation. Opening or dismissing it is observational; the menu's callbacks retain the accepted selection snapshot.

    Source

    reset_selection_layout

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

    Remove the selected controls' local layout values in one source transaction.

    Source

    match_selection_size

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

    Match the first selected control's native dimensions through the active layout adapters.

    Source

    copy_appearance_properties

    fn copy_appearance_properties(self: &Rc<Self>) -> Result<(), String>
    

    Capture authored appearance without changing the operating-system text clipboard. The retained clipboard is shared by this workspace's document tabs.

    Source

    appearance_clipboard

    fn appearance_clipboard(self: &Self) -> Option<PropertyClipboard>
    

    Current immutable clipboard, available to embedders for their own paste UI.

    Source

    property_transfer_editor

    fn property_transfer_editor(self: &Self) -> Option<Rc<PropertyTransferEditor>>
    

    Most recently opened staged picker. Retained controls reject writes after dismissal.

    Source

    show_property_paste_editor

    fn show_property_paste_editor(self: &Rc<Self>) -> Result<(), String>
    

    Source

    grid_track_editors

    fn grid_track_editors(self: &Self) -> Vec<Rc<GridTrackEditor>>
    

    Current contextual editors, in row/column order when the selection belongs to a Grid.

    Source

    canvas_viewport

    fn canvas_viewport(self: &Self) -> CanvasViewport
    

    Source

    set_canvas_viewport

    fn set_canvas_viewport(self: &Self, viewport: CanvasViewport)
    

    Restore a host-owned view. This never applies pending source or mutates undo history.

    Source

    canvas_wheel_mode

    fn canvas_wheel_mode(self: &Self) -> CanvasWheelMode
    

    Source

    set_canvas_wheel_mode

    fn set_canvas_wheel_mode(self: &Self, mode: CanvasWheelMode)
    

    Source

    canvas_pan_tool

    fn canvas_pan_tool(self: &Self) -> bool
    

    Source

    set_canvas_pan_tool

    fn set_canvas_pan_tool(self: &Self, active: bool)
    

    Source

    artboard_to_canvas

    fn artboard_to_canvas(self: &Self, point: Point) -> Point
    

    Map an authored point through the same transform used for rendering and input.

    Source

    canvas_to_artboard

    fn canvas_to_artboard(self: &Self, point: Point) -> Point
    

    Source

    zoom_canvas_at

    fn zoom_canvas_at(self: &Self, zoom: f64, anchor: Point) -> Result<(), String>
    

    Cursor-anchored zoom. anchor is relative to the ArtboardScroll viewport control.

    Source

    pan_canvas

    fn pan_canvas(self: &Self, delta: Vector) -> Result<(), String>
    

    Source

    set_zoom_percent

    fn set_zoom_percent(self: &Self, text: &str) -> Result<(), String>
    

    Accepts a percentage with an optional %; invalid drafts do not change the view.

    Source

    fit_selection

    fn fit_selection(self: &Self) -> Result<(), String>
    

    Fit the actual transformed union of the selected authored native visuals.

    Source

    canvas_guides

    fn canvas_guides(self: &Self) -> CanvasGuideSettings
    

    Source

    set_canvas_guides

    fn set_canvas_guides(self: &Self, value: CanvasGuideSettings) -> Result<(), String>
    

    Applies a complete local view atomically. It is available to viewers and never stages/applies source text, rebuilds the preview, or changes collaboration history.

    Source

    add_canvas_guide

    fn add_canvas_guide(self: &Self, axis: CanvasGuideAxis, position: f64) -> Result<u64, String>
    

    Source

    move_canvas_guide

    fn move_canvas_guide(self: &Self, id: u64, position: f64) -> Result<(), String>
    

    Source

    remove_canvas_guide

    fn remove_canvas_guide(self: &Self, id: u64) -> Result<(), String>
    

    Source

    selected_canvas_guide

    fn selected_canvas_guide(self: &Self) -> Option<u64>
    

    Source

    canvas_guide_snapshot

    fn canvas_guide_snapshot(self: &Self) -> CanvasGuideEditSnapshot
    

    Source

    apply_canvas_guides

    fn apply_canvas_guides(self: &Self, snapshot: &CanvasGuideEditSnapshot, value: CanvasGuideSettings) -> Result<(), String>
    

    Source

    canvas_guide_view_snapshot

    fn canvas_guide_view_snapshot(self: &Self) -> CanvasGuideViewSnapshot
    

    Source

    restore_canvas_guide_view

    fn restore_canvas_guide_view(self: &Self, snapshot: &CanvasGuideViewSnapshot) -> bool
    

    Source

    preview_environment

    fn preview_environment(self: &Self) -> PreviewEnvironment
    

    Source

    set_preview_environment

    fn set_preview_environment(self: &Self, value: PreviewEnvironment) -> Result<(), String>
    

    Applies inherited preview conditions. Explicit document values retain normal native precedence. The source buffer, undo history, collaboration and editor chrome are intact.

    Source

    rotate_preview

    fn rotate_preview(self: &Self) -> Result<(), String>
    

    Source

    preview_stages

    fn preview_stages(self: &Self) -> Vec<PreviewStageInfo>
    

    Source

    preview_stage

    fn preview_stage(self: &Self, id: PreviewStageId) -> Option<PreviewStageInfo>
    

    Source

    preview_stage_epoch

    fn preview_stage_epoch(self: &Self) -> u64
    

    Source

    preview_stage_control

    fn preview_stage_control(self: &Self, id: PreviewStageId) -> Option<Ref<Control>>
    

    Source

    preview_stages_visible

    fn preview_stages_visible(self: &Self) -> bool
    

    Source

    preview_stage_manifest

    fn preview_stage_manifest(self: &Self) -> PreviewStageManifest
    

    Source

    preview_stage_editor

    fn preview_stage_editor(self: &Self) -> Option<Rc<PreviewStageEditor>>
    

    Source

    preview_stage_view

    fn preview_stage_view(self: &Self) -> Option<Rc<PreviewStageView>>
    

    Source

    preview_stage_matrix_editor

    fn preview_stage_matrix_editor(self: &Self) -> Option<Rc<crate::PreviewStageMatrixEditor>>
    

    Source

    plan_preview_stage_matrix

    fn plan_preview_stage_matrix(self: &Self, id: PreviewStageId, matrix: &crate::PreviewStageMatrix) -> Result<Vec<PreviewStageConfiguration>, String>
    

    Observe the exact bounded product before creating any native controls.

    Source

    compare_preview_stage_matrix

    fn compare_preview_stage_matrix(self: &Rc<Self>, id: PreviewStageId, matrix: crate::PreviewStageMatrix) -> Result<Vec<PreviewStageId>, String>
    

    Source

    preview_stage_image

    fn preview_stage_image(self: &Self, id: PreviewStageId, options: crate::PreviewStageExportOptions) -> Result<crate::PreviewStageImage, String>
    

    Capture the current accepted native view without refreshing, arranging or advancing it. Pending/stale/failed views cannot be exported as current source.

    Source

    add_preview_stage

    fn add_preview_stage(self: &Rc<Self>, configuration: PreviewStageConfiguration) -> Result<PreviewStageId, String>
    

    Source

    update_preview_stage

    fn update_preview_stage(self: &Rc<Self>, id: PreviewStageId, configuration: PreviewStageConfiguration) -> Result<(), String>
    

    Source

    duplicate_preview_stage

    fn duplicate_preview_stage(self: &Rc<Self>, id: PreviewStageId) -> Result<PreviewStageId, String>
    

    Source

    remove_preview_stage

    fn remove_preview_stage(self: &Rc<Self>, id: PreviewStageId) -> Result<(), String>
    

    Source

    move_preview_stage

    fn move_preview_stage(self: &Rc<Self>, id: PreviewStageId, index: usize) -> Result<(), String>
    

    Source

    set_preview_stage_paused

    fn set_preview_stage_paused(self: &Rc<Self>, id: PreviewStageId, paused: bool) -> Result<(), String>
    

    Source

    refresh_preview_stage

    fn refresh_preview_stage(self: &Rc<Self>, id: PreviewStageId) -> Result<(), String>
    

    Source

    refresh_all_preview_stages

    fn refresh_all_preview_stages(self: &Rc<Self>) -> Vec<(PreviewStageId, String)>
    

    Source

    compare_preview_stage

    fn compare_preview_stage(self: &Rc<Self>, id: PreviewStageId, variants: Vec<(String, PreviewEnvironment)>) -> Result<Vec<PreviewStageId>, String>
    

    Source

    set_active_preview_stage

    fn set_active_preview_stage(self: &Rc<Self>, id: PreviewStageId) -> Result<(), String>
    

    Explicit stage activation brings the correct source, definition and environment into the authoritative authoring preview before the inspector changes context.

    Source

    restore_preview_stage_manifest

    fn restore_preview_stage_manifest(self: &Rc<Self>, manifest: PreviewStageManifest) -> Result<(), String>
    

    Source

    set_preview_stages_visible

    fn set_preview_stages_visible(self: &Rc<Self>, visible: bool) -> Result<(), String>
    

    Source

    show_preview_stage_editor

    fn show_preview_stage_editor(self: &Rc<Self>, id: Option<PreviewStageId>, anchor: &Control) -> Result<(), String>
    

    Source

    show_preview_stage_matrix_editor

    fn show_preview_stage_matrix_editor(self: &Rc<Self>, id: PreviewStageId, anchor: &Control) -> Result<(), String>
    

    Source

    preview_stage_model

    fn preview_stage_model(self: &Self) -> String
    

    An optimistic identity for automation and asynchronous stage-file dialogs. Reading it does not construct previews, apply drafts or change selection.

    Source

    preview_stage_runtime_tree

    fn preview_stage_runtime_tree(self: &Self, id: PreviewStageId, kind: TreeKind) -> Result<Vec<RuntimeNode>, String>
    

    Source

    preview_stage_source_is_current

    fn preview_stage_source_is_current(self: &Self, id: PreviewStageId) -> bool
    

    Check current buffers without synchronizing or constructing a preview. Pending editor drafts retire source mappings before the next UI refresh.

    Source

    preview_stage_image_source_is_current

    fn preview_stage_image_source_is_current(self: &Self, id: PreviewStageId) -> bool
    

    Image capture may use a paused frame while its accepted source and all native include dependencies remain exact. This never enables selection/input.

    Source

    select_preview_stage_runtime

    fn select_preview_stage_runtime(self: &Rc<Self>, id: PreviewStageId, inspector_id: u64) -> Result<(), String>
    

    Source

    save_preview_stage_image_file

    async fn save_preview_stage_image_file(self: &Rc<Self>, id: crate::PreviewStageId, options: crate::PreviewStageExportOptions) -> Result<bool, String>
    

    Freeze the native PNG before opening the save picker. A later source edit or removal cannot substitute a newer frame for the image the user chose to save.

    Source

    save_preview_stages_file

    async fn save_preview_stages_file(self: &Rc<Self>) -> Result<bool, String>
    

    Export the collection captured when the picker opens. Newer edits remain local and source-file dirty markers are unaffected by this independent save.

    Source

    load_preview_stages_file

    async fn load_preview_stages_file(self: &Rc<Self>) -> Result<bool, String>
    

    Restore validated local presentation state. Source URIs are references to already open documents; this operation never reads arbitrary referenced files.

    Source

    preview_prototype_playback

    fn preview_prototype_playback(self: &Self) -> Option<PreviewPrototypePlaybackInfo>
    

    Source

    preview_prototype_control

    fn preview_prototype_control(self: &Self, stage: PreviewStageId) -> Option<Ref<Control>>
    

    A native view in the isolated player, addressed by its original board ID. It is never the comparison card's native control.

    Source

    start_preview_prototype

    fn start_preview_prototype(self: &Rc<Self>, flow_name: &str) -> Result<(), String>
    

    Source

    fn activate_preview_prototype_link(self: &Rc<Self>, index: usize) -> Result<(), String>
    

    Source

    back_preview_prototype

    fn back_preview_prototype(self: &Rc<Self>) -> Result<(), String>
    

    Source

    close_preview_prototype_overlay

    fn close_preview_prototype_overlay(self: &Rc<Self>) -> Result<(), String>
    

    Close the top overlay without consuming screen navigation history.

    Source

    restart_preview_prototype

    fn restart_preview_prototype(self: &Rc<Self>) -> Result<(), String>
    

    Restart the journey while retaining the play session's native control state. Exit and Play create fresh native views when a full reset is wanted.

    Source

    stop_preview_prototype

    fn stop_preview_prototype(self: &Rc<Self>)
    

    Source

    preview_prototype

    fn preview_prototype(self: &Self) -> PreviewPrototype
    

    Source

    preview_prototype_model

    fn preview_prototype_model(self: &Self) -> String
    

    Includes the accepted source/board token and the independent playback epoch. Reading this token never creates controls, updates layout or advances input.

    Source

    preview_prototype_view

    fn preview_prototype_view(self: &Self) -> Option<Rc<PreviewPrototypeView>>
    

    Source

    preview_prototype_player_view

    fn preview_prototype_player_view(self: &Self) -> Option<Rc<PreviewPrototypePlayerView>>
    

    Source

    preview_prototype_flow_editor

    fn preview_prototype_flow_editor(self: &Self) -> Option<Rc<PreviewPrototypeFlowEditor>>
    

    Source

    fn preview_prototype_link_editor(self: &Self) -> Option<Rc<PreviewPrototypeLinkEditor>>
    

    Source

    preview_prototype_visible

    fn preview_prototype_visible(self: &Self) -> bool
    

    Source

    set_preview_prototype

    fn set_preview_prototype(self: &Rc<Self>, graph: PreviewPrototype) -> Result<(), String>
    

    Source

    preview_prototype_elements

    fn preview_prototype_elements(self: &Self) -> Vec<PreviewPrototypeElementChoice>
    

    Authored, unambiguous source choices from accepted native stage trees. The returned anchors contain no runtime inspector or session-local node IDs.

    Source

    set_preview_prototype_visible

    fn set_preview_prototype_visible(self: &Rc<Self>, visible: bool) -> Result<(), String>
    

    Source

    show_preview_prototype_flow_editor

    fn show_preview_prototype_flow_editor(self: &Rc<Self>, index: Option<usize>, anchor: &Control) -> Result<(), String>
    

    Source

    fn show_preview_prototype_link_editor(self: &Rc<Self>, index: Option<usize>, source: Option<PreviewStageId>, anchor: &Control) -> Result<(), String>
    

    Source

    open_solution

    fn open_solution(self: &Rc<Self>, path: impl AsRef<std::path::Path>) -> Result<(), String>
    

    Source

    set_solution

    fn set_solution(self: &Rc<Self>, solution: Solution) -> Result<(), String>
    

    Attach a host-discovered solution without starting another discovery process.

    Source

    select_project

    fn select_project(self: &Self, index: usize) -> Result<(), String>
    

    Source

    solution

    fn solution(self: &Self) -> Option<Solution>
    

    Source

    document_uris

    fn document_uris(self: &Self) -> Vec<String>
    

    Source

    activate_document

    fn activate_document(self: &Rc<Self>, uri: &str) -> Result<(), String>
    

    Source

    close_document

    fn close_document(self: &Rc<Self>, uri: &str, discard: bool) -> Result<(), String>
    

    Source

    save_all_documents

    fn save_all_documents(self: &Rc<Self>) -> Result<(), String>
    

    Source

    start_project_task

    fn start_project_task(self: &Rc<Self>, kind: TaskKind, release: bool) -> Result<(), String>
    

    Source

    cancel_project_task

    fn cancel_project_task(self: &Self) -> Result<(), String>
    

    Source

    project_task_status

    fn project_task_status(self: &Self) -> Option<TaskStatus>
    

    Source

    project_task_output

    fn project_task_output(self: &Self) -> String
    

    Source

    is_discovering_solution

    fn is_discovering_solution(self: &Self) -> bool
    

    Source

    selected_project

    fn selected_project(self: &Self) -> usize
    

    Source

    poll_project_work

    fn poll_project_work(self: &Rc<Self>)
    

    Source

    sharing_status

    fn sharing_status(self: &Self) -> Option<SharingStatus>
    

    Source

    sharing_controller

    fn sharing_controller(self: &Self) -> Option<Rc<SharingController>>
    

    Source

    host_sharing

    fn host_sharing(self: &Rc<Self>, options: SharingOptions) -> Result<(), String>
    

    Source

    join_sharing

    fn join_sharing(self: &Rc<Self>, invitation: String, options: SharingOptions) -> Result<(), String>
    

    Source

    resume_sharing

    fn resume_sharing(self: &Rc<Self>, options: SharingOptions) -> Result<(), String>
    

    Source

    disconnect_sharing

    fn disconnect_sharing(self: &Self)
    

    Source

    show_sharing

    fn show_sharing(self: &Rc<Self>)
    

    Source

    language_service

    fn language_service(self: &Self) -> std::cell::RefMut<'_, LanguageService>
    

    Source

    try_language_service

    fn try_language_service(self: &Self) -> Result<std::cell::RefMut<'_, LanguageService>, String>
    

    Source

    synchronize_language_service

    fn synchronize_language_service(self: &Rc<Self>) -> Result<(), String>
    

    Source

    select_source_span

    fn select_source_span(self: &Self, span: SourceSpan)
    

    Source

    navigate_to

    fn navigate_to(self: &Rc<Self>, location: &Location) -> Result<(), String>
    

    Source

    apply_source_completion

    fn apply_source_completion(self: &Self, expected_revision: u64, span: SourceSpan, text: &str) -> Result<(), String>
    

    Apply a versioned completion even while its surrounding XAML is an incomplete draft.

    Source

    apply_language_edits

    fn apply_language_edits(self: &Rc<Self>, edit: WorkspaceEdit) -> Result<(), String>
    

    Source

    select_keyframe

    fn select_keyframe(self: &Rc<Self>, target: NodeId, property: &str, time: f64) -> Result<(), String>
    

    Selects an authored keyframe, seeks its time, and displays its contextual editor.

    Source

    select_keyframes

    fn select_keyframes(self: &Rc<Self>, keys: &[(NodeId, String, f64)]) -> Result<(), String>
    

    Selects keys across object/property lanes. The final key becomes the primary editor.

    Source

    selected_keyframes

    fn selected_keyframes(self: &Self) -> Vec<(NodeId, String, f64)>
    

    Source

    move_selected_keyframes

    fn move_selected_keyframes(self: &Rc<Self>, delta: f64) -> Result<(), String>
    

    One source transaction and one undo step, including moves across multiple tracks.

    Source

    duplicate_selected_keyframes

    fn duplicate_selected_keyframes(self: &Rc<Self>, delta: f64) -> Result<(), String>
    

    Source

    remove_selected_keyframes

    fn remove_selected_keyframes(self: &Rc<Self>) -> Result<(), String>
    

    Source

    timeline_frame_rate

    fn timeline_frame_rate(self: &Self) -> Option<u32>
    

    Source

    set_timeline_frame_rate

    fn set_timeline_frame_rate(self: &Self, rate: Option<u32>)
    

    Changes only the editing grid; authored seconds and the running animation are unchanged.

    Source

    new

    fn new(source: impl Into<String>) -> Result<Rc<Self>, String>
    

    Source

    with_uri

    fn with_uri(source: impl Into<String>, uri: String) -> Result<Rc<Self>, String>
    

    Preserves the original document URI for relative resource and include resolution.

    Source

    register_property_editor

    fn register_property_editor(self: &Rc<Self>, editor: Rc<dyn PropertyEditorFactory>)
    

    Source

    control

    fn control(self: &Self) -> Ref<Control>
    

    Source

    session

    fn session(self: &Self) -> Rc<RefCell<DesignerSession>>
    

    Source

    design_surface

    fn design_surface(self: &Self) -> Ref<DesignSurface>
    

    Source

    source_editor

    fn source_editor(self: &Self) -> Ref<TextBox>
    

    Source

    outline_mode

    fn outline_mode(self: &Self) -> OutlineMode
    

    Source

    set_outline_mode

    fn set_outline_mode(self: &Rc<Self>, mode: OutlineMode)
    

    Source

    artboard_size

    fn artboard_size(self: &Self) -> (f64, f64)
    

    Source

    set_artboard_size

    fn set_artboard_size(self: &Self, width: f64, height: f64) -> Result<(), String>
    

    Source

    zoom

    fn zoom(self: &Self) -> f64
    

    Source

    set_zoom

    fn set_zoom(self: &Self, zoom: f64)
    

    Source

    refresh

    fn refresh(self: &Rc<Self>, force: bool)
    

    Source

    register_asset

    fn register_asset(self: &Rc<Self>, asset: crate::asset_toolbox::DesignerAsset) -> Result<(), String>
    

    Register project-specific controls in the native searchable asset catalog.

    Source

    asset_toolbox

    fn asset_toolbox(self: &Self) -> Option<Rc<crate::AssetToolbox>>
    

    Access the reusable catalog to choose Grid/List presentation or configure filtering. Browsing state is independent of the authored document and its undo history.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Same
    • Drop

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.