pub struct RawMenuOverlayInfo {
pub anchor_rect: Rect,
pub overlay_size: Size,
pub position: Option<Offset>,
pub tap_region_group_id: TapRegionGroupId,
}Expand description
Anchor and menu information passed to RawMenuAnchor.
Fields§
§anchor_rect: RectThe position of the anchor widget that the menu is attached to, relative to the nearest
ancestor Overlay when RawMenuAnchor::use_root_overlay is false,
or the root Overlay when RawMenuAnchor::use_root_overlay is true.
overlay_size: SizeThe Size of the overlay that the menu is being shown in.
position: Option<Offset>The position argument passed to MenuController::open.
The position should be used to offset the menu relative to the top-left corner of the anchor.
tap_region_group_id: TapRegionGroupIdThe TapRegion::group_id of the TapRegion that wraps widgets in this menu system.
Implementations§
Source§impl RawMenuOverlayInfo
impl RawMenuOverlayInfo
Sourcepub fn new(
anchor_rect: Rect,
overlay_size: Size,
tap_region_group_id: TapRegionGroupId,
) -> RawMenuOverlayInfo
pub fn new( anchor_rect: Rect, overlay_size: Size, tap_region_group_id: TapRegionGroupId, ) -> RawMenuOverlayInfo
Creates a RawMenuOverlayInfo; Dart’s optional position is the setter.
Sourcepub fn position(self, position: Offset) -> RawMenuOverlayInfo
pub fn position(self, position: Offset) -> RawMenuOverlayInfo
Dart RawMenuOverlayInfo(position:).
Trait Implementations§
Source§impl Clone for RawMenuOverlayInfo
impl Clone for RawMenuOverlayInfo
impl Copy for RawMenuOverlayInfo
Source§impl Debug for RawMenuOverlayInfo
impl Debug for RawMenuOverlayInfo
Source§impl PartialEq for RawMenuOverlayInfo
impl PartialEq for RawMenuOverlayInfo
impl StructuralPartialEq for RawMenuOverlayInfo
Auto Trait Implementations§
impl Forget for RawMenuOverlayInfo
impl Freeze for RawMenuOverlayInfo
impl Move for RawMenuOverlayInfo
impl RefUnwindSafe for RawMenuOverlayInfo
impl Send for RawMenuOverlayInfo
impl Sync for RawMenuOverlayInfo
impl Unpin for RawMenuOverlayInfo
impl UnsafeUnpin for RawMenuOverlayInfo
impl UnwindSafe for RawMenuOverlayInfo
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