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§
Source§impl LayerLink
impl LayerLink
Sourcepub fn leader(self: Handle<Self>, app: &App) -> Option<Handle<LeaderLayer>>
pub fn leader(self: Handle<Self>, app: &App) -> Option<Handle<LeaderLayer>>
The LeaderLayer connected to this link.
Sourcepub fn to_string_with_app(self: Handle<Self>, app: &App) -> String
pub fn to_string_with_app(self: Handle<Self>, app: &App) -> String
Dart’s LayerLink.toString: the identity and whether a leader is registered
(LayerLink#00012(<linked>)).
Auto Trait Implementations§
impl Forget for LayerLink
impl Freeze for LayerLinkwhere
NonZero<u32>: Freeze,
PhantomData<fn() -> LeaderLayer>: Freeze,
*const u8 is !null: Freeze,
PhantomData<(Handle<LeaderLayer>, ())>: Freeze,
impl Move for LayerLink
impl RefUnwindSafe for LayerLink
impl Send for LayerLink
impl Sync for LayerLink
impl Unpin for LayerLink
impl UnsafeUnpin for LayerLinkwhere
NonZeroU32Inner: UnsafeUnpin,
PhantomData<fn() -> LeaderLayer>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(Handle<LeaderLayer>, ())>: UnsafeUnpin,
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