[−][src]Struct orbtk::utils::Size
A Size
specified by width and height.
Examples
let size = Size::new(10., 10.); let other_size = Size::new(5., 7.); let result = size - other_size; assert_eq!(result.width(), 5.); assert_eq!(result.height(), 3.);
Implementations
impl Size
[src]
pub fn width(&self) -> f64
[src]
Gets the width of the size.
pub fn set_width(&mut self, width: f64)
[src]
Sets the width of the size.
pub fn height(&self) -> f64
[src]
Gets the height of the size.
pub fn set_height(&mut self, height: f64)
[src]
Sets the height of the size.
impl Size
[src]
Trait Implementations
impl Add<Size> for Size
[src]
type Output = Size
The resulting type after applying the +
operator.
fn add(self, rhs: Size) -> Size
[src]
impl Clone for Size
[src]
impl Copy for Size
[src]
impl Debug for Size
[src]
impl Default for Size
[src]
impl From<(f64, f64)> for Size
[src]
impl From<(i32, i32)> for Size
[src]
impl From<f64> for Size
[src]
impl From<i32> for Size
[src]
impl IntoPropertySource<Size> for (f64, f64)
[src]
fn into_source(self) -> PropertySource<Size>
[src]
impl IntoPropertySource<Size> for (String, Entity)
[src]
fn into_source(self) -> PropertySource<Size>
[src]
impl<'_> IntoPropertySource<Size> for (&'_ str, Entity)
[src]
fn into_source(self) -> PropertySource<Size>
[src]
impl IntoPropertySource<Size> for i32
[src]
fn into_source(self) -> PropertySource<Size>
[src]
impl IntoPropertySource<Size> for f64
[src]
fn into_source(self) -> PropertySource<Size>
[src]
impl IntoPropertySource<Size> for Size
[src]
fn into_source(self) -> PropertySource<Size>
[src]
impl IntoPropertySource<Size> for Entity
[src]
fn into_source(self) -> PropertySource<Size>
[src]
impl IntoPropertySource<Size> for (i32, i32)
[src]
fn into_source(self) -> PropertySource<Size>
[src]
impl PartialEq<Size> for Size
[src]
impl Sub<Size> for Size
[src]
Auto Trait Implementations
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnwindSafe for Size
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>,