pub struct LabelPlacement {
pub id: AssetId,
pub x: f32,
pub y: f32,
}Expand description
The resolved top-left text origin for one label.
Fields§
§id: AssetIdThe label this placement is for.
x: f32Text-origin x in pixels from the window’s top-left.
y: f32Text-origin y in pixels from the window’s top-left.
Trait Implementations§
Source§impl Clone for LabelPlacement
impl Clone for LabelPlacement
Source§fn clone(&self) -> LabelPlacement
fn clone(&self) -> LabelPlacement
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 LabelPlacement
Source§impl Debug for LabelPlacement
impl Debug for LabelPlacement
Source§impl PartialEq for LabelPlacement
impl PartialEq for LabelPlacement
impl StructuralPartialEq for LabelPlacement
Auto Trait Implementations§
impl Freeze for LabelPlacement
impl RefUnwindSafe for LabelPlacement
impl Send for LabelPlacement
impl Sync for LabelPlacement
impl Unpin for LabelPlacement
impl UnsafeUnpin for LabelPlacement
impl UnwindSafe for LabelPlacement
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