[−][src]Struct orbtk::prelude::Constraint
Constraint
describes a box constraint.
Methods
impl Constraint
[src]
pub fn create() -> ConstraintBuilder
[src]
Returns a constraint builder.
pub fn width(&self) -> f64
[src]
pub fn set_width(&mut self, width: f64)
[src]
Sets width.
pub fn height(&self) -> f64
[src]
Gets height.
pub fn set_height(&mut self, height: f64)
[src]
Sets height.
pub fn size(&self) -> (f64, f64)
[src]
Gets the size.
pub fn set_size(&mut self, width: f64, height: f64)
[src]
Sets the size.
pub fn min_width(&self) -> f64
[src]
Gets min_width.
pub fn set_min_width(&mut self, min_width: f64)
[src]
Sets min_width.
pub fn min_height(&self) -> f64
[src]
Gets min_height.
pub fn set_min_height(&mut self, min_height: f64)
[src]
Sets min_height.
pub fn min_size(&self) -> (f64, f64)
[src]
Gets the min_size.
pub fn set_min_size(&mut self, min_width: f64, min_height: f64)
[src]
Sets the min size.
pub fn max_width(&self) -> f64
[src]
Gets max_width.
pub fn set_max_width(&mut self, max_width: f64)
[src]
Sets max_width.
pub fn max_height(&self) -> f64
[src]
Gets max_height.
pub fn set_max_height(&mut self, max_height: f64)
[src]
Sets max_height.
pub fn max_size(&self) -> (f64, f64)
[src]
Gets the max_size.
pub fn set_max_size(&mut self, max_width: f64, max_height: f64)
[src]
Sets the max size.
pub fn perform(&self, size: (f64, f64)) -> (f64, f64)
[src]
Adjust the given size
to match the constraint.
Trait Implementations
impl Debug for Constraint
[src]
impl PartialEq<Constraint> for Constraint
[src]
fn eq(&self, other: &Constraint) -> bool
[src]
fn ne(&self, other: &Constraint) -> bool
[src]
impl Default for Constraint
[src]
fn default() -> Constraint
[src]
impl<'_> IntoPropertySource<Constraint> for (&'_ str, Entity)
[src]
fn into_source(self) -> PropertySource<Constraint>
[src]
impl IntoPropertySource<Constraint> for Entity
[src]
fn into_source(self) -> PropertySource<Constraint>
[src]
impl IntoPropertySource<Constraint> for (String, Entity)
[src]
fn into_source(self) -> PropertySource<Constraint>
[src]
impl IntoPropertySource<Constraint> for Constraint
[src]
fn into_source(self) -> PropertySource<Constraint>
[src]
impl StructuralPartialEq for Constraint
[src]
impl Clone for Constraint
[src]
fn clone(&self) -> Constraint
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Constraint
[src]
Auto Trait Implementations
impl Send for Constraint
impl Sync for Constraint
impl Unpin for Constraint
impl UnwindSafe for Constraint
impl RefUnwindSafe for Constraint
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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<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<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<E> Component for E where
E: Any,
[src]
E: Any,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,