pub struct PointCss {
pub x: f32,
pub y: f32,
}Expand description
A point in CSS pixels, origin at the top-left corner.
§Examples
use ferrochart_core::geom::PointCss;
assert_eq!(PointCss { x: 1.0, y: 2.0 }.to_px(1.0).x, 1.0);Fields§
§x: f32Horizontal position.
y: f32Vertical position (down is positive).
Implementations§
Trait Implementations§
impl Copy for PointCss
impl StructuralPartialEq for PointCss
Auto Trait Implementations§
impl Forget for PointCss
impl Freeze for PointCss
impl Move for PointCss
impl RefUnwindSafe for PointCss
impl Send for PointCss
impl Sync for PointCss
impl Unpin for PointCss
impl UnsafeUnpin for PointCss
impl UnwindSafe for PointCss
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