pub enum Position {
Stacked,
Absolute {
top: Option<f32>,
right: Option<f32>,
bottom: Option<f32>,
left: Option<f32>,
},
}
Variants§
Implementations§
source§impl Position
impl Position
pub fn is_empty(&self) -> bool
pub fn new_absolute() -> Self
pub fn is_absolute(&self) -> bool
pub fn set_top(&mut self, value: f32)
pub fn set_right(&mut self, value: f32)
pub fn set_bottom(&mut self, value: f32)
pub fn set_left(&mut self, value: f32)
pub fn get_origin( &self, available_parent_area: &Area, parent_area: &Area, area_size: &Size2D ) -> Point2D
Trait Implementations§
source§impl PartialEq for Position
impl PartialEq for Position
impl StructuralPartialEq for Position
Auto Trait Implementations§
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnwindSafe for Position
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