pub struct EditorRect {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
}Expand description
A rectangle in the host view’s logical points, top-left origin (egui convention).
Fields§
§x: f32Left edge, points from the window’s left.
y: f32Top edge, points from the window’s top.
width: f32Width in points.
height: f32Height in points.
Trait Implementations§
Source§impl Clone for EditorRect
impl Clone for EditorRect
Source§fn clone(&self) -> EditorRect
fn clone(&self) -> EditorRect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EditorRect
Source§impl Debug for EditorRect
impl Debug for EditorRect
Source§impl PartialEq for EditorRect
impl PartialEq for EditorRect
impl StructuralPartialEq for EditorRect
Auto Trait Implementations§
impl Freeze for EditorRect
impl RefUnwindSafe for EditorRect
impl Send for EditorRect
impl Sync for EditorRect
impl Unpin for EditorRect
impl UnsafeUnpin for EditorRect
impl UnwindSafe for EditorRect
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