[−][src]Enum orbtk::prelude::Alignment
Used to align a widget vertical or horizontal.
Variants
Implementations
impl Alignment
[src]
pub fn align_position(
self,
available_measure: f64,
measure: f64,
margin_start: f64,
margin_end: f64
) -> f64
[src]
self,
available_measure: f64,
measure: f64,
margin_start: f64,
margin_end: f64
) -> f64
Calculates the position (x or y) of the widget depending on the available measure, the goal measure margin and alignment.
pub fn align_measure(
self,
available_measure: f64,
measure: f64,
margin_start: f64,
margin_end: f64
) -> f64
[src]
self,
available_measure: f64,
measure: f64,
margin_start: f64,
margin_end: f64
) -> f64
Calculates the measure (measure or height) of the widget depending on the available measure, the goal measure margin and horizontal alignment.
Trait Implementations
impl Clone for Alignment
[src]
impl Copy for Alignment
[src]
impl Debug for Alignment
[src]
impl Default for Alignment
[src]
impl<'_> From<&'_ str> for Alignment
[src]
impl IntoPropertySource<Alignment> for (String, Entity)
[src]
fn into_source(self) -> PropertySource<Alignment>
[src]
impl<'_> IntoPropertySource<Alignment> for &'_ str
[src]
fn into_source(self) -> PropertySource<Alignment>
[src]
impl IntoPropertySource<Alignment> for Entity
[src]
fn into_source(self) -> PropertySource<Alignment>
[src]
impl IntoPropertySource<Alignment> for Alignment
[src]
fn into_source(self) -> PropertySource<Alignment>
[src]
impl<'_> IntoPropertySource<Alignment> for (&'_ str, Entity)
[src]
fn into_source(self) -> PropertySource<Alignment>
[src]
impl PartialEq<Alignment> for Alignment
[src]
Auto Trait Implementations
impl RefUnwindSafe for Alignment
impl Send for Alignment
impl Sync for Alignment
impl Unpin for Alignment
impl UnwindSafe for Alignment
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<E> Component for E where
E: Any,
[src]
E: Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,