pub enum Position {
Stacked,
Absolute {
top: Option<f32>,
right: Option<f32>,
bottom: Option<f32>,
left: Option<f32>,
},
}
Variants§
Implementations§
§impl Position
impl Position
pub fn is_empty(&self) -> bool
pub fn new_absolute() -> Position
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: &Rect<f32, Measure>, parent_area: &Rect<f32, Measure>, area_size: &Size2D<f32, Measure> ) -> Point2D<f32, Measure>
Trait Implementations§
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> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere R: Read + ReadEndian<P>, P: Default,
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.