Struct panoramix::flex::FlexParams [−][src]
Optional parameters for an item in a Flex container (row or column).
Elements that represent a single flex item generally have a with_flex_params
method that you can pass this struct to.
Fields
flex: f64
alignment: Option<CrossAxisAlignment>
Implementations
impl FlexParams
[src]
pub fn new(flex: f64, alignment: impl Into<Option<CrossAxisAlignment>>) -> Self
[src]
Create custom FlexParams
with a specific flex_factor
and an optional
CrossAxisAlignment
.
You likely only need to create these manually if you need to specify
a custom alignment; if you only need to use a custom flex_factor
you
can pass an f64
to any of the functions that take FlexParams
.
By default, the widget uses the alignment of its parent Flex container.
Trait Implementations
impl Clone for FlexParams
[src]
fn clone(&self) -> FlexParams
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for FlexParams
[src]
impl Debug for FlexParams
[src]
impl Default for FlexParams
[src]
fn default() -> FlexParams
[src]
impl From<f64> for FlexParams
[src]
fn from(flex: f64) -> FlexParams
[src]
impl PartialEq<FlexParams> for FlexParams
[src]
fn eq(&self, other: &FlexParams) -> bool
[src]
fn ne(&self, other: &FlexParams) -> bool
[src]
impl StructuralPartialEq for FlexParams
[src]
Auto Trait Implementations
impl RefUnwindSafe for FlexParams
impl Send for FlexParams
impl Sync for FlexParams
impl Unpin for FlexParams
impl UnwindSafe for FlexParams
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AnyEq for T where
T: Any + PartialEq<T>,
T: Any + PartialEq<T>,
pub fn equals(&self, other: &(dyn Any + 'static)) -> bool
pub fn as_any(&self) -> &(dyn Any + 'static)
impl<T> AnyState for T where
T: Clone + Default + Debug + PartialEq<T> + 'static,
[src]
T: Clone + Default + Debug + PartialEq<T> + 'static,
pub fn as_any(&Self) -> &(dyn Any + 'static)
[src]
pub fn as_mut_any(&mut Self) -> &mut (dyn Any + 'static)
[src]
pub fn dyn_clone(&Self) -> Box<dyn AnyState + 'static, Global>
[src]
pub fn dyn_eq(&Self, &Box<dyn AnyState + 'static, Global>) -> bool
[src]
fn print_type(&self)
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> RoundFrom<T> for T
pub fn round_from(x: T) -> T
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
U: RoundFrom<T>,
pub fn round_into(self) -> U
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,