pub struct RoomScreen { /* private fields */ }Expand description
The main widget that displays a single Matrix room.
Implementations§
Source§impl RoomScreen
impl RoomScreen
pub fn new(room_id: OwnedRoomId, room_name: String) -> Self
Sourcepub fn process_timeline_updates<R: Runtime>(
&mut self,
app_handle: &AppHandle<R>,
)
pub fn process_timeline_updates<R: Runtime>( &mut self, app_handle: &AppHandle<R>, )
Processes all pending background updates to the currently-shown timeline.
Sourcepub fn show_timeline<R: Runtime>(&mut self, app_handle: &AppHandle<R>)
pub fn show_timeline<R: Runtime>(&mut self, app_handle: &AppHandle<R>)
Handles any [MessageAction]s received by this RoomScreen.
TODO: add an action queue fed by the frontend and treated here
Shows the editing pane to allow the user to edit the given event.
Handles the EditingPane in this RoomScreen being fully hidden.
Shows a preview of the given event that the user is currently replying to
above the message input bar.
Clears (and makes invisible) the preview of the message
Invoke this when this timeline is being shown,
e.g., when the user navigates to this timeline.
Sourcepub fn set_displayed_room<S: Into<Option<String>>, R: Runtime>(
&mut self,
room_id: OwnedRoomId,
room_name: S,
app_handle: &AppHandle<R>,
)
pub fn set_displayed_room<S: Into<Option<String>>, R: Runtime>( &mut self, room_id: OwnedRoomId, room_name: S, app_handle: &AppHandle<R>, )
Sets this RoomScreen widget to display the timeline for the given room.
Trait Implementations§
Source§impl Debug for RoomScreen
impl Debug for RoomScreen
Source§impl Drop for RoomScreen
impl Drop for RoomScreen
Auto Trait Implementations§
impl Freeze for RoomScreen
impl !RefUnwindSafe for RoomScreen
impl Send for RoomScreen
impl Sync for RoomScreen
impl Unpin for RoomScreen
impl !UnwindSafe for RoomScreen
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more