pub(crate) struct ScrollingBox {
target: ScrollingBoxSource,
overflow: AxesOverflow,
cached_content_size: Cell<Option<LayoutSize>>,
cached_size: Cell<Option<LayoutSize>>,
}Fields§
§target: ScrollingBoxSource§overflow: AxesOverflow§cached_content_size: Cell<Option<LayoutSize>>§cached_size: Cell<Option<LayoutSize>>Implementations§
Source§impl ScrollingBox
impl ScrollingBox
pub(crate) fn new(target: ScrollingBoxSource, overflow: AxesOverflow) -> Self
pub(crate) fn target(&self) -> &ScrollingBoxSource
pub(crate) fn is_viewport(&self) -> bool
pub(crate) fn scroll_position(&self) -> LayoutVector2D
pub(crate) fn content_size(&self) -> LayoutSize
pub(crate) fn size(&self) -> LayoutSize
pub(crate) fn parent(&self) -> Option<ScrollingBox>
pub(crate) fn node(&self) -> &Node
pub(crate) fn scroll_to( &self, position: LayoutVector2D, behavior: ScrollBehavior, )
pub(crate) fn can_keyboard_scroll_in_axis(&self, axis: ScrollingBoxAxis) -> bool
Sourcepub(crate) fn determine_scroll_into_view_position(
&self,
block: ScrollLogicalPosition,
inline: ScrollLogicalPosition,
target_rect: Rect<Au>,
) -> LayoutVector2D
pub(crate) fn determine_scroll_into_view_position( &self, block: ScrollLogicalPosition, inline: ScrollLogicalPosition, target_rect: Rect<Au>, ) -> LayoutVector2D
Sourcefn calculate_scroll_position_one_axis(
alignment: ScrollLogicalPosition,
element_start: f32,
element_end: f32,
container_size: f32,
current_scroll_offset: f32,
) -> f32
fn calculate_scroll_position_one_axis( alignment: ScrollLogicalPosition, element_start: f32, element_end: f32, container_size: f32, current_scroll_offset: f32, ) -> f32
Auto Trait Implementations§
impl !Freeze for ScrollingBox
impl !RefUnwindSafe for ScrollingBox
impl !Send for ScrollingBox
impl !Sync for ScrollingBox
impl Unpin for ScrollingBox
impl !UnwindSafe for ScrollingBox
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> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
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 moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert