pub struct DialogState {
pub mode: DialogMode,
pub page_index: usize,
pub char_index: usize,
pub scroll_offset: u16,
}Expand description
Full state of the dialog engine.
Carries mode information together with positioning bookmarks that survive across page breaks and scroll events.
Fields§
§mode: DialogModeCurrent operational mode.
page_index: usizeWhich page of the dialog is currently active.
char_index: usizeIndex into the current page’s character sequence.
scroll_offset: u16Vertical scroll offset in pixels (for smooth scrolling).
Trait Implementations§
Source§impl Clone for DialogState
impl Clone for DialogState
Source§fn clone(&self) -> DialogState
fn clone(&self) -> DialogState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DialogState
impl Debug for DialogState
Auto Trait Implementations§
impl Freeze for DialogState
impl RefUnwindSafe for DialogState
impl Send for DialogState
impl Sync for DialogState
impl Unpin for DialogState
impl UnsafeUnpin for DialogState
impl UnwindSafe for DialogState
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