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.
Members
layout_helpers_visibleset_layout_helpers_visibleview_modeset_view_modenavigation_paneset_navigation_panetimeline_visiblecanvas_focusedset_canvas_focusedset_timeline_visiblefit_artboardopen_component_documentcomponent_libraryregister_component_definitionregister_component_documentregister_component_documentscopy_component_definitioninspect_componentcreate_componentedit_component_on_canvasreturn_to_documentis_dirtyopen_documentrequest_closeset_preview_darksave_fileshow_focus_order_editoredit_outlinereveal_property_sourcego_to_property_definitionoutline_gridcollapse_outlineproperty_gridproperty_inspector_viewset_property_inspector_viewclear_property_filtersproject_gridedit_layersedit_layer_snapshotcapture_canvas_selectionselect_canvas_layerselect_matching_native_typecreate_canvas_selection_menureset_selection_layoutmatch_selection_sizecopy_appearance_propertiesappearance_clipboardproperty_transfer_editorshow_property_paste_editorgrid_track_editorscanvas_viewportset_canvas_viewportcanvas_wheel_modeset_canvas_wheel_modecanvas_pan_toolset_canvas_pan_toolartboard_to_canvascanvas_to_artboardzoom_canvas_atpan_canvasset_zoom_percentfit_selectioncanvas_guidesset_canvas_guidesadd_canvas_guidemove_canvas_guideremove_canvas_guideselected_canvas_guidecanvas_guide_snapshotapply_canvas_guidescanvas_guide_view_snapshotrestore_canvas_guide_viewpreview_environmentset_preview_environmentrotate_previewpreview_stagespreview_stagepreview_stage_epochpreview_stage_controlpreview_stages_visiblepreview_stage_manifestpreview_stage_editorpreview_stage_viewpreview_stage_matrix_editorplan_preview_stage_matrixcompare_preview_stage_matrixpreview_stage_imageadd_preview_stageupdate_preview_stageduplicate_preview_stageremove_preview_stagemove_preview_stageset_preview_stage_pausedrefresh_preview_stagerefresh_all_preview_stagescompare_preview_stageset_active_preview_stagerestore_preview_stage_manifestset_preview_stages_visibleshow_preview_stage_editorshow_preview_stage_matrix_editorpreview_stage_modelpreview_stage_runtime_treepreview_stage_source_is_currentpreview_stage_image_source_is_currentselect_preview_stage_runtimesave_preview_stage_image_filesave_preview_stages_fileload_preview_stages_filepreview_prototype_playbackpreview_prototype_controlstart_preview_prototypeactivate_preview_prototype_linkback_preview_prototypeclose_preview_prototype_overlayrestart_preview_prototypestop_preview_prototypepreview_prototypepreview_prototype_modelpreview_prototype_viewpreview_prototype_player_viewpreview_prototype_flow_editorpreview_prototype_link_editorpreview_prototype_visibleset_preview_prototypepreview_prototype_elementsset_preview_prototype_visibleshow_preview_prototype_flow_editorshow_preview_prototype_link_editoropen_solutionset_solutionselect_projectsolutiondocument_urisactivate_documentclose_documentsave_all_documentsstart_project_taskcancel_project_taskproject_task_statusproject_task_outputis_discovering_solutionselected_projectpoll_project_worksharing_statussharing_controllerhost_sharingjoin_sharingresume_sharingdisconnect_sharingshow_sharinglanguage_servicetry_language_servicesynchronize_language_serviceselect_source_spannavigate_toapply_source_completionapply_language_editsselect_keyframeselect_keyframesselected_keyframesmove_selected_keyframesduplicate_selected_keyframesremove_selected_keyframestimeline_frame_rateset_timeline_frame_ratenewwith_uriregister_property_editorcontrolsessiondesign_surfacesource_editoroutline_modeset_outline_modeartboard_sizeset_artboard_sizezoomset_zoomrefreshregister_assetasset_toolbox
layout_helpers_visible
fn layout_helpers_visible(self: &Self) -> bool
set_layout_helpers_visible
fn set_layout_helpers_visible(self: &Self, visible: bool)
Show panel-specific canvas features without changing the authored document.
view_mode
fn view_mode(self: &Self) -> WorkspaceViewMode
set_view_mode
fn set_view_mode(self: &Self, mode: WorkspaceViewMode)
Switches the visible editor without reloading the document or applying pending text.
navigation_pane
fn navigation_pane(self: &Self) -> NavigationPane
set_navigation_pane
fn set_navigation_pane(self: &Self, pane: NavigationPane)
timeline_visible
fn timeline_visible(self: &Self) -> bool
canvas_focused
fn canvas_focused(self: &Self) -> bool
Whether the workspace is temporarily giving its side docks and timeline to the canvas.
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.
set_timeline_visible
fn set_timeline_visible(self: &Self, visible: bool)
Restores a user's resized timeline height when reopening the pane.
fit_artboard
fn fit_artboard(self: &Self) -> Result<(), String>
Fits the whole artboard using the measured viewport and the canvas padding.
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.
component_library
fn component_library(self: &Self) -> Option<Rc<ComponentLibrary>>
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.
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.
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.
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.
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.
create_component
fn create_component(self: &Rc<Self>)
edit_component_on_canvas
fn edit_component_on_canvas(self: &Rc<Self>, node: NodeId) -> Result<(), String>
return_to_document
fn return_to_document(self: &Rc<Self>) -> Result<(), String>
is_dirty
fn is_dirty(self: &Self) -> bool
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.
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.
set_preview_dark
fn set_preview_dark(self: &Self, dark: bool)
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.
show_focus_order_editor
fn show_focus_order_editor(self: &Rc<Self>) -> Result<(), String>
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.
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.
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.
outline_grid
fn outline_grid(self: &Self) -> Ref<TreeDataGrid>
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.
property_grid
fn property_grid(self: &Self) -> Ref<TreeDataGrid>
property_inspector_view
fn property_inspector_view(self: &Self) -> PropertyInspectorView
Current arrangement and value-source filter. These preferences never author XAML.
set_property_inspector_view
fn set_property_inspector_view(self: &Rc<Self>, view: PropertyInspectorView)
clear_property_filters
fn clear_property_filters(self: &Rc<Self>)
Clear search and source filtering while retaining the selected arrangement.
project_grid
fn project_grid(self: &Self) -> Ref<TreeDataGrid>
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.
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.
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.
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.
select_matching_native_type
fn select_matching_native_type(self: &Rc<Self>) -> Result<(), String>
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.
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.
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.
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.
appearance_clipboard
fn appearance_clipboard(self: &Self) -> Option<PropertyClipboard>
Current immutable clipboard, available to embedders for their own paste UI.
property_transfer_editor
fn property_transfer_editor(self: &Self) -> Option<Rc<PropertyTransferEditor>>
Most recently opened staged picker. Retained controls reject writes after dismissal.
show_property_paste_editor
fn show_property_paste_editor(self: &Rc<Self>) -> Result<(), String>
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.
canvas_viewport
fn canvas_viewport(self: &Self) -> CanvasViewport
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.
canvas_wheel_mode
fn canvas_wheel_mode(self: &Self) -> CanvasWheelMode
set_canvas_wheel_mode
fn set_canvas_wheel_mode(self: &Self, mode: CanvasWheelMode)
canvas_pan_tool
fn canvas_pan_tool(self: &Self) -> bool
set_canvas_pan_tool
fn set_canvas_pan_tool(self: &Self, active: bool)
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.
canvas_to_artboard
fn canvas_to_artboard(self: &Self, point: Point) -> Point
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.
pan_canvas
fn pan_canvas(self: &Self, delta: Vector) -> Result<(), String>
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.
fit_selection
fn fit_selection(self: &Self) -> Result<(), String>
Fit the actual transformed union of the selected authored native visuals.
canvas_guides
fn canvas_guides(self: &Self) -> CanvasGuideSettings
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.
add_canvas_guide
fn add_canvas_guide(self: &Self, axis: CanvasGuideAxis, position: f64) -> Result<u64, String>
move_canvas_guide
fn move_canvas_guide(self: &Self, id: u64, position: f64) -> Result<(), String>
remove_canvas_guide
fn remove_canvas_guide(self: &Self, id: u64) -> Result<(), String>
selected_canvas_guide
fn selected_canvas_guide(self: &Self) -> Option<u64>
canvas_guide_snapshot
fn canvas_guide_snapshot(self: &Self) -> CanvasGuideEditSnapshot
apply_canvas_guides
fn apply_canvas_guides(self: &Self, snapshot: &CanvasGuideEditSnapshot, value: CanvasGuideSettings) -> Result<(), String>
canvas_guide_view_snapshot
fn canvas_guide_view_snapshot(self: &Self) -> CanvasGuideViewSnapshot
restore_canvas_guide_view
fn restore_canvas_guide_view(self: &Self, snapshot: &CanvasGuideViewSnapshot) -> bool
preview_environment
fn preview_environment(self: &Self) -> PreviewEnvironment
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.
rotate_preview
fn rotate_preview(self: &Self) -> Result<(), String>
preview_stages
fn preview_stages(self: &Self) -> Vec<PreviewStageInfo>
preview_stage
fn preview_stage(self: &Self, id: PreviewStageId) -> Option<PreviewStageInfo>
preview_stage_epoch
fn preview_stage_epoch(self: &Self) -> u64
preview_stage_control
fn preview_stage_control(self: &Self, id: PreviewStageId) -> Option<Ref<Control>>
preview_stages_visible
fn preview_stages_visible(self: &Self) -> bool
preview_stage_manifest
fn preview_stage_manifest(self: &Self) -> PreviewStageManifest
preview_stage_editor
fn preview_stage_editor(self: &Self) -> Option<Rc<PreviewStageEditor>>
preview_stage_view
fn preview_stage_view(self: &Self) -> Option<Rc<PreviewStageView>>
preview_stage_matrix_editor
fn preview_stage_matrix_editor(self: &Self) -> Option<Rc<crate::PreviewStageMatrixEditor>>
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.
compare_preview_stage_matrix
fn compare_preview_stage_matrix(self: &Rc<Self>, id: PreviewStageId, matrix: crate::PreviewStageMatrix) -> Result<Vec<PreviewStageId>, String>
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.
add_preview_stage
fn add_preview_stage(self: &Rc<Self>, configuration: PreviewStageConfiguration) -> Result<PreviewStageId, String>
update_preview_stage
fn update_preview_stage(self: &Rc<Self>, id: PreviewStageId, configuration: PreviewStageConfiguration) -> Result<(), String>
duplicate_preview_stage
fn duplicate_preview_stage(self: &Rc<Self>, id: PreviewStageId) -> Result<PreviewStageId, String>
remove_preview_stage
fn remove_preview_stage(self: &Rc<Self>, id: PreviewStageId) -> Result<(), String>
move_preview_stage
fn move_preview_stage(self: &Rc<Self>, id: PreviewStageId, index: usize) -> Result<(), String>
set_preview_stage_paused
fn set_preview_stage_paused(self: &Rc<Self>, id: PreviewStageId, paused: bool) -> Result<(), String>
refresh_preview_stage
fn refresh_preview_stage(self: &Rc<Self>, id: PreviewStageId) -> Result<(), String>
refresh_all_preview_stages
fn refresh_all_preview_stages(self: &Rc<Self>) -> Vec<(PreviewStageId, String)>
compare_preview_stage
fn compare_preview_stage(self: &Rc<Self>, id: PreviewStageId, variants: Vec<(String, PreviewEnvironment)>) -> Result<Vec<PreviewStageId>, String>
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.
restore_preview_stage_manifest
fn restore_preview_stage_manifest(self: &Rc<Self>, manifest: PreviewStageManifest) -> Result<(), String>
set_preview_stages_visible
fn set_preview_stages_visible(self: &Rc<Self>, visible: bool) -> Result<(), String>
show_preview_stage_editor
fn show_preview_stage_editor(self: &Rc<Self>, id: Option<PreviewStageId>, anchor: &Control) -> Result<(), String>
show_preview_stage_matrix_editor
fn show_preview_stage_matrix_editor(self: &Rc<Self>, id: PreviewStageId, anchor: &Control) -> Result<(), String>
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.
preview_stage_runtime_tree
fn preview_stage_runtime_tree(self: &Self, id: PreviewStageId, kind: TreeKind) -> Result<Vec<RuntimeNode>, String>
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.
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.
select_preview_stage_runtime
fn select_preview_stage_runtime(self: &Rc<Self>, id: PreviewStageId, inspector_id: u64) -> Result<(), String>
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.
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.
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.
preview_prototype_playback
fn preview_prototype_playback(self: &Self) -> Option<PreviewPrototypePlaybackInfo>
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.
start_preview_prototype
fn start_preview_prototype(self: &Rc<Self>, flow_name: &str) -> Result<(), String>
activate_preview_prototype_link
fn activate_preview_prototype_link(self: &Rc<Self>, index: usize) -> Result<(), String>
back_preview_prototype
fn back_preview_prototype(self: &Rc<Self>) -> Result<(), String>
close_preview_prototype_overlay
fn close_preview_prototype_overlay(self: &Rc<Self>) -> Result<(), String>
Close the top overlay without consuming screen navigation history.
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.
stop_preview_prototype
fn stop_preview_prototype(self: &Rc<Self>)
preview_prototype
fn preview_prototype(self: &Self) -> PreviewPrototype
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.
preview_prototype_view
fn preview_prototype_view(self: &Self) -> Option<Rc<PreviewPrototypeView>>
preview_prototype_player_view
fn preview_prototype_player_view(self: &Self) -> Option<Rc<PreviewPrototypePlayerView>>
preview_prototype_flow_editor
fn preview_prototype_flow_editor(self: &Self) -> Option<Rc<PreviewPrototypeFlowEditor>>
preview_prototype_link_editor
fn preview_prototype_link_editor(self: &Self) -> Option<Rc<PreviewPrototypeLinkEditor>>
preview_prototype_visible
fn preview_prototype_visible(self: &Self) -> bool
set_preview_prototype
fn set_preview_prototype(self: &Rc<Self>, graph: PreviewPrototype) -> Result<(), String>
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.
set_preview_prototype_visible
fn set_preview_prototype_visible(self: &Rc<Self>, visible: bool) -> Result<(), String>
show_preview_prototype_flow_editor
fn show_preview_prototype_flow_editor(self: &Rc<Self>, index: Option<usize>, anchor: &Control) -> Result<(), String>
show_preview_prototype_link_editor
fn show_preview_prototype_link_editor(self: &Rc<Self>, index: Option<usize>, source: Option<PreviewStageId>, anchor: &Control) -> Result<(), String>
open_solution
fn open_solution(self: &Rc<Self>, path: impl AsRef<std::path::Path>) -> Result<(), String>
set_solution
fn set_solution(self: &Rc<Self>, solution: Solution) -> Result<(), String>
Attach a host-discovered solution without starting another discovery process.
select_project
fn select_project(self: &Self, index: usize) -> Result<(), String>
solution
fn solution(self: &Self) -> Option<Solution>
document_uris
fn document_uris(self: &Self) -> Vec<String>
activate_document
fn activate_document(self: &Rc<Self>, uri: &str) -> Result<(), String>
close_document
fn close_document(self: &Rc<Self>, uri: &str, discard: bool) -> Result<(), String>
save_all_documents
fn save_all_documents(self: &Rc<Self>) -> Result<(), String>
start_project_task
fn start_project_task(self: &Rc<Self>, kind: TaskKind, release: bool) -> Result<(), String>
cancel_project_task
fn cancel_project_task(self: &Self) -> Result<(), String>
project_task_status
fn project_task_status(self: &Self) -> Option<TaskStatus>
project_task_output
fn project_task_output(self: &Self) -> String
is_discovering_solution
fn is_discovering_solution(self: &Self) -> bool
selected_project
fn selected_project(self: &Self) -> usize
poll_project_work
fn poll_project_work(self: &Rc<Self>)
sharing_status
fn sharing_status(self: &Self) -> Option<SharingStatus>
sharing_controller
fn sharing_controller(self: &Self) -> Option<Rc<SharingController>>
host_sharing
fn host_sharing(self: &Rc<Self>, options: SharingOptions) -> Result<(), String>
join_sharing
fn join_sharing(self: &Rc<Self>, invitation: String, options: SharingOptions) -> Result<(), String>
resume_sharing
fn resume_sharing(self: &Rc<Self>, options: SharingOptions) -> Result<(), String>
disconnect_sharing
fn disconnect_sharing(self: &Self)
show_sharing
fn show_sharing(self: &Rc<Self>)
language_service
fn language_service(self: &Self) -> std::cell::RefMut<'_, LanguageService>
try_language_service
fn try_language_service(self: &Self) -> Result<std::cell::RefMut<'_, LanguageService>, String>
synchronize_language_service
fn synchronize_language_service(self: &Rc<Self>) -> Result<(), String>
select_source_span
fn select_source_span(self: &Self, span: SourceSpan)
navigate_to
fn navigate_to(self: &Rc<Self>, location: &Location) -> Result<(), String>
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.
apply_language_edits
fn apply_language_edits(self: &Rc<Self>, edit: WorkspaceEdit) -> Result<(), String>
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.
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.
selected_keyframes
fn selected_keyframes(self: &Self) -> Vec<(NodeId, String, f64)>
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.
duplicate_selected_keyframes
fn duplicate_selected_keyframes(self: &Rc<Self>, delta: f64) -> Result<(), String>
remove_selected_keyframes
fn remove_selected_keyframes(self: &Rc<Self>) -> Result<(), String>
timeline_frame_rate
fn timeline_frame_rate(self: &Self) -> Option<u32>
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.
new
fn new(source: impl Into<String>) -> Result<Rc<Self>, String>
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.
register_property_editor
fn register_property_editor(self: &Rc<Self>, editor: Rc<dyn PropertyEditorFactory>)
control
fn control(self: &Self) -> Ref<Control>
session
fn session(self: &Self) -> Rc<RefCell<DesignerSession>>
design_surface
fn design_surface(self: &Self) -> Ref<DesignSurface>
source_editor
fn source_editor(self: &Self) -> Ref<TextBox>
outline_mode
fn outline_mode(self: &Self) -> OutlineMode
set_outline_mode
fn set_outline_mode(self: &Rc<Self>, mode: OutlineMode)
artboard_size
fn artboard_size(self: &Self) -> (f64, f64)
set_artboard_size
fn set_artboard_size(self: &Self, width: f64, height: f64) -> Result<(), String>
zoom
fn zoom(self: &Self) -> f64
set_zoom
fn set_zoom(self: &Self, zoom: f64)
refresh
fn refresh(self: &Rc<Self>, force: bool)
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.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherSameDrop
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.