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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.