pub struct MessageDisplay {
pub scroll_state: ScrollState,
/* private fields */
}Fields§
§scroll_state: ScrollStateImplementations§
Source§impl MessageDisplay
impl MessageDisplay
Sourcepub fn update_config(&mut self, new_config: &Config)
pub fn update_config(&mut self, new_config: &Config)
Updates Config (für Live-Updates)
Sourcepub fn clear_messages(&mut self)
pub fn clear_messages(&mut self)
Löscht alle Messages
Sourcepub fn add_message(&mut self, content: String)
pub fn add_message(&mut self, content: String)
Fügt neue Message hinzu
Sourcepub fn update_typewriter(&mut self)
pub fn update_typewriter(&mut self)
Typewriter Update
Sourcepub fn handle_scroll(&mut self, action: KeyAction, window_height: usize)
pub fn handle_scroll(&mut self, action: KeyAction, window_height: usize)
Handle Scroll Events
Sourcepub fn get_content_height(&self) -> usize
pub fn get_content_height(&self) -> usize
Content Height für Scrolling
Sourcepub fn get_visible_messages(&self) -> Vec<(&String, usize)>
pub fn get_visible_messages(&self) -> Vec<(&String, usize)>
Sichtbare Messages für Rendering
Sourcepub fn create_output_widget_for_rendering(
&self,
_available_height: u16,
) -> (Vec<(String, usize)>, Config)
pub fn create_output_widget_for_rendering( &self, _available_height: u16, ) -> (Vec<(String, usize)>, Config)
Erstellt Output-Widget für Rendering
Sourcepub fn get_messages_count(&self) -> usize
pub fn get_messages_count(&self) -> usize
✅ NEU: Getter für messages (für Debug)
Auto Trait Implementations§
impl Freeze for MessageDisplay
impl RefUnwindSafe for MessageDisplay
impl Send for MessageDisplay
impl Sync for MessageDisplay
impl Unpin for MessageDisplay
impl UnwindSafe for MessageDisplay
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> 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