pub struct FloatSpec {
pub anchor: Anchor,
pub gravity_x: f32,
pub gravity_y: f32,
pub offset_x: f32,
pub offset_y: f32,
}Expand description
Controls the position of the floater. See Context::attr_float.
Fields§
§anchor: AnchorControls to which node the floater is anchored.
gravity_x: f32§gravity_y: f32§offset_x: f32§offset_y: f32Trait Implementations§
Auto Trait Implementations§
impl Freeze for FloatSpec
impl RefUnwindSafe for FloatSpec
impl Send for FloatSpec
impl Sync for FloatSpec
impl Unpin for FloatSpec
impl UnwindSafe for FloatSpec
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