pub struct AbsoluteItem {
pub anchor: AnchorPoint,
pub offset_x: f32,
pub offset_y: f32,
pub w: f32,
pub h: f32,
}Expand description
Absolutely positioned element.
Fields§
§anchor: AnchorPoint§offset_x: f32§offset_y: f32§w: f32§h: f32Implementations§
Source§impl AbsoluteItem
impl AbsoluteItem
pub fn new(anchor: AnchorPoint, w: f32, h: f32) -> Self
pub fn with_offset(self, dx: f32, dy: f32) -> Self
Trait Implementations§
Source§impl Clone for AbsoluteItem
impl Clone for AbsoluteItem
Source§fn clone(&self) -> AbsoluteItem
fn clone(&self) -> AbsoluteItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AbsoluteItem
impl RefUnwindSafe for AbsoluteItem
impl Send for AbsoluteItem
impl Sync for AbsoluteItem
impl Unpin for AbsoluteItem
impl UnsafeUnpin for AbsoluteItem
impl UnwindSafe for AbsoluteItem
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