Struct workspace::shared_screen::SharedScreen
source · pub struct SharedScreen {
pub peer_id: PeerId,
/* private fields */
}
Fields§
§peer_id: PeerId
Implementations§
Trait Implementations§
fn tab_tooltip_text(&self, _: &AppContext) -> Option<Cow<'_, str>>
fn deactivated(&mut self, cx: &mut ViewContext<'_, '_, Self>)
fn tab_content<V: 'static>( &self, _: Option<usize>, style: &Tab, _: &AppContext ) -> AnyElement<V>
fn clone_on_split( &self, _workspace_id: WorkspaceId, cx: &mut ViewContext<'_, '_, Self> ) -> Option<Self>
fn to_item_events(event: &Self::Event) -> SmallVec<[ItemEvent; 2]>
fn workspace_deactivated(&mut self, _: &mut ViewContext<'_, '_, Self>)
fn tab_description<'a>( &'a self, _: usize, _: &'a AppContext ) -> Option<Cow<'_, str>>
fn for_each_project_item( &self, _: &AppContext, _: &mut dyn FnMut(usize, &dyn Item) )
fn is_singleton(&self, _cx: &AppContext) -> bool
fn is_dirty(&self, _: &AppContext) -> bool
fn has_conflict(&self, _: &AppContext) -> bool
fn can_save(&self, _cx: &AppContext) -> bool
fn save( &mut self, _project: ModelHandle<Project>, _cx: &mut ViewContext<'_, '_, Self> ) -> Task<Result<()>>
fn save_as( &mut self, _project: ModelHandle<Project>, _abs_path: PathBuf, _cx: &mut ViewContext<'_, '_, Self> ) -> Task<Result<()>>
fn reload( &mut self, _project: ModelHandle<Project>, _cx: &mut ViewContext<'_, '_, Self> ) -> Task<Result<()>>
fn should_close_item_on_event(_: &Self::Event) -> bool
fn should_update_tab_on_event(_: &Self::Event) -> bool
fn act_as_type<'a>( &'a self, type_id: TypeId, self_handle: &'a ViewHandle<Self>, _: &'a AppContext ) -> Option<&AnyViewHandle>
fn as_searchable( &self, _: &ViewHandle<Self> ) -> Option<Box<dyn SearchableItemHandle>>
fn added_to_workspace( &mut self, _workspace: &mut Workspace, _cx: &mut ViewContext<'_, '_, Self> )
fn serialized_item_kind() -> Option<&'static str>
fn deserialize( _project: ModelHandle<Project>, _workspace: WeakViewHandle<Workspace>, _workspace_id: WorkspaceId, _item_id: ItemId, _cx: &mut ViewContext<'_, '_, Pane> ) -> Task<Result<ViewHandle<Self>>>
fn show_toolbar(&self) -> bool
fn pixel_position_of_cursor(&self, _: &AppContext) -> Option<Vector2F>
fn ui_name() -> &'static str
fn render(&mut self, cx: &mut ViewContext<'_, '_, Self>) -> AnyElement<Self>
fn focus_in(&mut self, _: AnyViewHandle, _: &mut ViewContext<'_, '_, Self>)
fn focus_out(&mut self, _: AnyViewHandle, _: &mut ViewContext<'_, '_, Self>)
fn key_down( &mut self, _: &KeyDownEvent, _: &mut ViewContext<'_, '_, Self> ) -> bool
fn key_up(&mut self, _: &KeyUpEvent, _: &mut ViewContext<'_, '_, Self>) -> bool
fn modifiers_changed( &mut self, _: &ModifiersChangedEvent, _: &mut ViewContext<'_, '_, Self> ) -> bool
fn update_keymap_context(&self, keymap: &mut KeymapContext, _: &AppContext)
fn reset_to_default_keymap_context(keymap: &mut KeymapContext)
fn debug_json(&self, _: &AppContext) -> Value
fn text_for_range(&self, _: Range<usize>, _: &AppContext) -> Option<String>
fn selected_text_range(&self, _: &AppContext) -> Option<Range<usize>>
fn marked_text_range(&self, _: &AppContext) -> Option<Range<usize>>
fn unmark_text(&mut self, _: &mut ViewContext<'_, '_, Self>)
fn replace_text_in_range( &mut self, _: Option<Range<usize>>, _: &str, _: &mut ViewContext<'_, '_, Self> )
fn replace_and_mark_text_in_range( &mut self, _: Option<Range<usize>>, _: &str, _: Option<Range<usize>>, _: &mut ViewContext<'_, '_, Self> )
Auto Trait Implementations§
Blanket Implementations§
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn release(&mut self, cx: &mut AppContext)
fn app_will_quit( &mut self, cx: &mut AppContext ) -> Option<Pin<Box<dyn Future<Output = ()>, Global>>>
fn ui_name(&self) -> &'static str
fn render( &mut self, cx: &mut WindowContext<'_>, view_id: usize ) -> Box<dyn AnyRootElement, Global>
fn focus_in( &mut self, focused_id: usize, cx: &mut WindowContext<'_>, view_id: usize )
fn focus_out( &mut self, blurred_id: usize, cx: &mut WindowContext<'_>, view_id: usize )
fn key_down( &mut self, event: &KeyDownEvent, cx: &mut WindowContext<'_>, view_id: usize ) -> bool
fn key_up( &mut self, event: &KeyUpEvent, cx: &mut WindowContext<'_>, view_id: usize ) -> bool
fn modifiers_changed( &mut self, event: &ModifiersChangedEvent, cx: &mut WindowContext<'_>, view_id: usize ) -> bool
fn update_keymap_context(&self, keymap: &mut KeymapContext, cx: &AppContext)
fn debug_json(&self, cx: &WindowContext<'_>) -> Value
fn text_for_range( &self, range: Range<usize>, cx: &WindowContext<'_> ) -> Option<String>
fn selected_text_range(&self, cx: &WindowContext<'_>) -> Option<Range<usize>>
fn marked_text_range(&self, cx: &WindowContext<'_>) -> Option<Range<usize>>
fn unmark_text(&mut self, cx: &mut WindowContext<'_>, view_id: usize)
fn replace_text_in_range( &mut self, range: Option<Range<usize>>, text: &str, cx: &mut WindowContext<'_>, view_id: usize )
fn replace_and_mark_text_in_range( &mut self, range: Option<Range<usize>>, new_text: &str, new_selected_range: Option<Range<usize>>, cx: &mut WindowContext<'_>, view_id: usize )
fn any_handle( &self, window: AnyWindowHandle, view_id: usize, cx: &AppContext ) -> AnyViewHandle
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more