pub struct SpellCheckSuggestionsToolbarLayoutDelegate {
pub anchor: Offset,
}Expand description
Positions the toolbar below anchor or adjusts it higher to fit above
the bottom view insets, if applicable.
See also:
SpellCheckSuggestionsToolbar, which uses this to position itself.
Fields§
§anchor: OffsetThe focal point below which the toolbar attempts to position itself.
Should be provided in local coordinates.
Implementations§
Source§impl SpellCheckSuggestionsToolbarLayoutDelegate
impl SpellCheckSuggestionsToolbarLayoutDelegate
Sourcepub fn new(anchor: Offset) -> SpellCheckSuggestionsToolbarLayoutDelegate
pub fn new(anchor: Offset) -> SpellCheckSuggestionsToolbarLayoutDelegate
Creates an instance of SpellCheckSuggestionsToolbarLayoutDelegate.
Trait Implementations§
Source§impl SingleChildLayoutDelegate for SpellCheckSuggestionsToolbarLayoutDelegate
impl SingleChildLayoutDelegate for SpellCheckSuggestionsToolbarLayoutDelegate
Source§fn get_constraints_for_child(
&self,
constraints: BoxConstraints,
) -> BoxConstraints
fn get_constraints_for_child( &self, constraints: BoxConstraints, ) -> BoxConstraints
The constraints for the child given the incoming constraints. Read more
Source§fn get_position_for_child(&self, size: Size, child_size: Size) -> Offset
fn get_position_for_child(&self, size: Size, child_size: Size) -> Offset
The position where the child should be placed. Read more
Source§fn should_relayout(&self, old_delegate: &dyn SingleChildLayoutDelegate) -> bool
fn should_relayout(&self, old_delegate: &dyn SingleChildLayoutDelegate) -> bool
Called whenever a new instance of the custom layout delegate class is provided to the
RenderCustomSingleChildLayoutBox object, or any time that a new CustomSingleChildLayout
object is created with a new instance of the custom layout delegate class (which amounts
to the same thing, because the latter is implemented in terms of the former). Read moreSource§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
The concrete delegate, for Dart’s
runtimeType comparison and its covariant
narrowing of should_relayout’s argument.Auto Trait Implementations§
impl Forget for SpellCheckSuggestionsToolbarLayoutDelegate
impl Freeze for SpellCheckSuggestionsToolbarLayoutDelegate
impl Move for SpellCheckSuggestionsToolbarLayoutDelegate
impl RefUnwindSafe for SpellCheckSuggestionsToolbarLayoutDelegate
impl Send for SpellCheckSuggestionsToolbarLayoutDelegate
impl Sync for SpellCheckSuggestionsToolbarLayoutDelegate
impl Unpin for SpellCheckSuggestionsToolbarLayoutDelegate
impl UnsafeUnpin for SpellCheckSuggestionsToolbarLayoutDelegate
impl UnwindSafe for SpellCheckSuggestionsToolbarLayoutDelegate
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