[−][src]Struct orbtk::prelude::ConstraintBuilder
Used to build a constraint, specifying additional details.
Methods
impl ConstraintBuilder
[src]
Used to build a constraint, specifying additional details.
pub fn new() -> ConstraintBuilder
[src]
Creates a new ConstraintBuilder
with default values.
pub fn width(self, width: f64) -> ConstraintBuilder
[src]
Inserts a new width.
pub fn height(self, height: f64) -> ConstraintBuilder
[src]
Inserts a new height.
pub fn size(self, width: f64, height: f64) -> ConstraintBuilder
[src]
Inserts a new size.
pub fn min_width(self, min_width: f64) -> ConstraintBuilder
[src]
Inserts a new min_width.
pub fn min_height(self, min_height: f64) -> ConstraintBuilder
[src]
Inserts a new min_height.
pub fn min_size(self, min_width: f64, min_height: f64) -> ConstraintBuilder
[src]
Inserts a new min_size.
pub fn max_width(self, max_width: f64) -> ConstraintBuilder
[src]
Inserts a new max_width.
pub fn max_height(self, max_height: f64) -> ConstraintBuilder
[src]
Inserts a new max_height.
pub fn max_size(self, max_width: f64, max_height: f64) -> ConstraintBuilder
[src]
Inserts a new min_size.
pub fn build(self) -> Constraint
[src]
Builds the constraint.
Trait Implementations
impl Default for ConstraintBuilder
[src]
fn default() -> ConstraintBuilder
[src]
Auto Trait Implementations
impl Send for ConstraintBuilder
impl Sync for ConstraintBuilder
impl Unpin for ConstraintBuilder
impl UnwindSafe for ConstraintBuilder
impl RefUnwindSafe for ConstraintBuilder
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, 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>,