pub struct SimpleBookPageChangedEvent {
pub base: Event,
}Expand description
Event data for a SimpleBook::PageChanged event.
Fields§
§base: EventThe base event data.
Implementations§
Source§impl SimpleBookPageChangedEvent
impl SimpleBookPageChangedEvent
Sourcepub fn new(base_event: Event) -> Self
pub fn new(base_event: Event) -> Self
Creates new SimpleBookPageChangedEvent from a base Event.
Sourcepub fn get_selection(&self) -> Option<i32>
pub fn get_selection(&self) -> Option<i32>
Gets the page that has been selected.
For a PageChanged event, this is the new page.
Sourcepub fn get_old_selection(&self) -> Option<i32>
pub fn get_old_selection(&self) -> Option<i32>
Gets the page that was selected before the change.
For a PageChanged event, this is the old page.
Trait Implementations§
Auto Trait Implementations§
impl !Send for SimpleBookPageChangedEvent
impl !Sync for SimpleBookPageChangedEvent
impl Freeze for SimpleBookPageChangedEvent
impl RefUnwindSafe for SimpleBookPageChangedEvent
impl Unpin for SimpleBookPageChangedEvent
impl UnsafeUnpin for SimpleBookPageChangedEvent
impl UnwindSafe for SimpleBookPageChangedEvent
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