pub struct CodeRect {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
}Expand description
A rectangle on screen, in the dp the window lays its content out in.
The editor’s own scroll is already in it, and so is the window’s zoom, because the zoom
is part of what a dp is there. The origin is the top left corner of the window’s
content, which is where an overlay the application opens over the editor is placed
from, so a suggestion list or a hover card can be put at x, y + height as it is.
Fields§
§x: f32§y: f32§width: f32§height: f32Implementations§
Trait Implementations§
impl Copy for CodeRect
impl StructuralPartialEq for CodeRect
Auto Trait Implementations§
impl Forget for CodeRect
impl Freeze for CodeRect
impl Move for CodeRect
impl RefUnwindSafe for CodeRect
impl Send for CodeRect
impl Sync for CodeRect
impl Unpin for CodeRect
impl UnsafeUnpin for CodeRect
impl UnwindSafe for CodeRect
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