pub struct DualPagerState {
pub area: Rect,
pub widget_area1: Rect,
pub widget_area2: Rect,
pub scroll_area: Rect,
pub prev_area: Rect,
pub next_area: Rect,
pub divider_area: Rect,
pub layout: PagerLayout,
pub page: usize,
pub c_focus: ContainerFlag,
pub mouse: MouseFlagsN,
pub non_exhaustive: NonExhaustive,
}Expand description
Widget state.
Fields§
§area: RectFull area for the widget. read only renewed for each render.
widget_area1: RectLeft area inside the border. read only renewed for each render.
widget_area2: RectRight area inside the border. read only renewed for each render.
scroll_area: RectTitle area except the page indicators. read only renewed with each render
prev_area: RectArea for prev-page indicator. read only renewed with each render.
next_area: RectArea for next-page indicator. read only renewed with each render.
divider_area: RectDivider area. read only renewed for each render.
layout: PagerLayoutPage layout read only renewed with each render.
page: usizeCurrent page. read+write
c_focus: ContainerFlagThis widget has no focus of its own, but this flag can be used to set a container state.
mouse: MouseFlagsNMouse
non_exhaustive: NonExhaustiveOnly construct with ..Default::default().
Implementations§
Source§impl DualPagerState
impl DualPagerState
Sourcepub fn show_handle(&mut self, handle: AreaHandle)
pub fn show_handle(&mut self, handle: AreaHandle)
Show the page for this rect.
Sourcepub fn first_handle(&self, page: usize) -> Option<AreaHandle>
pub fn first_handle(&self, page: usize) -> Option<AreaHandle>
First handle for the page. This returns the first handle for the page. Does not check whether the connected area is visible.
Trait Implementations§
Source§impl Clone for DualPagerState
impl Clone for DualPagerState
Source§fn clone(&self) -> DualPagerState
fn clone(&self) -> DualPagerState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DualPagerState
impl Debug for DualPagerState
Source§impl Default for DualPagerState
impl Default for DualPagerState
Source§impl HandleEvent<Event, MouseOnly, PagerOutcome> for DualPagerState
impl HandleEvent<Event, MouseOnly, PagerOutcome> for DualPagerState
Source§impl HandleEvent<Event, Regular, PagerOutcome> for DualPagerState
impl HandleEvent<Event, Regular, PagerOutcome> for DualPagerState
Auto Trait Implementations§
impl !Freeze for DualPagerState
impl !RefUnwindSafe for DualPagerState
impl !Send for DualPagerState
impl !Sync for DualPagerState
impl Unpin for DualPagerState
impl !UnwindSafe for DualPagerState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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>
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>
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