pub struct LayerLink {
pub leader_size: Option<Size>,
/* private fields */
}Expand description
An object that a LeaderLayer can register with.
An instance of this class should be provided as the LeaderLayer::link and the
FollowerLayer::link properties to cause the FollowerLayer to follow the
LeaderLayer.
See also:
CompositedTransformTarget, the widget that creates aLeaderLayer.CompositedTransformFollower, the widget that creates aFollowerLayer.RenderLeaderLayerandRenderFollowerLayer, the corresponding render objects.
Fields§
§leader_size: Option<Size>The total size of the content of the connected LeaderLayer.
Generally this should be set by the RenderObject that paints on the registered
LeaderLayer (for instance a RenderLeaderLayer that shares this link with its
followers). This size may be outdated before and during layout.
Implementations§
Auto Trait Implementations§
impl Freeze for LayerLink
impl RefUnwindSafe for LayerLink
impl Send for LayerLink
impl Sync for LayerLink
impl Unpin for LayerLink
impl UnsafeUnpin for LayerLink
impl UnwindSafe for LayerLink
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