pub struct AnyRenderAbstractViewport { /* private fields */ }Expand description
Erased RenderAbstractViewport: what a field or parameter Dart types as
RenderAbstractViewport becomes.
Implementations§
Source§impl AnyRenderAbstractViewport
impl AnyRenderAbstractViewport
Sourcepub const DEFAULT_CACHE_EXTENT: f64 = 250.0
pub const DEFAULT_CACHE_EXTENT: f64 = 250.0
The default value for the cache extent of a viewport.
This default assumes CacheExtentStyle::Pixel.
Sourcepub fn maybe_of(
app: &App,
object: Option<AnyRenderObject>,
) -> Option<AnyRenderAbstractViewport>
pub fn maybe_of( app: &App, object: Option<AnyRenderObject>, ) -> Option<AnyRenderAbstractViewport>
Returns the viewport that most tightly encloses the given render object.
If the object does not have a viewport as an ancestor, this returns None.
Dart’s RenderAbstractViewport.maybeOf.
Sourcepub fn of(
app: &App,
object: Option<AnyRenderObject>,
) -> AnyRenderAbstractViewport
pub fn of( app: &App, object: Option<AnyRenderObject>, ) -> AnyRenderAbstractViewport
Returns the viewport that most tightly encloses the given render object.
Dart’s RenderAbstractViewport.of.
§Panics
If the object does not have a viewport as an ancestor.
Sourcepub fn as_object(self, app: &App) -> AnyRenderObject
pub fn as_object(self, app: &App) -> AnyRenderObject
The RenderObject view of this viewport.
Sourcepub fn get_offset_to_reveal(
self,
app: &App,
target: AnyRenderObject,
alignment: f64,
rect: Option<Rect>,
axis: Option<Axis>,
) -> RevealedOffset
pub fn get_offset_to_reveal( self, app: &App, target: AnyRenderObject, alignment: f64, rect: Option<Rect>, axis: Option<Axis>, ) -> RevealedOffset
Trait Implementations§
Source§impl Clone for AnyRenderAbstractViewport
impl Clone for AnyRenderAbstractViewport
impl Copy for AnyRenderAbstractViewport
Source§impl Debug for AnyRenderAbstractViewport
impl Debug for AnyRenderAbstractViewport
impl Eq for AnyRenderAbstractViewport
Auto Trait Implementations§
impl Freeze for AnyRenderAbstractViewport
impl RefUnwindSafe for AnyRenderAbstractViewport
impl Send for AnyRenderAbstractViewport
impl Sync for AnyRenderAbstractViewport
impl Unpin for AnyRenderAbstractViewport
impl UnsafeUnpin for AnyRenderAbstractViewport
impl UnwindSafe for AnyRenderAbstractViewport
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.