pub struct MenuAnchor {
pub center_x: f32,
pub line_top: f32,
pub line_bottom: f32,
}Expand description
Where a text edit menu belongs, in window coordinates: centred on
center_x, over the line that runs from line_top to line_bottom.
Fields§
§center_x: f32The selection’s or the caret’s centre.
line_top: f32The top of the selection’s first line, or the caret’s line.
line_bottom: f32The bottom of that line.
Implementations§
Source§impl MenuAnchor
impl MenuAnchor
The menu’s top edge: its bottom rides MENU_GAP_ABOVE_LINE above the
line, or, when that would cross the window’s top margin, its top rides
the same gap below the line.
Trait Implementations§
Source§impl Clone for MenuAnchor
impl Clone for MenuAnchor
impl Copy for MenuAnchor
Source§impl Debug for MenuAnchor
impl Debug for MenuAnchor
Source§impl PartialEq for MenuAnchor
impl PartialEq for MenuAnchor
impl StructuralPartialEq for MenuAnchor
Auto Trait Implementations§
impl Freeze for MenuAnchor
impl RefUnwindSafe for MenuAnchor
impl Send for MenuAnchor
impl Sync for MenuAnchor
impl Unpin for MenuAnchor
impl UnsafeUnpin for MenuAnchor
impl UnwindSafe for MenuAnchor
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