pub struct AnyRenderSliver { /* private fields */ }Expand description
Erased RenderSliver.
Implementations§
Source§impl AnyRenderSliver
impl AnyRenderSliver
Sourcepub fn as_object(self) -> AnyRenderObject
pub fn as_object(self) -> AnyRenderObject
The RenderObject view of this sliver. Free: points into the nested table.
Sourcepub fn layout(
self,
app: &mut App,
constraints: SliverConstraints,
parent_uses_size: bool,
)
pub fn layout( self, app: &mut App, constraints: SliverConstraints, parent_uses_size: bool, )
Compute the layout for this sliver.
Sourcepub fn constraints(self, app: &App) -> SliverConstraints
pub fn constraints(self, app: &App) -> SliverConstraints
The sliver constraints most recently supplied by the parent.
§Panics
If this sliver has not been laid out.
Sourcepub fn hit_test(
self,
app: &mut App,
result: &mut SliverHitTestResult<'_>,
main_axis_position: f64,
cross_axis_position: f64,
) -> bool
pub fn hit_test( self, app: &mut App, result: &mut SliverHitTestResult<'_>, main_axis_position: f64, cross_axis_position: f64, ) -> bool
Sourcepub fn handle_event(
self,
app: &mut App,
event: &PointerEvent,
entry: &SliverHitTestEntry,
)
pub fn handle_event( self, app: &mut App, event: &PointerEvent, entry: &SliverHitTestEntry, )
Sourcepub fn center_offset_adjustment(self, app: &App) -> f64
pub fn center_offset_adjustment(self, app: &App) -> f64
Sourcepub fn child_scroll_offset(
self,
app: &App,
child: AnyRenderObject,
) -> Option<f64>
pub fn child_scroll_offset( self, app: &App, child: AnyRenderObject, ) -> Option<f64>
Sourcepub fn child_main_axis_position(self, app: &App, child: AnyRenderObject) -> f64
pub fn child_main_axis_position(self, app: &App, child: AnyRenderObject) -> f64
Sourcepub fn geometry(self, app: &App) -> SliverGeometry
pub fn geometry(self, app: &App) -> SliverGeometry
Sourcepub fn set_geometry(self, app: &mut App, geometry: SliverGeometry)
pub fn set_geometry(self, app: &mut App, geometry: SliverGeometry)
Sets the geometry of this sliver.
Trait Implementations§
Source§impl Clone for AnyRenderSliver
impl Clone for AnyRenderSliver
impl Copy for AnyRenderSliver
Source§impl Debug for AnyRenderSliver
impl Debug for AnyRenderSliver
impl Eq for AnyRenderSliver
Source§impl ErasedRenderObject for AnyRenderSliver
impl ErasedRenderObject for AnyRenderSliver
Source§fn as_object(self) -> AnyRenderObject
fn as_object(self) -> AnyRenderObject
The
RenderObject view of this handle.Source§fn from_object(object: AnyRenderObject) -> AnyRenderSliver
fn from_object(object: AnyRenderObject) -> AnyRenderSliver
Source§impl From<AnyRenderSliver> for AnyRenderObject
impl From<AnyRenderSliver> for AnyRenderObject
Source§fn from(sliver: AnyRenderSliver) -> AnyRenderObject
fn from(sliver: AnyRenderSliver) -> AnyRenderObject
Converts to this type from the input type.
Source§impl Hash for AnyRenderSliver
impl Hash for AnyRenderSliver
Auto Trait Implementations§
impl Freeze for AnyRenderSliver
impl RefUnwindSafe for AnyRenderSliver
impl Send for AnyRenderSliver
impl Sync for AnyRenderSliver
impl Unpin for AnyRenderSliver
impl UnsafeUnpin for AnyRenderSliver
impl UnwindSafe for AnyRenderSliver
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.