[−][src]Struct orbtk::prelude::utils::Thickness
Used to describes a thickness e.g a border thickness.
Fields
left: f64
Left of thickness.
top: f64
Top of thickness.
right: f64
Right of thickness.
bottom: f64
Bottom of thickness.
Methods
impl Thickness
[src]
pub fn new(left: f64, top: f64, right: f64, bottom: f64) -> Thickness
[src]
Create a new thickness with the given parameters.
pub fn left(&self) -> f64
[src]
Gets left.
pub fn set_left(&mut self, left: f64)
[src]
Sets left.
pub fn top(&self) -> f64
[src]
Gets top.
pub fn set_top(&mut self, top: f64)
[src]
Sets top.
pub fn right(&self) -> f64
[src]
Gets right.
pub fn set_right(&mut self, right: f64)
[src]
Sets right.
pub fn bottom(&self) -> f64
[src]
Gets bottom.
pub fn set_bottom(&mut self, bottom: f64)
[src]
Sets bottom.
pub fn thickness(&self) -> Thickness
[src]
Gets thickness.
pub fn set_thickness<T>(&mut self, thickness: T) where
T: Into<Thickness>,
[src]
T: Into<Thickness>,
Sets thickness.
Trait Implementations
impl IntoPropertySource<Thickness> for i32
[src]
fn into_source(self) -> PropertySource<Thickness>
[src]
impl IntoPropertySource<Thickness> for Entity
[src]
fn into_source(self) -> PropertySource<Thickness>
[src]
impl IntoPropertySource<Thickness> for f64
[src]
fn into_source(self) -> PropertySource<Thickness>
[src]
impl IntoPropertySource<Thickness> for (f64, f64)
[src]
fn into_source(self) -> PropertySource<Thickness>
[src]
impl IntoPropertySource<Thickness> for (f64, f64, f64, f64)
[src]
fn into_source(self) -> PropertySource<Thickness>
[src]
impl IntoPropertySource<Thickness> for (String, Entity)
[src]
fn into_source(self) -> PropertySource<Thickness>
[src]
impl IntoPropertySource<Thickness> for (i32, i32)
[src]
fn into_source(self) -> PropertySource<Thickness>
[src]
impl IntoPropertySource<Thickness> for Thickness
[src]
fn into_source(self) -> PropertySource<Thickness>
[src]
impl IntoPropertySource<Thickness> for (i32, i32, i32, i32)
[src]
fn into_source(self) -> PropertySource<Thickness>
[src]
impl<'_> IntoPropertySource<Thickness> for (&'_ str, Entity)
[src]
fn into_source(self) -> PropertySource<Thickness>
[src]
impl Debug for Thickness
[src]
impl Default for Thickness
[src]
impl Copy for Thickness
[src]
impl From<f64> for Thickness
[src]
impl From<(i32, i32, i32, i32)> for Thickness
[src]
impl From<(f64, f64, f64, f64)> for Thickness
[src]
impl From<(f64, f64)> for Thickness
[src]
impl From<(i32, i32)> for Thickness
[src]
impl From<i32> for Thickness
[src]
impl PartialEq<Thickness> for Thickness
[src]
impl StructuralPartialEq for Thickness
[src]
impl Clone for Thickness
[src]
Auto Trait Implementations
impl Send for Thickness
impl Sync for Thickness
impl Unpin for Thickness
impl UnwindSafe for Thickness
impl RefUnwindSafe for Thickness
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>,